Crash happens when I click on the “Cam images” tab.
I have sent a crash dump to Ricoh, stack trace is -
03-10 15:06:58.790 10696 15442 16333 E AndroidRuntime: Process: com.theta360, PID: 15442
03-10 15:06:58.790 10696 15442 16333 E AndroidRuntime: org.threeten.bp.format.DateTimeParseException: Text '2023:03:10 12:06:16Z' could not be parsed, unparsed text found at index 19
03-10 15:06:58.790 10696 15442 16333 E AndroidRuntime: at org.threeten.bp.format.DateTimeFormatter.parseToBuilder(DateTimeFormatter.java:1591)
03-10 15:06:58.790 10696 15442 16333 E AndroidRuntime: at org.threeten.bp.format.DateTimeFormatter.parse(DateTimeFormatter.java:1491)
03-10 15:06:58.790 10696 15442 16333 E AndroidRuntime: at org.threeten.bp.LocalDateTime.parse(LocalDateTime.java:444)
03-10 15:06:58.790 10696 15442 16333 E AndroidRuntime: at com.theta360.thetalibrary.utils.DateTimeUtil.changeDateTime(DateTimeUtil.kt:71)
03-10 15:06:58.790 10696 15442 16333 E AndroidRuntime: at com.theta360.di.repository.PhotoRepository.createRecordsV2(PhotoRepository.kt:158)
03-10 15:06:58.790 10696 15442 16333 E AndroidRuntime: at com.theta360.ui.main.MainViewModel$getListFilesV2$1.invokeSuspend(MainViewModel.kt:188)
03-10 15:06:58.790 10696 15442 16333 E AndroidRuntime: at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
03-10 15:06:58.790 10696 15442 16333 E AndroidRuntime: at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
03-10 15:06:58.790 10696 15442 16333 E AndroidRuntime: at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
03-10 15:06:58.790 10696 15442 16333 E AndroidRuntime: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:749)
03-10 15:06:58.790 10696 15442 16333 E AndroidRuntime: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
03-10 15:06:58.790 10696 15442 16333 E AndroidRuntime: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
03-10 15:06:58.790 10696 15442 16333 E AndroidRuntime: Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@ac2d5db, Dispatchers.Default]
So it would appear to be a string to date parse bug ( likely unexpected ‘Z’ ).
All I’ve done here is to take some pictured and try to access them from the app.
Today the app crashed trying to parse 2023:03:19 10:16:48Z … so I downloaded all the photos to look at them -
sudo gphoto2 -P
Saving file as R0010227.JPG
Saving file as R0010228.JPG
Saving file as R0010229.JPG
Saving file as R0010230.JPG
Saving file as R0010231.JPG
Saving file as R0010232.JPG
Saving file as R0010233.JPG
Saving file as R0010234.JPG
Saving file as R0010235.JPG
Saving file as R0010236.JPG
Deleteing R0010228.JPG in the same way and no crash.
I did try re-uploading the photo to the SC2 but looks like thats not supported.
Taking a picture without GPS sync ( ie SC2 not connected to my phone over bluetooth ) resulted in a photo with no GPS info ( obviously ) and the app handled that just fine.
I also tried takings some photos with bluetooth enabled ( to include GPS data ) then later connect over WiFi to download … oddly, I didn’t see a crash and photos were downloaded by the app just fine.
So I’m guessing that some sequence of events needs to happen to reproduce this issue. Grrr.
I also tried running the app in the Android Studio emulator, but I couldn’t pursuade the app to connect over wifi to the camera ( I did make a manual wifi connection to the camera, but that wasn’t enough to fool the emulator ).
Is there a trick to get the Android Studio emulator to work ?