Giter VIP home page Giter VIP logo

almond-android's People

Contributors

dependabot[bot] avatar gcampax avatar kination avatar kwangin avatar mateusrodcosta avatar sileix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

almond-android's Issues

Fill in the empty chat on reset

We should never let the user stare at an empty screen. Maybe show the welcome again, or show an help button, or just show the help right away.

Number keyboard when expecting numbers

Even though technically you can write weird text like "gross" (144) or "score" (20) when Sabrina asks for a number, because CoreNLP, we should really limit the user to numbers when numbers are expected.

Needs a new askspecial type.

Fix RuntimeException in io.jxcore.node.JXMobile$1.Receiver, line 26

Version: 1.0beta5snapshot (7) | edu.stanford.thingengine.engine

Stacktrace

io.jxcore.node.JXMobile$1;Receiver;JXMobile.java;26
io.jxcore.node.jxcore;javaCall;jxcore.java;157
io.jxcore.node.jxcore;loop;;
io.jxcore.node.jxcore;Loop;jxcore.java;131
service.EngineThread;run;EngineThread.java;81

Reason

java.lang.RuntimeException: listener must be a function

Link to HockeyApp

Fix RuntimeException in io.jxcore.node.JXMobile$1.Receiver, line 39

Version: 1.3.1 (131) | edu.stanford.thingengine.engine

Stacktrace

io.jxcore.node.JXMobile$1;Receiver;JXMobile.java;39
io.jxcore.node.jxcore;javaCall;jxcore.java;158
io.jxcore.node.jxcore;loop;;
io.jxcore.node.jxcore;Loop;jxcore.java;132
service.EngineThread;run;EngineThread.java;81

Reason

java.lang.RuntimeException: this._pipeline is undefined

Link to HockeyApp

More bluetooth

Someone needs to write a Bluetooth adapter layer for Android

Fix IOException in service.ControlChannel.sendInvokeCallback, line 187

Version: 1.3.1 (131) | edu.stanford.thingengine.engine

Stacktrace

service.ControlChannel;sendInvokeCallback;ControlChannel.java;187
jsapi.JavascriptAPI;sendCallback;JavascriptAPI.java;31
jsapi.JavascriptAPI;invokeAsync;JavascriptAPI.java;35
jsapi.AssistantAPI;ready;AssistantAPI.java;88
service.AssistantDispatcher$1;run;AssistantDispatcher.java;85
service.ControlChannel;sendCall;ControlChannel.java;94
service.ControlChannel;sendInvokeCallback;ControlChannel.java;184

Reason

java.io.IOException: Stream closed

Link to HockeyApp

Fix EOFException in service.ControlChannel.sendInvokeCallback, line 187

Version: 1.4.0 (140) | edu.stanford.thingengine.engine

Stacktrace

service.ControlChannel;sendInvokeCallback;ControlChannel.java;187
jsapi.JavascriptAPI;sendCallback;JavascriptAPI.java;31
jsapi.JavascriptAPI;access$000;JavascriptAPI.java;13
jsapi.JavascriptAPI$1$1;run;JavascriptAPI.java;55
service.ControlChannel;readOneReply;ControlChannel.java;119
service.ControlChannel;expectReply;ControlChannel.java;163
service.ControlChannel;sendInvokeCallback;ControlChannel.java;184

Reason

java.io.EOFException: Control channel closed

Link to HockeyApp

Fix SecurityException in ui.MainActivity$ReadContactTask.doInBackground, line 860

Version: 1.3.0 (130) | edu.stanford.thingengine.engine

Stacktrace

ui.MainActivity$ReadContactTask;doInBackground;MainActivity.java;860
ui.MainActivity$ReadContactTask;doInBackground;MainActivity.java;844

Reason

java.lang.SecurityException: Permission Denial: opening provider com.android.providers.contacts.HtcContactsProvider2 from ProcessRecord{22eb882 9849:edu.stanford.thingengine.engine/u0a220} (pid=9849, uid=10220) requires android.permission.READ_CONTACTS or android.permission.WRITE_CONTACTS

Link to HockeyApp

Fix EOFException in service.ControlChannel.sendInvokeCallback, line 187

Version: 1.5.0 (151) | edu.stanford.thingengine.engine

Stacktrace

service.ControlChannel;sendInvokeCallback;ControlChannel.java;187
jsapi.JavascriptAPI;sendCallback;JavascriptAPI.java;31
jsapi.JavascriptAPI;access$000;JavascriptAPI.java;13
jsapi.JavascriptAPI$1$1;run;JavascriptAPI.java;53
service.ControlChannel;readOneReply;ControlChannel.java;119
service.ControlChannel;expectReply;ControlChannel.java;163
service.ControlChannel;sendInvokeCallback;ControlChannel.java;184

Reason

java.io.EOFException: Control channel closed

Link to HockeyApp

Make configuration more obvious

If the user tries to use RSS and there is no RSS, we should pop up a configure rss button.

(I'm surprised there is not one already)

Productize!

In preparation for the MOOP, we should make our system more robust and at the same time more hackable.

Phone side:

  • Separate thingengine vs Sabrina
  • Write a thingengine API so you can run local Sabrina against a remote ThingEngine
  • Rewrite Sabrina in Java

Cloud side:

  • Kill graphdb (temporarily)
  • Kill the distributed thingtalk stuff
  • Write a message broker so that multiple web frontend processes can run at the same time
  • Make it possible to restart the web frontend without restarting the engines, and viceversa
  • Move the Omlet code out of the web frontend process
  • Move the channel state from a single JSON file to some db (sqlite initially)
  • Make the shared processes share the thingpedia interface code across all users (saves memory)

Fix RuntimeException in io.jxcore.node.JXMobile$1.Receiver, line 39

Version: 1.3.0 (130) | edu.stanford.thingengine.engine

Stacktrace

io.jxcore.node.JXMobile$1;Receiver;JXMobile.java;39
io.jxcore.node.jxcore;javaCall;jxcore.java;158
io.jxcore.node.jxcore;loop;;
io.jxcore.node.jxcore;Loop;jxcore.java;132
service.EngineThread;run;EngineThread.java;81

Reason

java.lang.RuntimeException: this._pipeline is undefined

Link to HockeyApp

Fix NullPointerException in ui.AssistantFragment$SpeechHandler.onPartialResponseReceived, line 209

Version: 1.1.4 (114) | edu.stanford.thingengine.engine

Stacktrace

ui.AssistantFragment$SpeechHandler;onPartialResponseReceived;AssistantFragment.java;209
com.microsoft.bing.speech.Conversation$5;run;Conversation.java;247

Reason

java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.app.Activity.findViewById(int)' on a null object reference

Link to HockeyApp

Fix IOException in service.ControlChannel.sendInvokeCallback, line 187

Version: 1.4.0 (140) | edu.stanford.thingengine.engine

Stacktrace

service.ControlChannel;sendInvokeCallback;ControlChannel.java;187
jsapi.JavascriptAPI;sendCallback;JavascriptAPI.java;31
jsapi.JavascriptAPI;access$000;JavascriptAPI.java;13
jsapi.JavascriptAPI$1$1;run;JavascriptAPI.java;55
service.ControlChannel;sendCall;ControlChannel.java;94
service.ControlChannel;sendInvokeCallback;ControlChannel.java;184

Reason

java.io.IOException: Stream closed

Link to HockeyApp

Fix IOException in service.ControlChannel.sendInvokeCallback, line 187

Version: 1.5.0 (150) | edu.stanford.thingengine.engine

Stacktrace

service.ControlChannel;sendInvokeCallback;ControlChannel.java;187
jsapi.JavascriptAPI;sendCallback;JavascriptAPI.java;31
jsapi.JavascriptAPI;invokeAsync;JavascriptAPI.java;35
jsapi.AssistantAPI;ready;AssistantAPI.java;88
service.AssistantDispatcher$1;run;AssistantDispatcher.java;85
service.ControlChannel;sendCall;ControlChannel.java;94
service.ControlChannel;sendInvokeCallback;ControlChannel.java;184

Reason

java.io.IOException: Stream closed

Link to HockeyApp

Fix RuntimeException in io.jxcore.node.JXMobile$1.Receiver, line 39

Version: 1.5.2 (152) | edu.stanford.thingengine.engine

Stacktrace

io.jxcore.node.JXMobile$1;Receiver;JXMobile.java;39
io.jxcore.node.jxcore;javaCall;jxcore.java;158
io.jxcore.node.jxcore;loop;;
io.jxcore.node.jxcore;Loop;jxcore.java;132
service.EngineThread;run;EngineThread.java;81

Reason

java.lang.RuntimeException: Unexpected HTTP status 400 downloading channel edu.stanford.lukech18_silei_jackiey.bike_market

Link to HockeyApp

Fix NullPointerException in ui.AssistantFragment.onSlotFillingActivated, line 633

Version: 1.2.0 (120) | edu.stanford.thingengine.engine

Stacktrace

ui.AssistantFragment;onSlotFillingActivated;AssistantFragment.java;633
ui.AssistantHistoryAdapter$AssistantMessageViewHolder$SlotFilling$1;onClick;AssistantHistoryAdapter.java;447
ui.AssistantHistoryAdapter$AssistantMessageViewHolder$SlotFilling$2;onClick;AssistantHistoryAdapter.java;484

Reason

java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference

Link to HockeyApp

Fix NullPointerException in jsapi.BluetoothAPI.serializeBtDevice, line 176

Version: 1.4.0 (140) | edu.stanford.thingengine.engine

Stacktrace

jsapi.BluetoothAPI;serializeBtDevice;BluetoothAPI.java;176
jsapi.BluetoothAPI;onDeviceChanged;BluetoothAPI.java;192
jsapi.BluetoothAPI;access$300;BluetoothAPI.java;31
jsapi.BluetoothAPI$Receiver;onReceive;BluetoothAPI.java;64

Reason

java.lang.NullPointerException: Attempt to invoke virtual method 'int android.bluetooth.BluetoothClass.getDeviceClass()' on a null object reference

Link to HockeyApp

Limit the amount of choices we show when training

(Suggested by Rakesh, related to #10 because of the More... button)

Instead of showing all 20 choices at once, we should show them in batches of 5, with the hope that the NL is not too screwed and indeed they are in decreasing order of probability.

Fix NullPointerException in jsapi.BluetoothAPI.serializeBtDevice, line 176

Version: 1.3.1 (131) | edu.stanford.thingengine.engine

Stacktrace

jsapi.BluetoothAPI;serializeBtDevice;BluetoothAPI.java;176
jsapi.BluetoothAPI;onDeviceChanged;BluetoothAPI.java;192
jsapi.BluetoothAPI;access$300;BluetoothAPI.java;31
jsapi.BluetoothAPI$Receiver;onReceive;BluetoothAPI.java;64

Reason

java.lang.NullPointerException: Attempt to invoke virtual method 'int android.bluetooth.BluetoothClass.getDeviceClass()' on a null object reference

Link to HockeyApp

Is it an open project?

Hello~
I just visited your repo, and looks interesting. But while building android project, I saw issue like below.

Error:Execution failed for task ':app:buildJsDebug'.
> Process 'command './build_js.sh'' finished with non-zero exit value 127

When I run build_js.sh on terminal, I see Missing destination directory on line. How can I fix it?
Also, if this is an open project for every user, how about making installation guide?

Thanks.

Need to update jxcore

We should be able to update jxcore at least to mozilla ESR 38 relatively easily, and then we should be able to update embedded deps (most importantly openssl)

Fix ArrayIndexOutOfBoundsException in service.ControlChannel.sendInvokeCallback, line 184

Version: 1.3.0 (130) | edu.stanford.thingengine.engine

Stacktrace

service.ControlChannel;sendInvokeCallback;ControlChannel.java;184
jsapi.JavascriptAPI;sendCallback;JavascriptAPI.java;31
jsapi.JavascriptAPI;access$000;JavascriptAPI.java;13
jsapi.JavascriptAPI$1$1;run;JavascriptAPI.java;49
service.ControlChannel;readOneReply;ControlChannel.java;117
service.ControlChannel;expectReply;ControlChannel.java;160
service.ControlChannel;sendInvokeCallback;ControlChannel.java;181

Reason

java.lang.ArrayIndexOutOfBoundsException: length=64; regionStart=0; regionLength=-1

Link to HockeyApp

Fix NullPointerException in ui.AssistantHistoryAdapter$AssistantMessageViewHolder$SlotFilling.slotByType, line 470

Version: 1.1.2 (112) | edu.stanford.thingengine.engine

Stacktrace

ui.AssistantHistoryAdapter$AssistantMessageViewHolder$SlotFilling;slotByType;AssistantHistoryAdapter.java;470
ui.AssistantHistoryAdapter$AssistantMessageViewHolder$SlotFilling;bind;AssistantHistoryAdapter.java;437
ui.AssistantHistoryAdapter;onBindViewHolder;AssistantHistoryAdapter.java;648
ui.AssistantHistoryAdapter;onBindViewHolder;AssistantHistoryAdapter.java;40

Reason

java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.hashCode()' on a null object reference

Link to HockeyApp

UI changes for WWW

  1. Disable auto-complete in the textbox
  2. Provide 3 buttons for confirming: YES, NO, TRAIN
  3. Remove suggestion bar. Suggestion: Bubble conversations
  4. Always confirm even for query and monitor before doing any slot filling
  5. Change make rule flow. Have 3 buttons for WHEN, GET, DO and use a separate view to fill them

Fix NullPointerException in ui.MainActivity.onSlotFillingActivated, line 771

Version: 1.3.1 (131) | edu.stanford.thingengine.engine

Stacktrace

ui.MainActivity;onSlotFillingActivated;MainActivity.java;771
ui.AssistantHistoryAdapter$AssistantMessageViewHolder$SlotFilling$2;onClick;AssistantHistoryAdapter.java;462
ui.AssistantHistoryAdapter$AssistantMessageViewHolder$SlotFilling$3;onClick;AssistantHistoryAdapter.java;499

Reason

java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference

Link to HockeyApp

Fix RuntimeException in io.jxcore.node.JXMobile$1.Receiver, line 39

Version: 1.1.2 (112) | edu.stanford.thingengine.engine

Stacktrace

io.jxcore.node.JXMobile$1;Receiver;JXMobile.java;39
io.jxcore.node.jxcore;javaCall;jxcore.java;158
io.jxcore.node.jxcore;loop;;
io.jxcore.node.jxcore;Loop;jxcore.java;132
service.EngineThread;run;EngineThread.java;81

Reason

java.lang.RuntimeException: this._pipeline is undefined

Link to HockeyApp

Compact buttons, show button replies

Button lists tend to be overwhelming and distracting. We should drop old buttons after the user interacted with them and replace them with a text item on the right, effectively compacting the button list to the user choice.

Fix lang.Exception in service.ControlChannel.sendInvokeCallback, line 184

Version: 1.3.0 (130) | edu.stanford.thingengine.engine

Stacktrace

service.ControlChannel;sendInvokeCallback;ControlChannel.java;184
jsapi.JavascriptAPI;sendCallback;JavascriptAPI.java;31
jsapi.JavascriptAPI;invokeAsync;JavascriptAPI.java;35
jsapi.AssistantAPI;handleParsedCommand;AssistantAPI.java;98
service.AssistantDispatcher$3;run;AssistantDispatcher.java;138
service.AssistantDispatcher$CommandTask;doInBackground;AssistantDispatcher.java;101
service.AssistantDispatcher$CommandTask;doInBackground;AssistantDispatcher.java;90
service.ControlChannel;expectReply;ControlChannel.java;170
service.ControlChannel;sendInvokeCallback;ControlChannel.java;181

Reason

java.lang.Exception: this._prefs is undefined

Link to HockeyApp

Fix NullPointerException in jsapi.BluetoothAPI.serializeBtDevice, line 176

Version: 1.5.0 (151) | edu.stanford.thingengine.engine

Stacktrace

jsapi.BluetoothAPI;serializeBtDevice;BluetoothAPI.java;176
jsapi.BluetoothAPI;onDeviceChanged;BluetoothAPI.java;192
jsapi.BluetoothAPI;access$300;BluetoothAPI.java;31
jsapi.BluetoothAPI$Receiver;onReceive;BluetoothAPI.java;64

Reason

java.lang.NullPointerException: Attempt to invoke virtual method 'int android.bluetooth.BluetoothClass.getDeviceClass()' on a null object reference

Link to HockeyApp

Separate popular vs regular help

The full help tends to be overwhelming, we should sort it by popularity and only show top 5 with a More... button

The full solution:

  • Keep track of the kind that the user clicks on, at confirm time
  • Periodically upload statistics in the thingpedia database and update popularity scores
  • Sort on popularity

The intermediate solution:

  • Sort Xkcd, Bing, Phone, Twitter and maybe Yandex Translate at the top, everything else later

Finish installation UI for apps

From the set of commonly used apps on thingpedia, we currently show the page but it tries to enable the apps on the cloud account

New UI

Tab based:

  • Recipes
  • Accounts & Devices
  • Chat
  • New Recipe

App name

Sabrina is a nice name, but I would like to call it in a male name, is it possible?

Fix RuntimeException in io.jxcore.node.JXMobile$1.Receiver, line 39

Version: 1.5.0 (150) | edu.stanford.thingengine.engine

Stacktrace

io.jxcore.node.JXMobile$1;Receiver;JXMobile.java;39
io.jxcore.node.jxcore;javaCall;jxcore.java;158
io.jxcore.node.jxcore;loop;;
io.jxcore.node.jxcore;Loop;jxcore.java;132
service.EngineThread;run;EngineThread.java;81

Reason

java.lang.RuntimeException: this._pipeline is undefined

Link to HockeyApp

Fix RejectedExecutionException in ui.LoadImageTask.load, line 36

Version: 1.5.0 (150) | edu.stanford.thingengine.engine

Stacktrace

ui.LoadImageTask;load;LoadImageTask.java;36
ui.MyRulesActivity$4;getView;MyRulesActivity.java;123

Reason

java.util.concurrent.RejectedExecutionException: Task android.os.AsyncTask$3@79fff93 rejected from java.util.concurrent.ThreadPoolExecutor@db0cbd0[Running, pool size = 9, active threads = 9, queued tasks = 128, completed tasks = 1160]

Link to HockeyApp

Fix EOFException in service.ControlChannel.sendInvokeCallback, line 187

Version: 1.3.1 (131) | edu.stanford.thingengine.engine

Stacktrace

service.ControlChannel;sendInvokeCallback;ControlChannel.java;187
jsapi.JavascriptAPI;sendCallback;JavascriptAPI.java;31
jsapi.JavascriptAPI;access$000;JavascriptAPI.java;13
jsapi.JavascriptAPI$1$1;run;JavascriptAPI.java;55
service.ControlChannel;readOneReply;ControlChannel.java;119
service.ControlChannel;expectReply;ControlChannel.java;163
service.ControlChannel;sendInvokeCallback;ControlChannel.java;184

Reason

java.io.EOFException: Control channel closed

Link to HockeyApp

Fix NullPointerException in ui.MainActivity.onSlotFillingActivated, line 707

Version: 1.3.1 (131) | edu.stanford.thingengine.engine

Stacktrace

ui.MainActivity;onSlotFillingActivated;MainActivity.java;707
ui.AssistantHistoryAdapter$AssistantMessageViewHolder$SlotFilling$2;onClick;AssistantHistoryAdapter.java;462

Reason

java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference

Link to HockeyApp

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.