New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/mobile: loading libgojni.so prevents android errors from printing to logcat #9482
Comments
By WIN DEATH, do you mean the process exited? If so, that's why you're not seeing any subsequent errors. I'd need more information to guess why your application is crashing. A copy of the log and some code would be helpful. |
Here is a minimal sample application with the libgojni.so already built: https://github.com/dskinner/go.issue.9482 Built with go at 6ceb604 Tested on a Nexus 10 running Android 5.0.1 This line is intentionally commented out to produce an error: https://github.com/dskinner/go.issue.9482/blob/master/app/src/main/java/cc/dasa/sample/MainActivity.java#L19 In the repo, the shared library is not loaded as can be seen here: https://github.com/dskinner/go.issue.9482/blob/master/app/src/main/java/cc/dasa/sample/App.java#L11 This produces the following stack trace as expected
Once this line is uncommented: https://github.com/dskinner/go.issue.9482/blob/master/app/src/main/java/cc/dasa/sample/App.java#L11 Launching the application produces the following output:
Noticeably, the stacktrace for the recyclerview error is lacking above. It's worth noting I suppose that setting the layoutmanager for recyclerview and loading the libgojni.so does allow the application to launch successfully. |
unable to reproduce on latest, closing. |
Given a libgojni.so that is loaded via
Go.init(this)
inApplication
class can cause regular app errors to not print to logcat.I've seen this behavior using the v7 RecyclerView and not setting a layout manager which would normally print an error to logcat and exit. Instead, the go runtime starts and is followed by a WIN DEATH and nothing is printed in regards to the RecyclerView error.
Disabling
Go.init(this)
and any other related Go code will allow the error to print to logcat.I can put together a minimal sample upon request if the above is not clear enough.
The text was updated successfully, but these errors were encountered: