|
Post by newuser on May 24, 2019 15:42:29 GMT
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.
|
|
|
Post by Alex Epifanov on May 27, 2019 12:54:06 GMT
do you have a sample app to reproduce the issue, or some logs?
|
|
|
Post by newuser on May 29, 2019 13:09:37 GMT
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.
|
|
|
Post by Alex Epifanov on May 29, 2019 21:38:04 GMT
Still it would be good if you can share a sample app to reproduce the problem. Dev team can look and identify if that's something we can fix.
|
|
|
Post by newuser on May 30, 2019 8:14:56 GMT
|
|
|
Post by Alex Epifanov on May 30, 2019 13:39:44 GMT
Got it. Thanks.
|
|
|
Post by newuser on Jun 25, 2019 7:57:13 GMT
Just wondering if you have had any chance to look into this at all?
|
|
|
Post by Super Admin on Jun 26, 2019 12:44:38 GMT
Just wondering if you have had any chance to look into this at all? I'll give an update early next week.
|
|
|
Post by newuser on Jun 26, 2019 16:02:22 GMT
Thank you, I look forward to your response.
|
|
|
Post by Alex Epifanov on Jul 5, 2019 14:53:32 GMT
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. Attachments:appium.js (2.51 KB)
timestamps.txt (1.36 KB)
|
|
|
Post by newuser on Jul 18, 2019 9:19:05 GMT
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.
|
|
|
Post by newuser on Jul 18, 2019 9:22:54 GMT
Also, which version of Rhodes are you testing on? We're using v6.1.16
|
|
|
Post by Alex Epifanov on Jul 22, 2019 7:37:28 GMT
I tried it on current master head. OK I'll try to reproduce it with more images.
|
|
|
Post by newuser on Jul 26, 2019 13:57:20 GMT
Thank you, please keep me updated on it.
|
|
|
Post by newuser on Aug 19, 2019 14:23:11 GMT
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.
Were you able to test higher numbers at your end?
|
|