i have xamarin android app in production. in google play console can see many instances of same crash, not able reproduce locally. stack trace quite generic:
java.lang.runtimeexception: java.lang.reflect.invocationtargetexception @ com.android.internal.os.zygoteinit.main(zygoteinit.java:1194) caused by: java.lang.reflect.invocationtargetexception @ java.lang.reflect.method.invoke(native method) @ java.lang.reflect.method.invoke(method.java:372) @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:1399) ... 1 more caused by: md52ce486a14f4bcd95899665e9d932190b.javaproxythrowable: system.nullreferenceexception: object reference not set instance of object @ myapp.activities.mainactivity.oncreate (android.os.bundle) <0x001a4> @ android.app.activity.n_oncreate_landroid_os_bundle_ (intptr,intptr,intptr) <0x0005b> @ (wrapper dynamic-method) object.2b42a88f-c445-435d-aa7c-f905596cf5db (intptr,intptr,intptr) <0x00043> @ md5317d85657469e27a0cec50bfaa82e3ea.mainactivity.n_oncreate(native method) @ md5317d85657469e27a0cec50bfaa82e3ea.mainactivity.oncreate(mainactivity.java:43) @ android.app.activity.performcreate(activity.java:6221) @ android.app.instrumentation.callactivityoncreate(instrumentation.java:1119) @ android.app.activitythread.performlaunchactivity(activitythread.java:2611) @ android.app.activitythread.handlelaunchactivity(activitythread.java:2723) @ android.app.activitythread.access$900(activitythread.java:172) @ android.app.activitythread$h.handlemessage(activitythread.java:1422) @ android.os.handler.dispatchmessage(handler.java:102) @ android.os.looper.loop(looper.java:145) @ android.app.activitythread.main(activitythread.java:5832) ... 4 more so can see crash in oncreate of mainactivity. where?
is possible crash in method called oncreate , stack trace not accurate? because oncreate pretty call other method, few lines of code in method itself:
protected override void oncreate(bundle bundle) { base.oncreate(bundle); #if debug_fragments fragmentmanager.enabledebuglogging(true); #endif var usersettingsmanager = new usersettingsmanager(this); window.setflags(usersettingsmanager.fullscreen ? windowmanagerflags.fullscreen : 0, windowmanagerflags.fullscreen); setcontentview(resource.layout.mainlayout); if ((int)build.version.sdkint >= 17 && window.decorview != null) { window.decorview.layoutdirection = utils.localizationhelper.islanguagertl(usersettingsmanager.language) ? android.views.layoutdirection.rtl : android.views.layoutdirection.ltr; } if (this.actionbar != null) { this.actionbar.hide(); } initializesomething(usersettingsmanager); initializesomethingelse(); initializestuff(); } what number @ end of line
at myapp.activities.mainactivity.oncreate (android.os.bundle) <0x001a4> can somehow me find exact line of null reference? in common .net errors there il offsets, doesnt seem one.
might free account @ crashlytics , integrate code.
should reports on live production crashes.
see https://try.crashlytics.com/ more info.
Comments
Post a Comment