pdaddyo / soundbounce

Social listening for Spotify - music sounds better together.
MIT License
252 stars 28 forks source link

Android Crash: NullPointerException at SpotifyBrowserAPIInterface.java:114 #225

Open beveradb opened 9 years ago

beveradb commented 9 years ago

This one's almost certainly on me as it's in the wrapper code, not javascript.

Just posting this here as a ticket to remind me it needs to be looked into. Here are the last few lines of the crash report if it helps anyone, I've got a full crash report with far more information but there are potentially sensitive details in there so I won't post it publicly.

81  03-25 21:43:36.410 I/SB.CustomUIClient( 7245): Page load started for url: http://app.soundbounce.org/app.html started by: org.soundbounce.soundbounce.helpers.CustomXWalkUIClient.onPageLoadStarted, java.lang.reflect.Method.invokeNative, java.lang.reflect.Method.invoke
82  03-25 21:43:37.120 W/BindingManager( 7245): Cannot call determinedVisibility() - never saw a connection for the pid: 7245
83  03-25 21:43:37.180 I/SpotifySDK( 7245): Login complete
84  03-25 21:43:37.220 V/SB.MainActivity( 7245): In method: onLoggedIn, called by: run
85  03-25 21:43:37.220 D/SB.MainActivity( 7245): User logged in
86  03-25 21:43:47.800 W/SB.CustomUIClient( 7245): Caught Chromium Console Message: You are using the in-browser JSX transformer. Be sure to precompile your JSX for production - http://facebook.github.io/react/docs/tooling-integration.html#jsx
87  03-25 21:43:47.800 W/SB.CustomUIClient( 7245): of type: WARNING
88  03-25 21:43:47.800 W/SB.CustomUIClient( 7245): from lineNumber: 318
89  03-25 21:43:47.800 W/SB.CustomUIClient( 7245): and sourceId: http://cdnjs.cloudflare.com/ajax/libs/react/0.12.1/JSXTransformer.js
90  03-25 21:43:47.800 I/chromium( 7245): [INFO:CONSOLE(318)] \"You are using the in-browser JSX transformer. Be sure to precompile your JSX for production - http://facebook.github.io/react/docs/tooling-integration.html#jsx\", source: http://cdnjs.cloudflare.com/ajax/libs/react/0.12.1/JSXTransformer.js (318)
91  03-25 21:44:10.770 V/SB.CustomUIClient( 7245): In method: onPageLoadStopped, called by: invokeNative
92  03-25 21:44:10.770 I/SB.CustomUIClient( 7245): Page load finished for url: http://app.soundbounce.org/app.html started by: org.soundbounce.soundbounce.helpers.CustomXWalkUIClient.onPageLoadStopped, java.lang.reflect.Method.invokeNative, java.lang.reflect.Method.invoke
93  03-25 21:44:10.770 V/SB.CustomXWalkResourceClient( 7245): In method: onLoadFinished, called by: invokeNative
94  03-25 21:44:14.400 W/BindingManager( 7245): Cannot call determinedVisibility() - never saw a connection for the pid: 7245
95  03-25 21:44:14.400 V/SB.CustomUIClient( 7245): In method: onPageLoadStopped, called by: invokeNative
96  03-25 21:44:14.400 I/SB.CustomUIClient( 7245): Page load finished for url: http://app.soundbounce.org/app.html#home started by: org.soundbounce.soundbounce.helpers.CustomXWalkUIClient.onPageLoadStopped, java.lang.reflect.Method.invokeNative, java.lang.reflect.Method.invoke
97  03-25 21:44:14.400 V/SB.CustomXWalkResourceClient( 7245): In method: onLoadFinished, called by: invokeNative
98  03-25 21:44:14.770 W/SB.CustomUIClient( 7245): Caught Chromium Console Message: Warning: Unknown DOM property class. Did you mean className?
99  03-25 21:44:14.770 W/SB.CustomUIClient( 7245): of type: WARNING
100 03-25 21:44:14.770 W/SB.CustomUIClient( 7245): from lineNumber: 19793
101 03-25 21:44:14.770 W/SB.CustomUIClient( 7245): and sourceId: http://cdnjs.cloudflare.com/ajax/libs/react/0.12.1/react-with-addons.js
102 03-25 21:44:14.770 I/chromium( 7245): [INFO:CONSOLE(19793)] \"Warning: Unknown DOM property class. Did you mean className?\", source: http://cdnjs.cloudflare.com/ajax/libs/react/0.12.1/react-with-addons.js (19793)
103 03-25 21:44:27.560 D/dalvikvm( 7245): GC_CONCURRENT freed 394K, 19% free 4115K/5063K, paused 12ms+24ms, total 96ms
104 03-25 21:44:45.690 W/BindingManager( 7245): Cannot call determinedVisibility() - never saw a connection for the pid: 7245
105 03-25 21:44:45.700 V/SB.CustomUIClient( 7245): In method: onPageLoadStopped, called by: invokeNative
106 03-25 21:44:45.700 I/SB.CustomUIClient( 7245): Page load finished for url: http://app.soundbounce.org/app.html#room/QktCzSOW/1565c0 started by: org.soundbounce.soundbounce.helpers.CustomXWalkUIClient.onPageLoadStopped, java.lang.reflect.Method.invokeNative, java.lang.reflect.Method.invoke
107 03-25 21:44:45.700 V/SB.CustomXWalkResourceClient( 7245): In method: onLoadFinished, called by: invokeNative
108 03-25 21:44:48.000 I/SB.CustomUIClient( 7245): Caught Chromium Console Message: ms difference from server:
109 03-25 21:44:48.000 I/SB.CustomUIClient( 7245): of type: LOG
110 03-25 21:44:48.000 I/SB.CustomUIClient( 7245): from lineNumber: 338
111 03-25 21:44:48.000 I/SB.CustomUIClient( 7245): and sourceId:
112 03-25 21:44:48.000 I/chromium( 7245): [INFO:CONSOLE(338)] \"ms difference from server:\", source: (338)
113 03-25 21:44:48.170 W/SB.CustomUIClient( 7245): Caught Chromium Console Message: Each child in an array should have a unique \"key\" prop. Check the render method of RoomPage. See http://fb.me/react-warning-keys for more information.
114 03-25 21:44:48.170 W/SB.CustomUIClient( 7245): of type: WARNING
115 03-25 21:44:48.170 W/SB.CustomUIClient( 7245): from lineNumber: 10115
116 03-25 21:44:48.170 W/SB.CustomUIClient( 7245): and sourceId: http://cdnjs.cloudflare.com/ajax/libs/react/0.12.1/react-with-addons.js
117 03-25 21:44:48.170 I/chromium( 7245): [INFO:CONSOLE(10115)] \"Each child in an array should have a unique \"key\" prop. Check the render method of RoomPage. See http://fb.me/react-warning-keys for more information.\", source: http://cdnjs.cloudflare.com/ajax/libs/react/0.12.1/react-with-addons.js (10115)
118 03-25 21:44:48.270 W/SB.CustomUIClient( 7245): Caught Chromium Console Message: Each child in an array should have a unique \"key\" prop. Check the render method of ArtistList. See http://fb.me/react-warning-keys for more information.
119 03-25 21:44:48.270 W/SB.CustomUIClient( 7245): of type: WARNING
120 03-25 21:44:48.270 W/SB.CustomUIClient( 7245): from lineNumber: 10115
121 03-25 21:44:48.270 W/SB.CustomUIClient( 7245): and sourceId: http://cdnjs.cloudflare.com/ajax/libs/react/0.12.1/react-with-addons.js
122 03-25 21:44:48.270 I/chromium( 7245): [INFO:CONSOLE(10115)] \"Each child in an array should have a unique \"key\" prop. Check the render method of ArtistList. See http://fb.me/react-warning-keys for more information.\", source: http://cdnjs.cloudflare.com/ajax/libs/react/0.12.1/react-with-addons.js (10115)
123 03-25 21:44:50.830 V/SB.MainActivity( 7245): In method: dispatchKeyEvent, called by: dispatchKeyEvent
124 03-25 21:44:50.830 I/SB.MainActivity( 7245): Key event caught by MainActivity with keycode: 4 and action: 0
125 03-25 21:44:50.830 I/SB.MainActivity( 7245): Caught KEYCODE_BACK key press, checking whether to just quit or to call PFCallbacks.backButtonPressed() JS callback
126 03-25 21:44:50.830 V/SB.MainActivity( 7245): In method: quitSoundbounce, called by: dispatchKeyEvent
127 03-25 21:44:50.970 V/SB.MainActivity( 7245): In method: onCreate, called by: performCreate
128 03-25 21:44:50.980 I/SB.MainActivity( 7245): onCreate() booleanExtra contained EXIT so finish activity, hopefully quitting PODFather...
129 03-25 21:44:52.140 V/SB.MainActivity( 7245): In method: dispatchKeyEvent, called by: dispatchKeyEvent
130 03-25 21:44:52.140 I/SB.MainActivity( 7245): Key event caught by MainActivity with keycode: 4 and action: 1
131 03-25 21:44:52.360 W/IInputConnectionWrapper( 7245): showStatusIcon on inactive InputConnection
132 03-25 21:44:52.450 V/SB.MainActivity( 7245): In method: onDestroy, called by: performDestroy
133 03-25 21:44:52.460 I/SpotifySDK( 7245): Got notification: Audio flush
134 03-25 21:44:52.460 I/SpotifySDK( 7245): Logout complete
135 03-25 21:44:52.510 W/ScreenOrientationListener( 7245): Removing an inexistent observer!
136 03-25 21:44:52.520 V/SB.MainActivity( 7245): In method: onDestroy, called by: performDestroy
137 03-25 21:44:53.330 W/ManagedEGLContext( 7245): doTerminate failed: EGL count is 2 but managed count is 1
138 03-25 21:44:53.380 W/ManagedEGLContext( 7245): doTerminate failed: EGL count is 2 but managed count is 1
139 03-25 21:45:02.020 V/SB.MainActivity( 7245): In method: onCreate, called by: performCreate
140 03-25 21:45:02.100 D/ProgressBar( 7245): setProgressDrawable mProgressDrawable = null, d = android.graphics.drawable.LayerDrawable@41506e50needUpdate = false
141 03-25 21:45:02.100 D/ProgressBar( 7245): setProgress = 0
142 03-25 21:45:02.100 D/ProgressBar( 7245): setProgress = 0, fromUser = false
143 03-25 21:45:02.100 D/ProgressBar( 7245): mProgress = 0mIndeterminate = false, mMin = 0, mMax = 100
144 03-25 21:45:02.130 D/dalvikvm( 7245): GC_FOR_ALLOC freed 369K, 20% free 4132K/5127K, paused 19ms, total 19ms
145 03-25 21:45:02.160 D/dalvikvm( 7245): GC_FOR_ALLOC freed 76K, 20% free 4175K/5191K, paused 21ms, total 24ms
146 03-25 21:45:02.180 D/dalvikvm( 7245): GC_FOR_ALLOC freed 47K, 20% free 4188K/5191K, paused 18ms, total 18ms
147 03-25 21:45:02.200 D/dalvikvm( 7245): GC_FOR_ALLOC freed 38K, 19% free 4210K/5191K, paused 19ms, total 19ms
148 03-25 21:45:02.220 D/dalvikvm( 7245): GC_FOR_ALLOC freed 38K, 19% free 4269K/5255K, paused 20ms, total 21ms
149 03-25 21:45:02.280 V/SB.MainActivity( 7245): In method: getJavaScriptInterface, called by: onCreate
150 03-25 21:45:02.280 V/SB.MainActivity( 7245): In method: getJavaScriptInterface, called by: onCreate
151 03-25 21:45:02.310 E/chromium( 7245): [ERROR:unix_domain_server_socket_posix.cc(106)] Not implemented reached in virtual int net::UnixDomainServerSocket::GetLocalAddress(net::IPEndPoint*) const
152 03-25 21:45:02.400 E/chromium( 7245): [ERROR:buffer_manager.cc(313)] [GroupMarkerNotSet(crbug.com/242999)!:642C4355]GL ERROR :GL_INVALID_VALUE : glBufferData: <- error from previous GL command
153 03-25 21:45:10.990 V/SB.MainActivity( 7245): In method: getPlayer, called by: run
154 03-25 21:45:11.060 D/AndroidRuntime( 7245): Shutting down VM
155 03-25 21:45:11.060 W/dalvikvm( 7245): threadid=1: thread exiting with uncaught exception (group=0x4103c2b8)
156 03-25 21:45:11.070 E/ACRA ( 7245): ACRA caught a NullPointerException for org.soundbounce.soundbounce
157 03-25 21:45:11.070 E/ACRA ( 7245): java.lang.NullPointerException
158 03-25 21:45:11.070 E/ACRA ( 7245): at org.soundbounce.soundbounce.interfaces.SpotifyBrowserAPIInterface$3.run(SpotifyBrowserAPIInterface.java:114)
159 03-25 21:45:11.070 E/ACRA ( 7245): at android.os.Handler.handleCallback(Handler.java:615)
160 03-25 21:45:11.070 E/ACRA ( 7245): at android.os.Handler.dispatchMessage(Handler.java:92)
161 03-25 21:45:11.070 E/ACRA ( 7245): at android.os.Looper.loop(Looper.java:177)
162 03-25 21:45:11.070 E/ACRA ( 7245): at android.app.ActivityThread.main(ActivityThread.java:4944)
163 03-25 21:45:11.070 E/ACRA ( 7245): at java.lang.reflect.Method.invokeNative(Native Method)
164 03-25 21:45:11.070 E/ACRA ( 7245): at java.lang.reflect.Method.invoke(Method.java:511)
165 03-25 21:45:11.070 E/ACRA ( 7245): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038)
166 03-25 21:45:11.070 E/ACRA ( 7245): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
167 03-25 21:45:11.070 E/ACRA ( 7245): at dalvik.system.NativeStart.main(Native Method)
168 03-25 21:45:11.070 D/ACRA ( 7245): Building report
169 03-25 21:45:11.070 D/ACRA ( 7245): Using custom Report Fields
170 03-25 21:45:11.440 D/dalvikvm( 7245): GC_CONCURRENT freed 395K, 17% free 4423K/5319K, paused 18ms+22ms, total 127ms
171 03-25 21:45:11.750 W/Settings( 7245): Setting data_roaming_1 has moved from android.provider.Settings.System to android.provider.Settings.Secure, returning read-only value.
172 03-25 21:45:13.040 D/dalvikvm( 7245): GC_CONCURRENT freed 495K, 18% free 4474K/5447K, paused 12ms+2ms, total 102ms
173 03-25 21:45:13.350 I/ACRA ( 7245): READ_LOGS granted! ACRA can include LogCat and DropBox data.
174 03-25 21:45:13.450 D/ACRA ( 7245): Retrieving logcat output...

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/10284342-android-crash-nullpointerexception-at-spotifybrowserapiinterface-java-114?utm_campaign=plugin&utm_content=tracker%2F9578624&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F9578624&utm_medium=issues&utm_source=github).