Is anyone else experiencing issues with apps made with rhomobile slowing down and eventually crashing while taking pictures? I'm seeing it happen on lower spec/older devices, I've tested on iPad mini 2 & 4 for iOS and Nexus 9 for Android. I have a more modern Android phone which it doesn't seem to crash on but it may just be the number of pictures taken needs to be much larger.
For the devices it's crashing on, it's somewhere between 100 and 200 photos taken that it seems to crash on, but it slows down a bit before that.
I'm actually able to (sort of) replicate this using the Kitchen Sink Ruby codebase.
It doesn't crash using this one but it does grind to a halt and then I'm not able to navigate the app and just get error pages. This happens by taking many photos or selecting from the device multiple times so it seems to be related to the Camera API. It is only after a large amount of images are selected/taken and is dependent on the device.
Well I tried to reproduce it with Nexus 2. Wrote an Appium script for KitchenSinkRuby. Built against current Rhodes master. The script took 100 pictures, and I measured the time taken to do the full cycle. The current result is I wasnt able to reproduce crash and the time doesn't seem to degrade much. I suspect the delay peaks are related to Java GC working. Can you try it on your end with Appium? Script and results attached.
Thank you, I will take a look at this. I haven't used Appium before so will have to set it up.
Are you able to test on a higher number of photos? The slowdown of the app isn't noticeable until you are in the region of it about to crash. On all my Android devices it never slowed down until after the ~130 mark, iOS was usually less. If you could test it on 200 to 300 that might help replicate the issue.
I have now tested using Appium, on the device I was testing manually on before it was getting past 300 photos, so I set it run to 500 in Appium. I gets to 354 each time and then either the app closes itself or you can no longer click the takePicture button within the kitchensink app as it no longer opens the camera.
There doesn't seem to be any slow down in the times logged between each iteration but the crashing seems consistent.