Closed amake closed 4 years ago
You are right about launch.. no idea why i missed that.. although there are still two launch
calls in FilePickerWritablePlugin
they don't look very dangerous..
thanks for your PR #7 .. i improved a bit upon it, by simply moving the launch one level up so there is still just one try/catch.. i think this should accomplish about the same: https://github.com/hpoul/file_picker_writable/pull/8/files - any thoughts?
Looks good to me. I'll close my PR then.
This was addressed by #8
I had a crash report in Google Play Console caused by file_picker_writable trying to read a non-existent file (see https://github.com/amake/orgro/issues/10).
The trace was
Unfortunately the coroutines ruin the trace, so I can't see how exactly execution got to
FilePickerWritableImpl#copyContentUriAndReturnFileInfo
. But there is some code path that doesn't properly catch exceptions.I think one problem might be that you use
launch
to start coroutines in several places, but have thetry
/catch
outside oflaunch
. Uncaught exceptions inlaunch
ed coroutines aren't forwarded to the parent scope and will crash the app on Android (link).