woheller69 / TimeLapseCamera

GNU General Public License v3.0
96 stars 10 forks source link

crash after less than 10 pictures #37

Open icicmoi opened 5 months ago

icicmoi commented 5 months ago

Hi all, we tried on 3 devices; the most recent uses android 8 (motorola moto g5) but the crash is systematic.

What should I tell you and/or do so that you can better understand the problem ?

In the meantime, thank you very much for sharing your application !

woheller69 commented 5 months ago

does the app "crash" or "stop recording" Are you using jpg mode?

icicmoi commented 5 months ago

1/ sorry I'm not precise enough (that's what happens when you're not a computer scientist ;) Sometimes it crashes (the application has stopped) but more often it's a timelapse stop.

(I didn't think to note on which device and with which settings the crash occurred )

At the moment I only have the motorola g5 but if it could be useful to you before the end of the month at the latest I can have the 3 devices available for testing)

2/ yes pictures.jpg only.

Thanks :-)

woheller69 commented 5 months ago

which capture rate do you use? Depending on the device I noticed that it may stop taking images when the rate is "high" which is less than 5s between pictures in jpg mode. In time lapsed mp4 mode that does not seem to be a problem. I think that depends on camera hardware, devices specific camera drivers, writing speed to storage (less data in mp4 mode) and things like that.

icicmoi commented 5 months ago

1 photo every 5 seconds. But okay, I'll try to go beyond that (I thought it was already a very large interval ;) The usage is for "Kite aerial photography".

I had seen #37 and that's why I tried older versions without success. I used Timelapsecam in June 2023 and July 2023 and it worked (photos.jpg) on the same phone. For troubleshooting and patience is there a public url to download the previous version (1.4 perhaps? unfortunately I had not noted anything!)

Thank you very much for this exchange @Woheller69 !

ps: well noted also for mp4, I will try.

woheller69 commented 5 months ago

In this issue https://github.com/woheller69/TimeLapseCamera/issues/16 you can find an older version

But since then there is not much code that has changed. I do not see anything that should have influence on that. Mainly required changes which only apply to newer Android versions

icicmoi commented 5 months ago

ok: no doubt I had chosen a larger interval at the time (10 seconds perhaps) Have I learnt this evening to be more methodical in my testing ... to take - and carefully keep - my notes? ... hummm ... time will tell! Enjoy your evening!

andreasb242 commented 5 months ago

I had also some kind of this issue, it happens more often on Xiaomi than on Samsung. I'm not implementing the Camera2 interface, and added a lot more error handling, and also display the error.

This might fix also your issue, but I could take the first pictures today, to a finished release it may takes some weeks.

icicmoi commented 5 months ago

I had also some kind of this issue, it happens more often on Xiaomi than on Samsung. I'm not implementing the Camera2 interface, and added a lot more error handling, and also display the error.

This might fix also your issue, but I could take the first pictures today, to a finished release it may takes some weeks.

Thanks for the information @andreasb242 :-)

Following @woheler69's advice, i.e. increasing the timer to 15 seconds, it worked on the motorola g5 (even at 10 seconds). My mistake was to remain previously on 5 seconds and to be interested only in the other parameters!

We'd also have to look at more recent smartphones, because we also use older ones - under Android 6 - and we'd have to look at the other parameters.
Knowing the error would indeed be interesting to act more quickly on the right parameter ... or to eliminate the smartphone if it crashes too often ;)

Many thanks!

woheller69 commented 3 months ago

have you tried increasing the delay for camera initialization?