java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread. Make sure your adapter calls notifyDataSetChanged() when its content changes. [in ListView(2131689821, class android.widget.ListView) with Adapter(class com.quinny898.library.persistentsearch.SearchBox$SearchAdapter)]

Stack Overflow | Ram Mandal | 5 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    content of the adapter has changed but ListView did not receive a notification

    Stack Overflow | 5 months ago | Ram Mandal
    java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread. Make sure your adapter calls notifyDataSetChanged() when its content changes. [in ListView(2131689821, class android.widget.ListView) with Adapter(class com.quinny898.library.persistentsearch.SearchBox$SearchAdapter)]
  2. 0

    Random crash reproducible with certain posts

    GitHub | 12 months ago | gferon
    java.lang.IllegalStateException: Unable to create layer for CardView
  3. 0

    Scene transition with hero elements throws Layer exceeds max. dimensions supported by the GPU

    Stack Overflow | 2 years ago | Christer Nordvik
    java.lang.IllegalStateException: Unable to create layer for RelativeLayout
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    IllegalStateException: view has already been added to the window manager

    Stack Overflow | 2 years ago | xialin
    java.lang.IllegalStateException: View android.widget.LinearLayout{41a97eb8 V.E..... ......ID 0,0-540,105 #7f0b020d app:id/toast_layout_root} has already been added to the window manager.
  6. 0

    eglCreateContext failed with error: EGL_BAD_ALLOC

    GitHub | 2 years ago | adamsp
    java.lang.IllegalStateException: Could not create an EGL context. eglCreateContext failed with error: EGL_BAD_ALLOC

  1. filpgame 5 times, last 5 months ago
  2. mukky 4 times, last 8 months ago
  3. Akshay 1 times, last 9 months ago
  4. asvid 2 times, last 10 months ago
  5. lribeiro 5 times, last 10 months ago
8 more registered users
54 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalStateException

    The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread. Make sure your adapter calls notifyDataSetChanged() when its content changes. [in ListView(2131689821, class android.widget.ListView) with Adapter(class com.quinny898.library.persistentsearch.SearchBox$SearchAdapter)]

    at android.widget.ListView.layoutChildren()
  2. Android Platform
    ActivityThread.main
    1. android.widget.ListView.layoutChildren(ListView.java:1582)
    2. android.widget.AbsListView.onTouchModeChanged(AbsListView.java:3673)
    3. android.view.ViewTreeObserver.dispatchOnTouchModeChanged(ViewTreeObserver.java:997)
    4. android.view.ViewRootImpl.ensureTouchModeLocally(ViewRootImpl.java:3518)
    5. android.view.ViewRootImpl.ensureTouchMode(ViewRootImpl.java:3502)
    6. android.view.ViewRootImpl$EarlyPostImeInputStage.processPointerEvent(ViewRootImpl.java:4008)
    7. android.view.ViewRootImpl$EarlyPostImeInputStage.onProcess(ViewRootImpl.java:3976)
    8. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3627)
    9. android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:5910)
    10. android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:5884)
    11. android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:5855)
    12. android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6000)
    13. android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
    14. android.os.MessageQueue.nativePollOnce(Native Method)
    15. android.os.MessageQueue.next(MessageQueue.java:143)
    16. android.os.Looper.loop(Looper.java:122)
    17. android.app.ActivityThread.main(ActivityThread.java:5910)
    17 frames
  3. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  4. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1405)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1200)
    2 frames