-
Notifications
You must be signed in to change notification settings - Fork 227
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
Calling SomeClass::new with method reference sometimes causes a crash on Android #67
Comments
This might be caused by the hack I left in place when fixing #60. Please try your sample project with the the following two Retrolambda versions and tell me which ones of them work. https://oss.sonatype.org/content/groups/public/net/orfjackal/retrolambda/retrolambda/2.0.6-SNAPSHOT/retrolambda-2.0.6-20150906.085425-1.jar Please also post a copy of your sample project so that I can try running it myself. The VerifyError happens only on Android, so I can't test it properly on JVM. |
Thank you for the quick response! :) Both of your versions work. Here is the repo that can be used to debug the issue: https://github.com/konmik/retrobug Here is where you can set your custom builds: https://github.com/konmik/retrobug/blob/master/app/build.gradle#L30 Put them here: https://github.com/konmik/retrobug/tree/master/app/libs |
Thanks! :) |
This is fixed in Retrolambda 2.0.6 |
Use Retrolambda 2.0.6 (2015-09-06), which fixed method references to constructors causing VerifyError on Android (luontola/retrolambda#67) to fix SecurityException, when using: view.getViewAsync(leftPane.getChildren()::add); view.getView(leftPane.getChildren()::add); 09-04 18:30:55.165: E/AndroidRuntime(14508): java.lang.Error: java.lang.SecurityException: Unsafe access denied 09-04 18:30:55.165: E/AndroidRuntime(14508): at java.util.concurrent.CompletableFuture.<clinit>(CompletableFuture.java:3009) 09-04 18:30:55.165: E/AndroidRuntime(14508): at com.airhacks.afterburner.views.FXMLView.getView(FXMLView.java:127) 09-04 18:30:55.165: E/AndroidRuntime(14508): at com.airhacks.afterburner.views.FXMLView.lambda$getViewAsync$3(FXMLView.java:138) 09-04 18:30:55.165: E/AndroidRuntime(14508): at com.airhacks.afterburner.views.FXMLView.access$lambda$3(FXMLView.java) 09-04 18:30:55.165: E/AndroidRuntime(14508): at com.airhacks.afterburner.views.FXMLView$$Lambda$5.run(Unknown Source) 09-04 18:30:55.165: E/AndroidRuntime(14508): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) 09-04 18:30:55.165: E/AndroidRuntime(14508): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) 09-04 18:30:55.165: E/AndroidRuntime(14508): at java.lang.Thread.run(Thread.java:841)
I didn't test it on JVM.
Causes:
Tested on Android 5.1, 4.2.2
using
The text was updated successfully, but these errors were encountered: