artyom-beilis / OpenLiveStacker

Live Stacker Project - C++ backend and frontend
GNU General Public License v3.0
32 stars 4 forks source link

Using the SD card option givesl a runtime error after a second restart. #33

Closed han-k59 closed 1 year ago

han-k59 commented 1 year ago

Using the SD card option givesl a runtime error after a second restart. XRecorderLite_03062023_092945

artyom-beilis commented 1 year ago

Can you please check if the file test.txt in Android/media/org.openlivestacker/OpenLiveStacker directory exists

I try to create and delete the file to ensure that there are permissions to access the files:

https://github.com/artyom-beilis/android_live_stacker/blob/web_ols/app/src/main/java/org/openlivestacker/LiveStackerMain.java#L692

If it exists but not deleted, try to delete and see what happens.

artyom-beilis commented 1 year ago

BTW, was the keyboard "-" sign was fixed or not?

artyom-beilis commented 1 year ago

Can you please check with latest version. I added a more detailed error information.

han-k59 commented 1 year ago

Yes beta version15 works fine with SD card. No more errors.

BTW, was the keyboard "-" sign was fixed or not? Yes fixed.

artyom-beilis commented 1 year ago

Yes beta version15 works fine with SD card. No more errors.

What???? But I changed nothing :-/

han-k59 commented 1 year ago

I have run the program probably 10 times and no error occurred. The files are written to the SD card. I have checked that also.

Is there anything that could have fixed it? Permissions? This version starts without asking for permissions. Only once for USB.

artyom-beilis commented 1 year ago

I'm glad to hear. Thanks! Mysterious ways of Android.

On android most permissions are asked only once. And for external device each time you connect/disconnect. So for example if you restart the app without disconnecting camera it wouldn't ask.