|
Post by federico on Nov 3, 2020 14:04:47 GMT
Hi georgy, We installed the new RMS 7.2.12 and tried to build again KitchenSink-master The app on Android 10 still crashes on Camera callback, we obtain the same behaviour as before, with RMS 7.2.6. Any suggestion? egghead, neckerz did you get any result with new RMS version? Thank you
|
|
|
Post by georgy on Nov 3, 2020 17:07:54 GMT
federico double-checked right now (but on android 11 (I have been updated on weekends), still it should be the same). It does works for me without any problems. Please give me the build log, and application log (it will be better if you set MinSeverity to zero). Also, the device log will be very helpful.
|
|
|
Post by federico on Nov 4, 2020 11:52:13 GMT
Hi georgy, I attach the following log files: Kitchensink app log on Android10.txt (274.84 KB) is the app log of Kitchensink-master, on a Samsung A40 with Android 10. At 11:03 I took a picture and got the app crash; at 11:05 I restarted the app and send the log to the server. Kitchensink app log on Android8.txt (632 B) is the app log of Kitchensink-master, on a Samsung S7 with Android 8. At 10:52 I took a picture and the callback worked fine. I attach this log, I hope it can be useful to find the differences. logcat and build log.rar (374.12 KB) Single files were too big to be attached. The archive contains: a40_logcat.txt is the device log, during the kitchensink's take_picture execution and its crash. KitchenSink build log.txt is the log of the RMS Console during the build process generating the apk. Thank you for your help
|
|
|
Post by georgy on Nov 9, 2020 14:34:56 GMT
federico The problem is that I can't clearly repeat your problem on any of my devices or emulator. So I can't fix your issue without your help. But let's try: use our master branch github.com/rhomobile/rhodes to rebuild kitchensink. Don't forget to set minseverity to zero and send me the log even if the app did not crashes.
|
|
|
Post by federico on Nov 10, 2020 11:10:59 GMT
Georgy, thank you for your time! We download the modified java file CameraRhoListener.java and replaced the previous one on our rhodes gem. The crash doesn't happen, and in the app log you can see the line #667 W 11/10/2020 11:43:13:838 52d0bd50 CameraRhoListener| Can't extract image size from intent (null intent)
You can find all the logs in the archive Logs.rar: Logs.rar (596.53 KB) Kitchensink app log on Android10_20201110.txt a40_logcat_20201110.txt KitchenSink build log 20201011.txt Screenshot_20201110_KitchensinkRuby.jpg Thank you Federico
|
|
|
Post by Alex Epifanov on Nov 10, 2020 18:18:06 GMT
federico, the issue might be device-specific. We don't observe it on our default hardware. Fix usually fix this kind of issues in the scope of annual RhoMobile support package.
|
|
|
Post by federico on Nov 12, 2020 14:29:46 GMT
I'm afraid that this isn't about a device-specific issue, since we had the same behaviour on EVERY Android 10 device we tried: Samsung Galaxy S9, A40, A51, Xiaomi Redmi note 9S, for example. You can find attached the Camera.takePicture page of Kitchensink (with Georgy's debug to avoid crash) executed on some device, displaying an icon in place of actual picture taken. I attach also the app logs samsung_star2lte_S9.txt (105.67 KB), where we can read the debug line CameraRhoListener| Can't extract image size from intent (null intent)
Maybe we can say that it is an Android-version-specific issue, but unfortunately it isn't an obsolete version. We are ready to install any debug code you will produce to understand the null intent. Thank you Federico Attachments:Xiaomi curtana_9S.txt (126.66 KB)
|
|
|
Post by egghead on Nov 12, 2020 17:15:42 GMT
Sorry, didn't have time to test it out yet. Will try next month and revert.
|
|
|
Post by newuser on Nov 18, 2020 17:49:05 GMT
I've been having some weird behaviour and I'm not sure if it's linked to this issue. I'm able to replicate this behaviour on an emulated device running Android 10: - Fresh install of an app built with target SDK 29, photos cause crash - Change target SDK to 28 and update the app, photos no longer cause crash - Change target SDK to 29 and update the app, photos continue to work without crash
If I uninstall and repeat the process I get the same behaviour. If I however set the target SDK to 28 on first install then taking photos is no issue. I also tested this on an Android 9 emulated device and was not able to replicate the issue. So for me at least, it seems to be the first install on an Android 10 device when you have targeted SDK 29.
|
|
|
Post by Alex Epifanov on Nov 18, 2020 20:40:05 GMT
newuser, please attach some logs from the app
|
|
|
Post by newuser on Nov 19, 2020 11:31:51 GMT
Hope this is what you're looking for, let me know if not. Attachments:logcat.txt (37.95 KB)
|
|