Myzel394 / Alibi

Use your phone as a dashcam and save the last 30 minutes when you need them.
GNU General Public License v3.0
219 stars 10 forks source link

Infinite crash loop when using Nextcloud directory for recordings #100

Open candroid-man opened 3 months ago

candroid-man commented 3 months ago

If you select a Nextcloud folder in Alibi the app gets in a state where you can't open the app until you reinstall it.

Myzel394 commented 3 months ago

I looked a little bit at this. I was able to fix the crashing part. It shouldn't crash anymore with the next update.

However, the real problem is still: Why doesn't Nextcloud work with Alibi? I found a few issues related to this (https://github.com/alexrintt/shared-storage/issues/151, https://github.com/nextcloud/android/issues/8201, https://github.com/nextcloud/android/issues/8336). I'll try and see if there's a way to make Alibi work with Nextcloud. However, it looks like this may not be possible. From what I've understood, the problem is that when writing a file, the file needs to be saved in a different thread than main. I don't know if this can be accomplished in the way how Alibi works with files. I'll try my best, but I can't guarantee for success :/

GeorgeBroughton commented 3 weeks ago

I get infinite crashing also but when using an external SD card. I just don't wanna waste write cycles on this phone's internal eMMC