Bug 15789 - Another SIGSEGV with support library
Summary: Another SIGSEGV with support library
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Android
Classification: Xamarin
Component: Mono runtime / AOT Compiler ()
Version: 4.8.x
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Jonathan Pryor
URL:
Depends on:
Blocks:
 
Reported: 2013-10-29 11:54 UTC by Goncalo Oliveira
Modified: 2013-12-04 13:07 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NOT_REPRODUCIBLE

Description Goncalo Oliveira 2013-10-29 11:54:44 UTC
This was here with previous "stable" release and continues to exist with current "stable" release.

10-29 15:50:28.656: E/FMobileApplication(2665): APPLICATION Java.Lang.Thread.DefaultUncaughtExceptionHandler.UncaughtException:
10-29 15:50:28.695: E/FMobileApplication(2665): Java.Lang.NullPointerException: Exception of type 'Java.Lang.NullPointerException' was thrown.
10-29 15:50:28.695: E/FMobileApplication(2665):   --- End of managed exception stack trace ---
10-29 15:50:28.695: E/FMobileApplication(2665): java.lang.NullPointerException
10-29 15:50:28.695: E/FMobileApplication(2665): 	at android.support.v4.app.BackStackRecord.doAddOp(BackStackRecord.java:394)
10-29 15:50:28.695: E/FMobileApplication(2665): 	at android.support.v4.app.BackStackRecord.add(BackStackRecord.java:389)
10-29 15:50:28.695: E/FMobileApplication(2665): 	at android.support.v4.app.FragmentPagerAdapter.instantiateItem(FragmentPagerAdapter.java:99)
10-29 15:50:28.695: E/FMobileApplication(2665): 	at android.support.v4.view.ViewPager.addNewItem(ViewPager.java:829)
10-29 15:50:28.695: E/FMobileApplication(2665): 	at android.support.v4.view.ViewPager.populate(ViewPager.java:1044)
10-29 15:50:28.695: E/FMobileApplication(2665): 	at android.support.v4.view.ViewPager.populate(ViewPager.java:911)
10-29 15:50:28.695: E/FMobileApplication(2665): 	at android.support.v4.view.ViewPager$3.run(ViewPager.java:242)
10-29 15:50:28.695: E/FMobileApplication(2665): 	at android.os.Handler.handleCallback(Handler.java:605)
10-29 15:50:28.695: E/FMobileApplication(2665): 	at android.os.Handler.dispatchMessage(Handler.java:92)
10-29 15:50:28.695: E/FMobileApplication(2665): 	at android.os.Looper.loop(Looper.java:137)
10-29 15:50:28.695: E/FMobileApplication(2665): 	at android.app.ActivityThread.main(ActivityThread.java:4514)
10-29 15:50:28.695: E/FMobileApplication(2665): 	at java.lang.reflect.Method.invokeNative(Native Method)
10-29 15:50:28.695: E/FMobileApplication(2665): 	at java.lang.reflect.Method.invoke(Method.java:511)
10-29 15:50:28.695: E/FMobileApplication(2665): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790)
10-29 15:50:28.695: E/FMobileApplication(2665): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:557)
10-29 15:50:28.695: E/FMobileApplication(2665): 	at dalvik.system.NativeStart.main(Native Method)
10-29 15:50:51.351: E/FMobileApplication(2665): Unhandled exception raised! Building crash report...
10-29 15:50:51.351: E/FMobileApplication(2665): Java.Lang.NullPointerException: Exception of type 'Java.Lang.NullPointerException' was thrown.
10-29 15:50:51.351: E/FMobileApplication(2665):   --- End of managed exception stack trace ---
10-29 15:50:51.351: E/FMobileApplication(2665): java.lang.NullPointerException
10-29 15:50:51.351: E/FMobileApplication(2665): 	at android.support.v4.app.BackStackRecord.doAddOp(BackStackRecord.java:394)
10-29 15:50:51.351: E/FMobileApplication(2665): 	at android.support.v4.app.BackStackRecord.add(BackStackRecord.java:389)
10-29 15:50:51.351: E/FMobileApplication(2665): 	at android.support.v4.app.FragmentPagerAdapter.instantiateItem(FragmentPagerAdapter.java:99)
10-29 15:50:51.351: E/FMobileApplication(2665): 	at android.support.v4.view.ViewPager.addNewItem(ViewPager.java:829)
10-29 15:50:51.351: E/FMobileApplication(2665): 	at android.support.v4.view.ViewPager.populate(ViewPager.java:1044)
10-29 15:50:51.351: E/FMobileApplication(2665): 	at android.support.v4.view.ViewPager.populate(ViewPager.java:911)
10-29 15:50:51.351: E/FMobileApplication(2665): 	at android.support.v4.view.ViewPager$3.run(ViewPager.java:242)
10-29 15:50:51.351: E/FMobileApplication(2665): 	at android.os.Handler.handleCallback(Handler.java:605)
10-29 15:50:51.351: E/FMobileApplication(2665): 	at android.os.Handler.dispatchMessage(Handler.java:92)
10-29 15:50:51.351: E/FMobileApplication(2665): 	at android.os.Looper.loop(Looper.java:137)
10-29 15:50:51.351: E/FMobileApplication(2665): 	at android.app.ActivityThread.main(ActivityThread.java:4514)
10-29 15:50:51.351: E/FMobileApplication(2665): 	at java.lang.reflect.Method.invokeNative(Native Method)
10-29 15:50:51.351: E/FMobileApplication(2665): 	at java.lang.reflect.Method.invoke(Method.java:511)
10-29 15:50:51.351: E/FMobileApplication(2665): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790)
10-29 15:50:51.351: E/FMobileApplication(2665): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:557)
10-29 15:50:51.351: E/FMobileApplication(2665): 	at dalvik.system.NativeStart.main(Native Method)
10-29 15:50:51.882: E/dalvikvm(2665): VM aborting
10-29 15:50:51.882: E/mono-rt(2665): Stacktrace:
10-29 15:50:51.882: E/mono-rt(2665):   at <unknown> <0xffffffff>
10-29 15:50:51.882: E/mono-rt(2665):   at (wrapper managed-to-native) object.wrapper_native_0x408eb0b5 (intptr,intptr,string,string) <IL 0x0004c, 0xffffffff>
10-29 15:50:51.882: E/mono-rt(2665):   at (wrapper delegate-invoke) <Module>.invoke_intptr__this___intptr_intptr_string_string (intptr,intptr,string,string) <IL 0x00063, 0xffffffff>
10-29 15:50:51.882: E/mono-rt(2665):   at Android.Runtime.JNIEnv.GetMethodID (intptr,string,string) [0x00000] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.8.2-branch/a25a31d0/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.g.cs:118
10-29 15:50:51.882: E/mono-rt(2665):   at Java.Lang.Throwable.get_Message () [0x00014] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.8.2-branch/a25a31d0/source/monodroid/src/Mono.Android/platforms/android-14/src/generated/Java.Lang.Throwable.cs:201
10-29 15:50:51.882: E/mono-rt(2665):   at (wrapper runtime-invoke) <Module>.runtime_invoke_object__this__ (object,intptr,intptr,intptr) <IL 0x00050, 0xffffffff>
10-29 15:50:51.882: E/mono-rt(2665):   at <unknown> <0xffffffff>
10-29 15:50:51.882: E/mono-rt(2665):   at (wrapper dynamic-method) object.46402e9f-0fa6-4c07-9f0a-9c3a4bfbfc60 (intptr,intptr,intptr,intptr) <IL 0x0003a, 0x000b0>
10-29 15:50:51.882: E/mono-rt(2665):   at (wrapper native-to-managed) object.46402e9f-0fa6-4c07-9f0a-9c3a4bfbfc60 (intptr,intptr,intptr,intptr) <IL 0x00024, 0xffffffff>
10-29 15:50:51.882: E/mono-rt(2665): =================================================================
10-29 15:50:51.882: E/mono-rt(2665): Got a SIGSEGV while executing native code. This usually indicates
10-29 15:50:51.882: E/mono-rt(2665): a fatal error in the mono runtime or one of the native libraries 
10-29 15:50:51.882: E/mono-rt(2665): used by your application.
10-29 15:50:51.882: E/mono-rt(2665): =================================================================
Comment 1 Jonathan Pryor 2013-10-30 14:32:29 UTC
The exception is a NullPointerException _within_ android.support.v4.app.BackStackRecord.doAddOp() (i.e. within the support library). It looks rather like this, which implies a usage error:

http://stackoverflow.com/questions/11099897/viewpager-fragmentpageradapter-nullpointer

See also:

https://www.google.com/search?q=NullPointerException+android.support.v4.app.BackStackRecord.doAddOp
Comment 4 Jonathan Pryor 2013-10-30 15:10:44 UTC
Please provide a test case.
Comment 5 Goncalo Oliveira 2013-12-04 13:07:10 UTC
This seems to be resolved with latest 4.10.01073.