Like a lot of people (I’m sure), my app is already getting pretty complex after just a few days of work. Then out of no where I start getting this ERROR: Object reference not set to an instance of an object
in the Monitor.
Is there anyway for us to get some additional details about where the error is generated from? Or is there some way to further troubleshoot these without having to post new threads each time?
Additionally, I’m not sure I could post snippets of code that would be helpful, short of posting my whole git repo… which for security and confidentiality reasons I cannot do.
Please help. Many thanks for a great product so far! Levi
Also, I realize there are other posts regarding this error, but I’m hoping this thread can contain helpful troubleshooting tips. Or ways to dig deeper into the error logging.
Thanks again, Levi
Hey Levi! Are you getting this error when building, or reloading, etc? In preview, or on a device? Which device?
The thing about these errors are that we’re also quite in the dark when they come up, so any additional details you can provide are super helpful.
Hey Jake! In this case, it’s after every build (to Local). When I click “restart” from the simulator, the app starts up fine. There are no errors when building either. And every once in a while, after a “save” it fails with that message. Again, a click (or sometimes several clicks) to the “restart” button and the app works fine.
I realize debugging this is going to be a nightmare. That’s why I was hoping there was some deeper logging going on somewhere that I could dig in to… Or some other creative way to narrow down the issue.
When I try to build for Android and monitor the logcat here is what i get:
10-15 10:31:23.321 27059-27059/com.FuseConsumer D/FuseConsumer: Object reference was null
10-15 10:31:23.321 27059-27059/com.FuseConsumer W/System.err: java.lang.RuntimeException: Object reference was null
10-15 10:31:23.321 27059-27059/com.FuseConsumer W/System.err: at com.Bindings.Binding_Fuse_App_FrameCallback.__n_doFrame(Native Method)
10-15 10:31:23.321 27059-27059/com.FuseConsumer W/System.err: at com.Bindings.Binding_Fuse_App_FrameCallback.doFrame(Binding_Fuse_App_FrameCallback.java:14)
10-15 10:31:23.321 27059-27059/com.FuseConsumer W/System.err: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:801)
10-15 10:31:23.321 27059-27059/com.FuseConsumer W/System.err: at android.view.Choreographer.doCallbacks(Choreographer.java:603)
10-15 10:31:23.331 27059-27059/com.FuseConsumer W/System.err: at android.view.Choreographer.doFrame(Choreographer.java:572)
10-15 10:31:23.331 27059-27059/com.FuseConsumer W/System.err: at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:789)
10-15 10:31:23.331 27059-27059/com.FuseConsumer W/System.err: at android.os.Handler.handleCallback(Handler.java:733)
10-15 10:31:23.331 27059-27059/com.FuseConsumer W/System.err: at android.os.Handler.dispatchMessage(Handler.java:95)
10-15 10:31:23.331 27059-27059/com.FuseConsumer W/System.err: at android.os.Looper.loop(Looper.java:157)
10-15 10:31:23.331 27059-27059/com.FuseConsumer W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5293)
10-15 10:31:23.331 27059-27059/com.FuseConsumer W/System.err: at java.lang.reflect.Method.invokeNative(Native Method)
10-15 10:31:23.331 27059-27059/com.FuseConsumer W/System.err: at java.lang.reflect.Method.invoke(Method.java:515)
10-15 10:31:23.331 27059-27059/com.FuseConsumer W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265)
10-15 10:31:23.331 27059-27059/com.FuseConsumer W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)
10-15 10:31:23.331 27059-27059/com.FuseConsumer W/System.err: at dalvik.system.NativeStart.main(Native Method)
10-15 10:31:23.331 27059-27059/com.FuseConsumer A/libc: Fatal signal 11 (SIGSEGV) at 0xdeadcab1 (code=1), thread 27059 (om.FuseConsumer)
Hey again Levi!
This sounds like something we should have a look at. Could you please zip and upload a test case to http://dropbox.com/request/Rx1QN3QluvxAJiyGJqrh ? Removing the .build and .cache folders should make the size tolerable. If you’re able to produce a minimal app where you get this bug that’d be even better. Thanks!