We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4015 - Crash in SDLActivity.handleNativeState
Summary: Crash in SDLActivity.handleNativeState
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: main (show other bugs)
Version: 2.0.7
Hardware: ARM Android (All)
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-27 14:53 UTC by yglukhov
Modified: 2017-12-28 14:25 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yglukhov 2017-12-27 14:53:43 UTC
There's a crash in SDLActivity.handleNativeState, coming from our users. Was not observed in 2.0.5.

Fatal Exception: java.lang.NullPointerException
       at org.libsdl.app.SDLActivity.handleNativeState(SDLActivity.java:358)
       at org.libsdl.app.SDLSurface.surfaceDestroyed(SDLActivity.java:1093)
       at android.view.SurfaceView.updateWindow(SurfaceView.java:557)
       at android.view.SurfaceView.onWindowVisibilityChanged(SurfaceView.java:232)
       at android.view.View.dispatchDetachedFromWindow(View.java:12616)
       at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2587)
       at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2587)
       at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2587)
       at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2587)
       at android.view.ViewRootImpl.dispatchDetachedFromWindow(ViewRootImpl.java:2882)
       at android.view.ViewRootImpl.doDie(ViewRootImpl.java:5385)
       at android.view.ViewRootImpl.die(ViewRootImpl.java:5362)
       at android.view.WindowManagerGlobal.removeViewLocked(WindowManagerGlobal.java:346)
       at android.view.WindowManagerGlobal.removeView(WindowManagerGlobal.java:301)
       at android.view.WindowManagerImpl.removeViewImmediate(WindowManagerImpl.java:84)
       at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3533)
       at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3715)
       at android.app.ActivityThread.access$900(ActivityThread.java:135)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1202)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at android.os.Looper.loop(Looper.java:136)
       at android.app.ActivityThread.main(ActivityThread.java:5017)
       at java.lang.reflect.Method.invokeNative(Method.java)
       at java.lang.reflect.Method.invoke(Method.java:515)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
       at dalvik.system.NativeStart.main(NativeStart.java)
Comment 1 Sylvain 2017-12-28 13:44:00 UTC
Probably fixed by https://hg.libsdl.org/SDL/rev/c3bf2954de06
Comment 2 yglukhov 2017-12-28 13:55:09 UTC
Indeed, looks like it. As a side note, is there any schedule regarding the next release? :)
Comment 3 Sylvain 2017-12-28 14:25:25 UTC
Sorry don't know about future schedule.
You can also simply grab the latest source.

Marked as (already) resolved.