I just upgraded to 1.23.2.4625-a83d2d0f9, and I am seeing the second error (std::bad_cast) in the server logs every time I attempt to open a photo, from both iPhone and Android.
Thumbnails are fine, and I don’t see the JPEG corruption errors.
This feels related to another issue posted in the player section: "An error occurred loading items to play" in photos - #11 by beckfield
Jun 02, 2021 12:49:09.297 [0x7ff735ea7b38] DEBUG - Request: [10.0.0.51:47132 (Subnet)] POST /playQueues?type=photo&uri=server%3A%2F%2F4c1fa2e49fdb9562b8a95bd19ff362ba944937fe%2Fcom.plexapp.plugins.library%2Flibrary%2Fsections%2F2%2Fall%3FclusterZoomLevel%3D1%26clustering%3C%3D226036&key=%2Flibrary%2Fmetadata%2F61206&repeat=0&own=1&includeChapters=1&includeMarkers=1&includeGeolocation=1&includeExternalMedia=1 (4 live) TLS GZIP Signed-in Token (abscondment)
Jun 02, 2021 12:49:09.298 [0x7ff735ea7b38] DEBUG - PlayQueue: Converted 'server://4c1fa2e49fdb9562b8a95bd19ff362ba944937fe/com.plexapp.plugins.library/library/sections/2/all?clusterZoomLevel=1&clustering<=226036' to 'library://x/directory/%2Flibrary%2Fsections%2F2%2Fall%3FclusterZoomLevel%3D1%26clustering%3C%3D226036'
Jun 02, 2021 12:49:09.300 [0x7ff735ea7b38] DEBUG - PlayQueue: 0 generated IDs compressed down to a 20 byte blob.
Jun 02, 2021 12:49:09.691 [0x7ff735ea7b38] DEBUG - PlayQueue: Start index: 0 End index: 121 Count: 57020
Jun 02, 2021 12:49:09.712 [0x7ff735ea7b38] DEBUG - PlayQueue: 57020 generated IDs compressed down to a 95977 byte blob.
Jun 02, 2021 12:49:09.713 [0x7ff735ea7b38] DEBUG - PlayQueue: Added 122 items in 0.0 sec.
Jun 02, 2021 12:49:09.726 [0x7ff735ea7b38] ERROR - Exception handled: std::bad_cast
Jun 02, 2021 12:49:09.726 [0x7ff737217b38] DEBUG - Completed: [10.0.0.51:47132] 500 POST /playQueues?type=photo&uri=server%3A%2F%2F4c1fa2e49fdb9562b8a95bd19ff362ba944937fe%2Fcom.plexapp.plugins.library%2Flibrary%2Fsections%2F2%2Fall%3FclusterZoomLevel%3D1%26clustering%3C%3D226036&key=%2Flibrary%2Fmetadata%2F61206&repeat=0&own=1&includeChapters=1&includeMarkers=1&includeGeolocation=1&includeExternalMedia=1 (4 live) TLS GZIP 429ms 532 bytes (pipelined: 1)