question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
realrufanscommented, Jun 1, 2019

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)

1reaction
HarryHeightscommented, Jun 1, 2019

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

The app crashes, what should I do? - Welltory Help Center
The app crashes, what should I do? ... Quick fix: in most cases, it helps to delete the app, restart the smartphone, and...
Read more >
In iOS 15, when the app is restarted, it immediately crashes.
After the iOS 15 update, the following process causes the app to die. Go to the home screen while running the app; Completely...
Read more >
How to Fix Crashing Apps on an iPhone or Android?
Sometimes app-crashing is not caused by your phone, but rather the app itself. An internal error, or bug, may have brought the app...
Read more >
Android App Crashes Suddenly while running? - Stack Overflow
I understand that onLowMemory is not being called; however, have you tried monitoring your memory usage looking for memory leaks? Additionally, are you...
Read more >
Desktop App Crashing - Closed - Asana Community Forum
Uninstalling v1.7 and reinstalling v1.6 worked for me. I was experiencing the same symptoms described by others. Immediately after upgrading v1.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found