Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Susi v1.1.0; The app crashes when I asked some questions. #2239

Closed
HarryHeights opened this issue May 31, 2019 · 12 comments
Closed

Susi v1.1.0; The app crashes when I asked some questions. #2239

HarryHeights opened this issue May 31, 2019 · 12 comments

Comments

@HarryHeights
Copy link

Describe the bug
The app crashed when I tried to ask certain questions. I don't the questions are the cause of the crash though. But the app mostly crashed when I asked who the President of my country was.

Expected Behaviour
If the AI had knowledge of who my President is(it does have that information), I expected it to reply me with the answer. It did though, but the app had crashed.

Steps to reproduce it

  1. Ensure app process isn't running in the background.
  2. Launch app.
  3. You could ask the same question I asked. "Who is the President of Nigeria?"
  4. See error

Screen recording
https://youtu.be/hTnpa4mpeAM

Test Environment:
Device: Redmi Note 5 Pro
OS: Android 8.1.0
Software version: Susi v1.1.0

Would you like to work on the issue?
I don't have the technical know-how to work on the issue.

Logcat

java.lang.IllegalArgumentException: Called attach on a child which is not detached: ViewHolder{b207293 position=37 id=-1, oldPos=-1, pLpos:-1 no parent} android.support.v7.widget.RecyclerView{faccb82 VFED.V... .F....ID 0,0-1080,1931 #7f0900fe app:id/rv_chat_feed}, adapter:org.fossasia.susi.ai.chat.adapters.recycleradapters.ChatFeedRecyclerAdapter@ac32e4f, layout:android.support.v7.widget.LinearLayoutManager@d50f9dc, context:org.fossasia.susi.ai.chat.ChatActivity@6a3c1b
	at android.support.v7.widget.RecyclerView$5.attachViewToParent(RecyclerView.java:915)
	at android.support.v7.widget.ChildHelper.attachViewToParent(ChildHelper.java:239)
	at android.support.v7.widget.RecyclerView$LayoutManager.addViewInt(RecyclerView.java:8317)
	at android.support.v7.widget.RecyclerView$LayoutManager.addView(RecyclerView.java:8294)
	at android.support.v7.widget.RecyclerView$LayoutManager.addView(RecyclerView.java:8282)
	at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1571)
	at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1517)
	at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:597)
	at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3924)
	at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3641)
	at android.support.v7.widget.RecyclerView.consumePendingUpdateOperations(RecyclerView.java:1858)
	at android.support.v7.widget.RecyclerView$ViewFlinger.run(RecyclerView.java:5044)
	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1029)
	at android.view.Choreographer.doCallbacks(Choreographer.java:841)
	at android.view.Choreographer.doFrame(Choreographer.java:769)
	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1015)
	at android.os.Handler.handleCallback(Handler.java:794)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:176)
	at android.app.ActivityThread.main(ActivityThread.java:6635)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:823)

@atm1504
Copy link
Member

atm1504 commented May 31, 2019

@HarryHeights please recheck it. I tried to reproduce it but the app did not crash. It's working fine irrespective of the method of input (voice or type).

@HarryHeights
Copy link
Author

I'm still experiencing the error. It doesn't occur frequently though.

@atm1504
Copy link
Member

atm1504 commented Jun 1, 2019

@HarryHeights I don't think its because susi does not have the answer. Susi has the answer to this question. Also if susi don't know any answer it says that it has not been trained to answer the question. Please check in more detail. The app is crashing because of some other problem.

@HarryHeights
Copy link
Author

Yea @atm1504 . I really dunno what's causing the problem. But it's happening anyway. It just happens.

@atm1504
Copy link
Member

atm1504 commented Jun 1, 2019

@HarryHeights please try building the app from the development branch and check if the error still exists for you or not.

@HarryHeights
Copy link
Author

I have zero development skills. I'm just a content creator.

@realrufans
Copy link

I downloaded it from F-Droid and I was able to reproduce this.

I will download the git into my AS to see if it will crash with my emulator (Android 9)

@atm1504
Copy link
Member

atm1504 commented Jun 4, 2019

@iamareebjamal it can easily be resolved after #2247 is merged.

@iamareebjamal
Copy link
Member

How is that related to this issue?

@atm1504
Copy link
Member

atm1504 commented Jun 4, 2019

There is some fault in establishing the system of passing the voice command to the chat activity. What the app treats is that it executes the code twice, once as a query parameter and the other time as an undelivered message. So, sometimes we are getting multiple response. This is leading to the crash of the app.

@atm1504
Copy link
Member

atm1504 commented Jun 5, 2019

@iamareebjamal I hope this issue will resolve after #2236 is merged.

@atm1504
Copy link
Member

atm1504 commented Jul 11, 2019

@mariobehling @iamareebjamal I can no longer reproduce this issue. Please close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants