ente icon indicating copy to clipboard operation
ente copied to clipboard

Invalid windowHeight causes SIGSEGV on Linux

Open robxu9 opened this issue 1 year ago • 1 comments

Description

Ente Auth 3.0.7 on Linux throws a segfault when there's an invalid windowHeight in shared_preferences.json:

{"flutter.windowWidth":450.0,"flutter.windowHeight":165207184.0}

I get a windowHeight like that a few times after opening Ente Auth, without doing anything else. (Just opening Ente Auth and closing it.)

Stacktrace:

                Stack trace of thread 788112:
                #0  0x00007d29381b7402 cairo_surface_unmap_image (libcairo.so.2 + 0x6a402)
                #1  0x00007d2939aba8aa n/a (libgdk-3.so.0 + 0x328aa)
                #2  0x00007d2939ac53d2 n/a (libgdk-3.so.0 + 0x3d3d2)
                #3  0x00007d2939ac54f3 gdk_window_end_draw_frame (libgdk-3.so.0 + 0x3d4f3)
                #4  0x00007d29385e661f gtk_main_do_event (libgtk-3.so.0 + 0x1e661f)
                #5  0x00007d2939aaf3c7 n/a (libgdk-3.so.0 + 0x273c7)
                #6  0x00007d2939ac1dc2 n/a (libgdk-3.so.0 + 0x39dc2)
                #7  0x00007d2939ac65df n/a (libgdk-3.so.0 + 0x3e5df)
                #8  0x00007d2939ac67fa n/a (libgdk-3.so.0 + 0x3e7fa)
                #9  0x00007d2937f53732 n/a (libgobject-2.0.so.0 + 0x32732)

Another project that had the issue, plus their solution: https://github.com/AppFlowy-IO/AppFlowy/issues/4989

Version

v3.0.7

What product are you using?

Ente Auth

What platform are you using?

Desktop - Linux

robxu9 avatar Jun 04 '24 21:06 robxu9

I encountered the exact same issue, and was bashing my head against a wall trying to figure out why it kept throwing a segmentation fault. Even deleting and reinstalling would fix it because that settings file was being retained. This is happening in version 3.0.17 for me and I'm running Manjaro Linux.

JmaJeremy avatar Jun 29 '24 04:06 JmaJeremy

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).

neurolit avatar Oct 18 '24 07:10 neurolit

Continuing to happen in the latest version of the flatpak 4.0.3. The flatpak path to the config file is /home/chrisbmiller/.var/app/io.ente.auth/data/enteauth/

cbmiller2610 avatar Nov 18 '24 23:11 cbmiller2610

This should be hopefully fixed in the latest version of the app. Thank you @robxu9 for the AppFlowy reference.

ua741 avatar Jan 17 '25 08:01 ua741