Simple-Camera icon indicating copy to clipboard operation
Simple-Camera copied to clipboard

Camera crashes/freezes when being opened from lockscreen

Open Wurzelmann opened this issue 3 years ago • 3 comments

When opened from the lockscreen (in my case by a button shortcut), the camera works on the first time, but every time afterwards, it just freezes and shows the interface with a black screen. After manually killing the app, it works again once and then the freezing starts again.

Opening the camera from the launcher works every time, no problem there.

Device: OnePlus 3T OS: LineageOS 17.1-20200720-nightly-oneplus3

Wurzelmann avatar Jul 21 '20 11:07 Wurzelmann

Can confirm this behavior. On my device, launching the camera from the lockscreen results in a completely black camera preview with the (unresponsive) UI on top of it. Unlike OP, manually killing the app doesn't help, it never seems to work.

Device: One Plus 7 Pro OS: LineageOS 18.1, Android 11

gitwah avatar May 23 '21 20:05 gitwah

Confirmed on Moto G8 Power with Stock Android 11.

hamishmb avatar Mar 27 '22 19:03 hamishmb

New phone, same problem:

Device: OnePlus 5T OS: 18.1-20220426-NIGHTLY-dumpling

Wurzelmann avatar Apr 27 '22 06:04 Wurzelmann

camera has been rewritten from scratch in 5.4.0, so Im closing this

tibbi avatar Oct 15 '22 18:10 tibbi

Please wait until I've confirmed the fix.

hamishmb avatar Oct 15 '22 21:10 hamishmb

Same problem persists, sorry to say. :-/

Wurzelmann avatar Oct 16 '22 04:10 Wurzelmann

Yeah, let's not get hasty and close all the open bugs. I'm going to go through and try and reproduce some of them soon.

Don't get me wrong, I really like the new UI and it seems much better :)

hamishmb avatar Oct 16 '22 12:10 hamishmb

Interestingly, it's working for me. I'm still on the same device with Android 11. What are you running, Wurzelmann?

hamishmb avatar Oct 16 '22 19:10 hamishmb

Same device (OnePlus 5T), but Android 12 now (19-20221011-NIGHTLY-dumpling).

EDIT: okay, I re-installed the app again and now the following happens: from lockscreen, I press the camera shortcut, then the unlock prompt appears (which does not happen with stock camera) and after unlocking, I'm presented with the desktop, not the simple camera app. I can open it normally, but opening from lockscreen does not work, although it does not seem to crash now.

Wurzelmann avatar Oct 16 '22 19:10 Wurzelmann

havent you uninstalled the stock camera? The current behaviour doesnt seem to be related to Simple Camera at all

tibbi avatar Oct 16 '22 20:10 tibbi

I had not, but disabled it now and you're right, Simple Camera is working when Stock Camera is disabled. Strange behaviour, but at least we know the culprit now. Thank you for your support, closing now.

Wurzelmann avatar Oct 18 '22 07:10 Wurzelmann

Ah, that explains why it works for me too then.

Should we add a note somewhere for this?

hamishmb avatar Oct 18 '22 16:10 hamishmb

no, that isnt actually related to our app at all

tibbi avatar Oct 18 '22 21:10 tibbi

It is though, because people will assume your app is broken if they aren't told they need to disable the built-in camera.

hamishmb avatar Oct 19 '22 13:10 hamishmb

My bad, it says in the readme. Is this information presented to users on first launch?

hamishmb avatar Oct 23 '22 11:10 hamishmb

no

tibbi avatar Oct 24 '22 13:10 tibbi

Okay, I'll file a new issue for that then.

hamishmb avatar Oct 25 '22 18:10 hamishmb