ente-io / ente

Fully open source, End to End Encrypted alternative to Google Photos and Apple Photos
https://ente.io
GNU Affero General Public License v3.0
16.34k stars 849 forks source link

On Linux, ente auth fails to run randomly. Issue with both app images and debian. #2326

Open asheshstha opened 5 months ago

asheshstha commented 5 months ago

Description

I was on ente-auth-v3.0.13-x86_64.deb and suddlenly ente_auth stopped working. Tried running updated version v3.0.17 of .deb, AppImage. None of it worked.

Issues

  1. On .deb files from terminal ente_auth

    flutter:  [ente_logging] [INFO] [2024-06-30 10:04:29.358095] log file for today: File: '/home/your-user/.local/share/ente_auth/logs/2024-6-30.txt' with prefix 
    flutter: [ente_logging] [INFO] [2024-06-30 10:04:29.358095] app version: '3.0.17+317'
    flutter: [ente_logging] [INFO] [2024-06-30 10:04:29.358095] 
    flutter:  [main] [INFO] [2024-06-30 10:04:29.358149] Starting app in foreground
    flutter:  [Configuration] [INFO] [2024-06-30 10:04:29.363663] Skipping temp folder clear
    Segmentation fault (core dumped)
  2. export LIBGL_ALWAYS_SOFTWARE=1 also didn't work for .deb and .AppImages

  3. running AppImages - opening onces opens the app in process but shows no UI. Need to open it twice and the UI appears as no gl implementation is available ente

Solution that worked for me

Delete /home/your-user/.local/share/ente_auth/ folder which deletes the stored credentials also. Don't do it if you are not signed in with an account. Wait for better solution.

Version

v3.0.17

What product are you using?

Ente Auth

What platform are you using?

Desktop - Linux

cbmiller2610 commented 4 months ago

I also see the same issue on openSUSE tumbleweed (snapshot 20240621) and Ente Auth 3.0.17+317 Appimage, randomly you will have to delete the credentials db or else the app will segfault every time on launch. More info on the segfault from journalctl:

Jul 03 23:35:03 localhost.localdomain kernel: ente_auth[11391]: segfault at 7f4e6dd1fddc ip 00007f4e6dc8c94e sp 00007fff6904f560 error 7 in libcairo.so.2.11800.0[7f4e6dc30000+e3000] >
Jul 03 23:35:03 localhost.localdomain kernel: Code: 47 30 02 75 5f 44 8b 66 1c 45 85 e4 75 5e f6 46 30 02 75 50 48 8b 06 48 85 c0 74 06 8b 00 85 c0 74 2a 41 bc 0d 00 00 00 31 c0 <f0>>
Jul 03 23:35:03 localhost.localdomain systemd[1]: Started Process Core Dump (PID 11431/UID 0).
Jul 03 23:35:04 localhost.localdomain (sd-parse-elf)[11434]: Could not parse number of program headers from core file: invalid `Elf' handle
Jul 03 23:35:04 localhost.localdomain systemd-coredump[11432]: [🡕] Process 11391 (ente_auth) of user 1000 dumped core.

                                                               Module /tmp/.mount_ente-aimvy7h/usr/lib/libsodium.so without build-id.
                                                               Module /tmp/.mount_ente-aimvy7h/usr/lib/libsodium.so
                                                               Stack trace of thread 11391:
                                                               #0  0x00007f4e6dc8c94e cairo_surface_unmap_image (libcairo.so.2 + 0x7094e)
                                                               #1  0x00007f4e6df48b08 n/a (libgdk-3.so.0 + 0x43b08)
                                                               #2  0x00007f4e6df52a10 n/a (libgdk-3.so.0 + 0x4da10)
                                                               #3  0x00007f4e6df52b17 gdk_window_end_draw_frame (libgdk-3.so.0 + 0x4db17)
                                                               #4  0x00007f4e6e1f942e gtk_main_do_event (libgtk-3.so.0 + 0x1f942e)
                                                               #5  0x00007f4e6df3e287 n/a (libgdk-3.so.0 + 0x39287)
                                                               #6  0x00007f4e6df4f769 n/a (libgdk-3.so.0 + 0x4a769)
                                                               #7  0x00007f4e6df53b16 n/a (libgdk-3.so.0 + 0x4eb16)
                                                               #8  0x00007f4e6df53d1c n/a (libgdk-3.so.0 + 0x4ed1c)
                                                               #9  0x00007f4e6d9b3861 n/a (libgobject-2.0.so.0 + 0x17861)
                                                               #10 0x00007f4e6d9c99b4 n/a (libgobject-2.0.so.0 + 0x2d9b4)
                                                               #11 0x00007f4e6d9cf5b2 g_signal_emit_valist (libgobject-2.0.so.0 + 0x335b2)
                                                               #12 0x00007f4e6d9cf65f g_signal_emit (libgobject-2.0.so.0 + 0x3365f)
                                                               #13 0x00007f4e6df4af98 n/a (libgdk-3.so.0 + 0x45f98)
                                                               #14 0x00007f4e6df383b7 n/a (libgdk-3.so.0 + 0x333b7)
                                                               #15 0x00007f4e6d8b1154 n/a (libglib-2.0.so.0 + 0x60154)
                                                               #16 0x00007f4e6d8ae740 n/a (libglib-2.0.so.0 + 0x5d740)
                                                               #17 0x00007f4e6d8b0388 n/a (libglib-2.0.so.0 + 0x5f388)
                                                               #18 0x00007f4e6d8b0a3c g_main_context_iteration (libglib-2.0.so.0 + 0x5fa3c)
                                                               #19 0x00007f4e6dae9a0d g_application_run (libgio-2.0.so.0 + 0xe9a0d)
                                                               #20 0x00005614ed6f452e n/a (/tmp/.mount_ente-aimvy7h/ente_auth + 0x352e)
                                                               ELF object binary architecture: AMD x86-64
Jul 03 23:35:04 localhost.localdomain systemd[1]: systemd-coredump@2-11431-0.service: Deactivated successfully.
Jul 03 23:35:04 localhost.localdomain systemd[1]: tmp-.mount_ente\x2daimvy7h.mount: Deactivated successfully.
longsleep commented 3 months ago

This is most likely a duplicate of https://github.com/ente-io/ente/issues/2004

So to fix, edit your .local/share/io.ente.auth/shared_preferences.json and use a reasonable value for flutter.windowWidth and flutter.windowHeight. For me windowHeight was at a very large number. Change it to 500.0 or so and ente auth should start again.

cbmiller2610 commented 3 months ago

Thanks! I'm using a tiling window manager (PaperWM extension on Gnome), so I am not directly controlling my window height/width. I do not have this issue with any other programs on my machine. So, for me setting the windowWidth and windowHeight seems to again be a temporary workaround.

gelbphoenix commented 1 month ago

For the Flatpak package the path is $HOME/.var/app/io.ente.auth/data/enteauth/.

neurolit commented 1 month ago

Same problem with Ente Auth 4.0.2 on Linux:

"flutter.windowHeight":76456912.0

Replacing it by 500.0 solves the problem (no more segmentation fault).

gelbphoenix commented 1 month ago

Interesting solution:

While using fractional scaling on GNOME, setting both windowHeight and windowWidth to 500.0 doesn't change the values after multiple restarts of the app.