REPRODUCIBILITY: 100%
OS VERSION: 4.4.0.68
HARDWARE: XA2+
UI LANGUAGE: german
REGRESSION:
DESCRIPTION:
Main camera is not working. When starting Camera App front camera shows a preview. I can do pics of myself… Switching to main camera is not possible - it shows the preview of the front camera.
Using Advanced Camera App I can switch to main camera - preview stays black an resolution is shown as “320x240”. After a few seconds the app switches back to front camera.
Using Alien Dalvik main camera is working with all apps which uses the camera.
PRECONDITIONS:
Problem occurred when the devices had run off battery (ca 2%) and did a “emergency” switch off.
I think this is a regression from previous versions and happens as well on my XA2+ since 4.4.0.(68?).
As far as I observed it this is a conflict with Android apps accessing the app.
When this happens I can switch to Signal messenger open the camera, main camera gives me a black frame, toggle to front camera until I see my face and toggle back to main camera. This, in general, reactivates camera, also for native apps. Unfortunately only for a very short period.
Thank you for that advice. But it does not solve the problem. I did toggeling the camera in Android apps. Native apps doesn’t work after that. Even switching off Android support did not help. Maybe I consider de/re-install Android support. I tell if it helps.
Actually, yesterday my method to toggle cameras in Android app didn’t work with OpenCamera and neither with WhatsApp, but always with Signal messenger.
Before you uninstall Android, try to disable automatic launch at boot, restart your phone and observer whether this helps.
Actually Android / AlienDalvik does make a change. If I have AlienDalvik running native camera (often) fails. Stopping AlienDalvik makes camera work again.
This is my output with AlienDalvik running and non working camera, actually there’s a crash when I close the camera app with swipe down
In my case what helps when the XA2 Ultra rear camera stops working is giving a few quite strong taps with a finger to the glass covering the camera lens. Whatever causes it (apparently the lens somehow gets stuck sometimes), it always works for me. Try it, why not.
Actually, that rings some faint bells and whistles… Signal was quite keen on reserving the camera, for whatever reason that is. I couldn’t reproduce it on my Android device. (Perhaps it doesn’t correctly release the camera, or something.) You could try disabling the camera permission from the Signal app (Settings > Apps > Signal > Open Android Settings) and rebooting the phone.
Let me please point to the console output of jolla-camera instruction. I see there 2 main things. There is a problem with toggling… (CameraDeviceToggle.qml). Line 20 blames a property which is undefined or even null. Because there is no null check before, the property is expected not to be null. I think it is property model alias repeater.model. As I am not familar with that stuff correct me please when I am wrong. Help is very welcome.
The error isn’t the line itself; if model is null here, there’s a problem elsewhere “before” that. IIUC model contains the available cameras (or back cameras), so the detection of the cameras has failed already.
Have you tried to select different settings in Settings > Apps > Camera? Just setting them to something else and back again can fix some configuration issues.
Another thing that I could think of is some files being corrupted. You could try re-installing some packages to replace any corrupted files (this is a partial list of dependencies of jolla-camera):
I just did this with my Xperia 10 II, and it survived Well, at least Camera and Advanced Camera still work on Sailfish side, and OpenCamera on the Android side. Reinstalling packages should not be able to break anything, but treat this as a software update, and make backups as necessary.
After running the commands described in the other thread it didn’t make any (visible) changes nor install/update any packages, however my camera works since then. Hope it will stay this way.
@jollajo, from what you’ve written it’s unclear to me (as I think it might be to you too) whether or not this is a duplicate of the camera bug@pherjung flagged up.
Would you be able to report back and let us know whether it recurs or not, please? If it does recur, then that would suggest something else is happening.