elementary / elementary/camera

Camera app does not save photos but does save videos

Open
#228 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vala
Stars
67
Forks
19
Avg merge
6h 42m
Merged PRs (30d)
1

Description

### What Happened?

When I take a photo with the Camera application, it becomes an empty text file. But video recordings work fine. I'm using Elementary OS 6.1 with everything updated and no modifications on a Lenovo laptop (IdeaPad S145), and I'm using the built-in webcam and I don't have a separate one to test.

I saw two similar closed issues but this one is different because:
- It always happens so it's not related to [taking multiple photos ](https://github.com/elementary/camera/issues/135)
- It seems most similar to [this one](https://github.com/elementary/camera/issues/193), but I see it's closed since last year so it was solved and the issue I'm having is still ocurring.

I followed the recommendation to download the io.elementary.Sdk and run the app in debug mode, this is what I get, hope it helps:

```
[📦 io.elementary.camera ~]$ G_MESSAGES_DEBUG=all io.elementary.camera
(io.elementary.camera:76): GVFS-DEBUG: 22:18:47.469: org.gtk.vfs.MountTracker.listMountableInfo call failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown (g-dbus-error-quark, 2)

(io.elementary.camera:76): GLib-GIO-DEBUG: 22:18:47.470: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs?
(io.elementary.camera:76): GLib-GIO-DEBUG: 22:18:47.471: _g_io_module_get_default: Found default implementation keyfile (GKeyfileSettingsBackend) for ?gsettings-backend?
(io.elementary.camera:76): GLib-DEBUG: 22:18:47.471: unsetenv() is not thread-safe and should not be used after threads are created
Gtk-Message: 22:18:47.516: Failed to load module "canberra-gtk-module"
Gtk-Message: 22:18:47.518: Failed to load module "canberra-gtk-module"
(io.elementary.camera:76): GLib-DEBUG: 22:18:47.518: unsetenv() is not thread-safe and should not be used after threads are created
```

Thank you very much for looking at this!

### Steps to Reproduce

1. **Open the Camera app**: image preview is working fine
2. **Click the button to take a picture**: the image stops for a sec and a sound is heard, there is also feedback from the led right next to the webcam
3. **Go to /home/username/Pictures/Webcam**: There will be an empty text file there instead of the photo taken.

### Expected Behavior

I expected that the photo would be saved as a picture with content in it.

### OS Version

6.x (Odin)

### Software Version

Latest release (I have run all updates)

### Log Output

```shell
[📦 io.elementary.camera ~]$ G_MESSAGES_DEBUG=all io.elementary.camera
(io.elementary.camera:76): GVFS-DEBUG: 22:18:47.469: org.gtk.vfs.MountTracker.listMountableInfo call failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown (g-dbus-error-quark, 2)

(io.elementary.camera:76): GLib-GIO-DEBUG: 22:18:47.470: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs?
(io.elementary.camera:76): GLib-GIO-DEBUG: 22:18:47.471: _g_io_module_get_default: Found default implementation keyfile (GKeyfileSettingsBackend) for ?gsettings-backend?
(io.elementary.camera:76): GLib-DEBUG: 22:18:47.471: unsetenv() is not thread-safe and should not be used after threads are created
Gtk-Message: 22:18:47.516: Failed to load module "canberra-gtk-module"
Gtk-Message: 22:18:47.518: Failed to load module "canberra-gtk-module"
(io.elementary.camera:76): GLib-DEBUG: 22:18:47.518: unsetenv() is not thread-safe and should not be used after threads are created
```

### Hardware Info

Quad-Core AMD Ryzen 5 3500u with radeon vega mobile gfx

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.