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

(BUG)[susi_android Version 1.0.14 ] The application crashes when I click the try it button #2244

Closed
XAMIR555 opened this issue Jun 3, 2019 · 3 comments · Fixed by #2247
Closed

Comments

@XAMIR555
Copy link

XAMIR555 commented Jun 3, 2019

Project Information

  • Repository--------------:Here
  • Project Name----------: SUSI.AI
  • Publisher---------------: FOSSASIA
  • My GitHub account-----: Here

Expected behavior

The app should not crash when I click on the try button, all the applications should appear in the try it button

Actual behavior

The application crashes when I click the try button

How to reproduce

  • open the application

  • At the top right click the Blue icon

  • click on GCI option

  • click on the try it button

  • Note the Bug

  • Browser/App version-: 1.2.0

  • Operating system----: 8.1.0

Recording Of The Bug

20190603_163552

Logcat

06-03 16:30:54.041 27289 27289 E AndroidRuntime: FATAL EXCEPTION: main
06-03 16:30:54.041 27289 27289 E AndroidRuntime: Process: ai.susi, PID: 27289
06-03 16:30:54.041 27289 27289 E AndroidRuntime: java.lang.IllegalArgumentException: Called attach on a child which is not detached: ViewHolder{53c6c1a position=9 id=-1, oldPos=-1, pLpos:-1 not recyclable(0) no parent} android.support.v7.widget.RecyclerView{4674119 VFED.V... .F....ID 0,0-720,1268 #7f0900f1 app:id/rv_chat_feed}, adapter:org.fossasia.susi.ai.chat.adapters.recycleradapters.ChatFeedRecyclerAdapter@82285de, layout:android.support.v7.widget.LinearLayoutManager@330d3bf, context:org.fossasia.susi.ai.chat.ChatActivity@94d2d01
06-03 16:30:54.041 27289 27289 E AndroidRuntime: 	at android.support.v7.widget.RecyclerView$5.attachViewToParent(RecyclerView.java:915)
06-03 16:30:54.041 27289 27289 E AndroidRuntime: 	at android.support.v7.widget.ChildHelper.attachViewToParent(ChildHelper.java:239)
06-03 16:30:54.041 27289 27289 E AndroidRuntime: 	at android.support.v7.widget.RecyclerView$LayoutManager.addViewInt(RecyclerView.java:8317)
06-03 16:30:54.041 27289 27289 E AndroidRuntime: 	at android.support.v7.widget.RecyclerView$LayoutManager.addView(RecyclerView.java:8294)
06-03 16:30:54.041 27289 27289 E AndroidRuntime: 	at android.support.v7.widget.RecyclerView$LayoutManager.addView(RecyclerView.java:8282)
06-03 16:30:54.041 27289 27289 E AndroidRuntime: 	at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1571)
06-03 16:30:54.041 27289 27289 E AndroidRuntime: 	at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1517)
06-03 16:30:54.041 27289 27289 E AndroidRuntime: 	at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:597)
06-03 16:30:54.041 27289 27289 E AndroidRuntime: 	at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3924)
06-03 16:30:54.041 27289 27289 E AndroidRuntime: 	at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3641)
06-03 16:30:54.041 27289 27289 E AndroidRuntime: 	at android.support.v7.widget.RecyclerView.consumePendingUpdateOperations(RecyclerView.java:1858)
06-03 16:30:54.041 27289 27289 E AndroidRuntime: 	at android.support.v7.widget.RecyclerView$ViewFlinger.run(RecyclerView.java:5044)
06-03 16:30:54.041 27289 27289 E AndroidRuntime: 	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1041)
06-03 16:30:54.041 27289 27289 E AndroidRuntime: 	at android.view.Choreographer.doCallbacks(Choreographer.java:847)
06-03 16:30:54.041 27289 27289 E AndroidRuntime: 	at android.view.Choreographer.doFrame(Choreographer.java:771)
06-03 16:30:54.041 27289 27289 E AndroidRuntime: 	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1027)
06-03 16:30:54.041 27289 27289 E AndroidRuntime: 	at android.os.Handler.handleCallback(Handler.java:809)
06-03 16:30:54.041 27289 27289 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:102)
06-03 16:30:54.041 27289 27289 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:166)
06-03 16:30:54.041 27289 27289 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:7555)
06-03 16:30:54.041 27289 27289 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
06-03 16:30:54.041 27289 27289 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:469)
06-03 16:30:54.041 27289 27289 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:963)
06-03 16:31:11.640 27478 27478 E AndroidRuntime: FATAL EXCEPTION: main
06-03 16:31:11.640 27478 27478 E AndroidRuntime: Process: ai.susi, PID: 27478
06-03 16:31:11.640 27478 27478 E AndroidRuntime: java.lang.IllegalArgumentException: Called attach on a child which is not detached: ViewHolder{541201e position=11 id=-1, oldPos=-1, pLpos:-1 not recyclable(0) no parent} android.support.v7.widget.RecyclerView{905f5bb VFED.V... .F....ID 0,0-720,1268 #7f0900f1 app:id/rv_chat_feed}, adapter:org.fossasia.susi.ai.chat.adapters.recycleradapters.ChatFeedRecyclerAdapter@20acad8, layout:android.support.v7.widget.LinearLayoutManager@3765e31, context:org.fossasia.susi.ai.chat.ChatActivity@5c887d5
06-03 16:31:11.640 27478 27478 E AndroidRuntime: 	at android.support.v7.widget.RecyclerView$5.attachViewToParent(RecyclerView.java:915)
06-03 16:31:11.640 27478 27478 E AndroidRuntime: 	at android.support.v7.widget.ChildHelper.attachViewToParent(ChildHelper.java:239)
06-03 16:31:11.640 27478 27478 E AndroidRuntime: 	at android.support.v7.widget.RecyclerView$LayoutManager.addViewInt(RecyclerView.java:8317)
06-03 16:31:11.640 27478 27478 E AndroidRuntime: 	at android.support.v7.widget.RecyclerView$LayoutManager.addView(RecyclerView.java:8294)
06-03 16:31:11.640 27478 27478 E AndroidRuntime: 	at android.support.v7.widget.RecyclerView$LayoutManager.addView(RecyclerView.java:8282)
06-03 16:31:11.640 27478 27478 E AndroidRuntime: 	at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1571)
06-03 16:31:11.640 27478 27478 E AndroidRuntime: 	at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1517)
06-03 16:31:11.640 27478 27478 E AndroidRuntime: 	at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:597)
06-03 16:31:11.640 27478 27478 E AndroidRuntime: 	at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3924)
06-03 16:31:11.640 27478 27478 E AndroidRuntime: 	at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3641)
06-03 16:31:11.640 27478 27478 E AndroidRuntime: 	at android.support.v7.widget.RecyclerView.consumePendingUpdateOperations(RecyclerView.java:1858)
06-03 16:31:11.640 27478 27478 E AndroidRuntime: 	at android.support.v7.widget.RecyclerView$ViewFlinger.run(RecyclerView.java:5044)
06-03 16:31:11.640 27478 27478 E AndroidRuntime: 	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1041)
06-03 16:31:11.640 27478 27478 E AndroidRuntime: 	at android.view.Choreographer.doCallbacks(Choreographer.java:847)
06-03 16:31:11.640 27478 27478 E AndroidRuntime: 	at android.view.Choreographer.doFrame(Choreographer.java:771)
06-03 16:31:11.640 27478 27478 E AndroidRuntime: 	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1027)
06-03 16:31:11.640 27478 27478 E AndroidRuntime: 	at android.os.Handler.handleCallback(Handler.java:809)
06-03 16:31:11.640 27478 27478 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:102)
06-03 16:31:11.640 27478 27478 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:166)
06-03 16:31:11.640 27478 27478 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:7555)
06-03 16:31:11.640 27478 27478 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
06-03 16:31:11.640 27478 27478 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:469)
06-03 16:31:11.640 27478 27478 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:963)
@XAMIR555 XAMIR555 changed the title (BUG)[susi_android Version 1.0.14 ] The application crashes when I click the try button (BUG)[susi_android Version 1.0.14 ] The application crashes when I click the try it button Jun 3, 2019
@atm1504
Copy link
Member

atm1504 commented Jun 3, 2019

@XAMIR555 thank you for reporting the bug. I will surely look into it.

@XAMIR555
Copy link
Author

XAMIR555 commented Jun 3, 2019

Welcome sir

@atm1504
Copy link
Member

atm1504 commented Jun 3, 2019

Yah I was able to reproduce the bug in the way u said. I will be looking for it tonight.

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