Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Camera app does not save photos but does save videos #228

Open
felipe-valerio opened this issue Apr 13, 2022 · 2 comments
Open

Camera app does not save photos but does save videos #228

felipe-valerio opened this issue Apr 13, 2022 · 2 comments

Comments

@felipe-valerio
Copy link

felipe-valerio commented Apr 13, 2022

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
  • It seems most similar to this one, 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

[📦 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

@jeremypw
Copy link
Collaborator

Looks like a duplicate of #135, which has been fixed in master (but not yet released).

@felipe-valerio
Copy link
Author

felipe-valerio commented Apr 13, 2022

Looks like a duplicate of #135, which has been fixed in master (but not yet released).

I mentioned it, but the difference is it doesn't only happen if I take two or more pictures in a short period of time. It happens even if I take a single picture, it always gets saved as an empty file regardless of how much time I wait or if I take a single or multiple pictures. But I hope then that when #135 is released my issue gets solved as well as I don't really understand how the app works behind the UI, I'm just a user 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants