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

Bug: AppImage crashes upon invocation. #1021

Closed
1 task done
RokeJulianLockhart opened this issue Nov 15, 2024 · 12 comments · May be fixed by magnatronus/flutter-devicelocale#65
Closed
1 task done

Bug: AppImage crashes upon invocation. #1021

RokeJulianLockhart opened this issue Nov 15, 2024 · 12 comments · May be fixed by magnatronus/flutter-devicelocale#65

Comments

@RokeJulianLockhart
Copy link

RokeJulianLockhart commented Nov 15, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Summarily, /releases/download/build_251/sw-v2.1.7.AppImage crashes when invoked, after displaying black window content:

  1. Screenshot_20241206_134841

  2. 2024-11-15.21-10-19.mp4

I have a stack trace from gdb undermentioned:

Script started, output log file is 'typescript'.
RokeJulianLockhart@SNRW3Q:~$ /home/RokeJulianLockhart/Downloads/sw-v2.1.9.AppImage
bash: /home/RokeJulianLockhart/Downloads/sw-v2.1.9.AppImage: Permission denied
RokeJulianLockhart@SNRW3Q:~$ /home/RokeJulianLockhart/Downloads/sw-v2.1.9.AppImage
flutter: Log: [Info][2024-12-06 13:45:26.443Z]: Logs older than 2024-11-06 13:45:26.443222Z cleared!
flutter: Log: [Info][2024-12-06 13:45:26.527Z]: Updating default light theme...
flutter: Log: [Info][2024-12-06 13:45:26.567Z]: Updating default light theme... finished
flutter: Log: [Info][2024-12-06 13:45:26.567Z]: Updating default dark theme...
flutter: Log: [Info][2024-12-06 13:45:26.593Z]: Updating default dark theme... finished
flutter: BUILD: _MaterialAppWithThemeState
malloc(): unsorted double linked list corrupted
Aborted (core dumped)
RokeJulianLockhart@SNRW3Q:~$ gdb /home/RokeJulianLockhart/Downloads/sw-v2.1.9.AppImage
GNU gdb (Fedora Linux) 15.2-3.fc41
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/RokeJulianLockhart/Downloads/sw-v2.1.9.AppImage...

This GDB supports auto-downloading debuginfo from the following URLs:
  <https://debuginfod.fedoraproject.org/>
Enable debuginfod for this session? (y or [n]) y
Debuginfod has been enabled.
To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit.
Downloading separate debug info for /home/RokeJulianLockhart/Downloads/sw-v2.1.9.AppImage
(No debugging symbols found in /home/RokeJulianLockhart/Downloads/sw-v2.1.9.AppImage)                                                                                                                                                                                                                                       
(gdb) run
Starting program: /home/RokeJulianLockhart/Downloads/sw-v2.1.9.AppImage 
Downloading 16.59 K separate debug info for /lib64/libdl.so.2
Downloading separate debug info for /lib64/libpthread.so.0                                                                                                                                                                                                                                                                  
[Thread debugging using libthread_db enabled]                                                                                                                                                                                                                                                                               
Using host libthread_db library "/lib64/libthread_db.so.1".
Downloading 653.37 K separate debug info for /lib64/libfuse.so.2
Downloading 14.71 K separate debug info for /home/RokeJulianLockhart/.cache/debuginfod_client/fa05866198e3443aa48a6a6153ca949311e42d0a/debuginfo                                                                                                                                                                            
[Detaching after fork from child process 51927]                                                                                                                                                                                                                                                                             
process 51912 is executing new program: /usr/bin/bash
Downloading 3.78 M separate debug info for /usr/bin/bash
[Thread debugging using libthread_db enabled]                                                                                                                                                                                                                                                                               
Using host libthread_db library "/lib64/libthread_db.so.1".
[Detaching after fork from child process 51933]
process 51912 is executing new program: /tmp/.mount_sw-v2.Q64Y7z/stack_wallet
Downloading 20.97 M separate debug info for /lib64/libgtk-3.so.0
Downloading 354.97 K separate debug info for /home/RokeJulianLockhart/.cache/debuginfod_client/f5e535e89c52858d4973757579aac851ceeb58b1/debuginfo                                                                                                                                                                           
Downloading 3.24 M separate debug info for /lib64/libgdk-3.so.0                                                                                                                                                                                                                                                             
Downloading 184.52 K separate debug info for /lib64/libpangocairo-1.0.so.0                                                                                                                                                                                                                                                  
Downloading 33.12 K separate debug info for /home/RokeJulianLockhart/.cache/debuginfod_client/cc666755c928a7de59615dce02e6fd2a91a1b840/debuginfo                                                                                                                                                                            
Downloading 1.21 M separate debug info for /lib64/libpango-1.0.so.0                                                                                                                                                                                                                                                         
Downloading 420.98 K separate debug info for /lib64/libatk-1.0.so.0                                                                                                                                                                                                                                                         
Downloading 76.43 K separate debug info for /home/RokeJulianLockhart/.cache/debuginfod_client/3b4c048fbad8b25237235f1095a6b3397cca3247/debuginfo                                                                                                                                                                            
Downloading separate debug info for /lib64/libcairo-gobject.so.2                                                                                                                                                                                                                                                            
Downloading 39.73 K separate debug info for /home/RokeJulianLockhart/.cache/debuginfod_client/6a0155ddd0615fc2c407325caebfce835becc37a/debuginfo                                                                                                                                                                            
Downloading 5.19 M separate debug info for /lib64/libcairo.so.2                                                                                                                                                                                                                                                             
Downloading 578.15 K separate debug info for /lib64/libgdk_pixbuf-2.0.so.0                                                                                                                                                                                                                                                  
Downloading 37.62 K separate debug info for /home/RokeJulianLockhart/.cache/debuginfod_client/e4e4b43eae01f10a0d2447c60abf11061cee023b/debuginfo                                                                                                                                                                            
Downloading 6.84 M separate debug info for /lib64/libgio-2.0.so.0                                                                                                                                                                                                                                                           
Downloading 697.73 K separate debug info for /home/RokeJulianLockhart/.cache/debuginfod_client/5e276c63bf3f53980384b0c19ab4b8ffcfe5265f/debuginfo                                                                                                                                                                           
Downloading 1.26 M separate debug info for /lib64/libgobject-2.0.so.0                                                                                                                                                                                                                                                       
Downloading 3.54 M separate debug info for /lib64/libglib-2.0.so.0                                                                                                                                                                                                                                                          
[Thread debugging using libthread_db enabled]                                                                                                                                                                                                                                                                               
Using host libthread_db library "/lib64/libthread_db.so.1".
Downloading 4.02 M separate debug info for /lib64/libgcrypt.so.20
Downloading 24.59 K separate debug info for /home/RokeJulianLockhart/.cache/debuginfod_client/b08999b1802b404845a42c5767deddd8f9ea9742/debuginfo                                                                                                                                                                            
Downloading 3.98 M separate debug info for /lib64/libepoxy.so.0                                                                                                                                                                                                                                                             
Downloading separate debug info for /lib64/libgmodule-2.0.so.0                                                                                                                                                                                                                                                              
Downloading 328.98 K separate debug info for /lib64/libpangoft2-1.0.so.0                                                                                                                                                                                                                                                    
Downloading 107.53 K separate debug info for /lib64/libfribidi.so.0                                                                                                                                                                                                                                                         
Downloading separate debug info for /home/RokeJulianLockhart/.cache/debuginfod_client/b35a8cc51a2986e212d668deab6fad9a029949c1/debuginfo                                                                                                                                                                                    
Downloading 270.20 K separate debug info for /lib64/libXi.so.6                                                                                                                                                                                                                                                              
Downloading 515.12 K separate debug info for /lib64/libatk-bridge-2.0.so.0                                                                                                                                                                                                                                                  
Downloading 306.52 K separate debug info for /lib64/libcloudproviders.so.0                                                                                                                                                                                                                                                  
Downloading 3.21 M separate debug info for /lib64/libtracker-sparql-3.0.so.0                                                                                                                                                                                                                                                
Downloading 394.87 K separate debug info for /home/RokeJulianLockhart/.cache/debuginfod_client/5d4385260e9f9d605cfff65c52828150f8bf1c5f/debuginfo                                                                                                                                                                           
Downloading 146.78 K separate debug info for /lib64/libXcursor.so.1                                                                                                                                                                                                                                                         
Downloading separate debug info for /lib64/libXdamage.so.1                                                                                                                                                                                                                                                                  
Downloading 53.73 K separate debug info for /lib64/libXcomposite.so.1                                                                                                                                                                                                                                                       
Downloading 170.61 K separate debug info for /lib64/libXrandr.so.2                                                                                                                                                                                                                                                          
Downloading 52.93 K separate debug info for /lib64/libXinerama.so.1                                                                                                                                                                                                                                                         
Downloading 106.88 K separate debug info for /lib64/libthai.so.0                                                                                                                                                                                                                                                            
Downloading 130.52 K separate debug info for /lib64/libxcb-render.so.0                                                                                                                                                                                                                                                      
Downloading 4.93 M separate debug info for /lib64/libpixman-1.so.0                                                                                                                                                                                                                                                          
Downloading 555.48 K separate debug info for /lib64/libgpg-error.so.0                                                                                                                                                                                                                                                       
Downloading separate debug info for /home/RokeJulianLockhart/.cache/debuginfod_client/1966004cd3bdfb76ca6c281c7ea322057ca67c08/debuginfo                                                                                                                                                                                    
Downloading 532.06 K separate debug info for /lib64/libatspi.so.0                                                                                                                                                                                                                                                           
Downloading 504.01 K separate debug info for /lib64/libjson-glib-1.0.so.0                                                                                                                                                                                                                                                   
Downloading separate debug info for /home/RokeJulianLockhart/.cache/debuginfod_client/63b8585ee8517b7bb2b9e285eb430357f5a0d327/debuginfo                                                                                                                                                                                    
Downloading 4.30 M separate debug info for /lib64/libsqlite3.so.0                                                                                                                                                                                                                                                           
Downloading 638.97 K separate debug info for /home/RokeJulianLockhart/.cache/debuginfod_client/3e086652759afce5109c4b94209ba7a3627a097c/debuginfo                                                                                                                                                                           
Downloading 102.73 K separate debug info for /lib64/libdatrie.so.1                                                                                                                                                                                                                                                          
Downloading 3.77 M separate debug info for /lib64/libsystemd.so.0                                                                                                                                                                                                                                                           
Downloading 3.96 M separate debug info for /home/RokeJulianLockhart/.cache/debuginfod_client/72bf98b53fa400a00b67b51b339769405077a2e8/debuginfo                                                                                                                                                                             
[New Thread 0x7ffff49d36c0 (LWP 52045)]                                                                                                                                                                                                                                                                                     
[New Thread 0x7ffff41d26c0 (LWP 52046)]
[New Thread 0x7ffff39d16c0 (LWP 52047)]
[New Thread 0x7ffff31b66c0 (LWP 52048)]
Downloading 182.06 K separate debug info for /usr/lib64/gio/modules/libdconfsettings.so
Downloading 61.91 K separate debug info for /home/RokeJulianLockhart/.cache/debuginfod_client/55594807e24e127c88a7d823b293bb334e0cea3c/debuginfo                                                                                                                                                                            
Downloading separate debug info for /usr/lib64/gio/modules/libgiognomeproxy.so                                                                                                                                                                                                                                              
Downloading 37.37 K separate debug info for /home/RokeJulianLockhart/.cache/debuginfod_client/3be34d7a880f30cfb8d0c6883d914c6ddb799775/debuginfo                                                                                                                                                                            
Downloading 427.46 K separate debug info for /usr/lib64/gio/modules/libgiognutls.so                                                                                                                                                                                                                                         
Downloading 5.40 M separate debug info for /lib64/libgnutls.so.30                                                                                                                                                                                                                                                           
Downloading 6.11 M separate debug info for /lib64/libp11-kit.so.0                                                                                                                                                                                                                                                           
Downloading 865.46 K separate debug info for /home/RokeJulianLockhart/.cache/debuginfod_client/3a9c200ec43f1e921995accfa700c62b3c0536a6/debuginfo                                                                                                                                                                           
Downloading 241.38 K separate debug info for /lib64/libtasn1.so.6                                                                                                                                                                                                                                                           
Downloading 1.22 M separate debug info for /lib64/libnettle.so.8                                                                                                                                                                                                                                                            
Downloading 61.11 K separate debug info for /home/RokeJulianLockhart/.cache/debuginfod_client/c8afab3e13e24216f8692450b27e2787fb5a82b0/debuginfo                                                                                                                                                                            
Downloading 775.88 K separate debug info for /lib64/libhogweed.so.6                                                                                                                                                                                                                                                         
Downloading 1.75 M separate debug info for /lib64/libgmp.so.10                                                                                                                                                                                                                                                              
Downloading 32.96 K separate debug info for /usr/lib64/gio/modules/libgiolibproxy.so                                                                                                                                                                                                                                        
Downloading 1.31 M separate debug info for /lib64/libgssapi_krb5.so.2                                                                                                                                                                                                                                                       
Downloading 199.44 K separate debug info for /home/RokeJulianLockhart/.cache/debuginfod_client/efb98680194a7b1414c80f91e49c66fe662d19e2/debuginfo                                                                                                                                                                           
Downloading 2.38 M separate debug info for /lib64/libkrb5.so.3                                                                                                                                                                                                                                                              
Downloading 297.69 K separate debug info for /lib64/libk5crypto.so.3                                                                                                                                                                                                                                                        
Downloading 160.78 K separate debug info for /lib64/libkrb5support.so.0                                                                                                                                                                                                                                                     
Downloading 392.85 K separate debug info for /lib64/libcrypt.so.2                                                                                                                                                                                                                                                           
Downloading 61.04 K separate debug info for /home/RokeJulianLockhart/.cache/debuginfod_client/e1257b8d53b42007d1ed226a8991dff98f4469a8/debuginfo                                                                                                                                                                            
[New Thread 0x7ffff1c206c0 (LWP 52073)]                                                                                                                                                                                                                                                                                     
Downloading 12.17 M separate debug info for /usr/lib64/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader_svg.so
Downloading 8.23 M separate debug info for /home/RokeJulianLockhart/.cache/debuginfod_client/fb5c4e486d274b579472970f2cf1a8dd9f011611/debuginfo                                                                                                                                                                             
Downloading 59.09 M separate debug info for /lib64/librsvg-2.so.2                                                                                                                                                                                                                                                           
[New Thread 0x7ffff0bff6c0 (LWP 52100)]                                                                                                                                                                                                                                                                                     
Downloading 3.43 M separate debug info for /lib64/libEGL_mesa.so.0
Downloading 33.93 M separate debug info for /home/RokeJulianLockhart/.cache/debuginfod_client/e8cd24340de7fcb6c788634407d9e90c07b87d0b/debuginfo                                                                                                                                                                            
Downloading 165.73 M separate debug info for /lib64/libgallium-24.2.8.so                                                                                                                                                                                                                                                    
Downloading 472.22 K separate debug info for /lib64/libgbm.so.1                                                                                                                                                                                                                                                             
Downloading 117.73 K separate debug info for /lib64/libglapi.so.0                                                                                                                                                                                                                                                           
Downloading 382.06 K separate debug info for /lib64/libexpat.so.1                                                                                                                                                                                                                                                           
Downloading separate debug info for /home/RokeJulianLockhart/.cache/debuginfod_client/6141942f4acdb0aacfc66895b37ee2141343e2d8/debuginfo                                                                                                                                                                                    
Downloading 21.71 K separate debug info for /lib64/libxshmfence.so.1                                                                                                                                                                                                                                                        
Downloading 1.03 G separate debug info for /lib64/libLLVM.so.19.1                                                                                                                                                                                                                                                           
Downloading 451.74 K separate debug info for /lib64/libelf.so.1                                                                                                                                                                                                                                                             
Downloading 327.30 K separate debug info for /home/RokeJulianLockhart/.cache/debuginfod_client/ebbeea47d952bb33275b0b939a7c9557fe7f0fa1/debuginfo                                                                                                                                                                           
[Thread 0x7ffff31b66c0 (LWP 52048) exited]                                                                                                                                                                                                                                                                                  
[New Thread 0x7ffff31b66c0 (LWP 53231)]
[New Thread 0x7fffe92306c0 (LWP 53234)]
[New Thread 0x7fffe8a2f6c0 (LWP 53235)]
[New Thread 0x7fffd21ff6c0 (LWP 53236)]
[New Thread 0x7fffd17fe6c0 (LWP 53237)]
[New Thread 0x7fffd0f6c6c0 (LWP 53238)]
[New Thread 0x7fffcbfff6c0 (LWP 53239)]
[New Thread 0x7fffcb7fe6c0 (LWP 53240)]
[New Thread 0x7fffcaffd6c0 (LWP 53241)]
[New Thread 0x7fffca7fc6c0 (LWP 53242)]
[New Thread 0x7fffc9ffb6c0 (LWP 53243)]
[New Thread 0x7fffc97fa6c0 (LWP 53244)]
[New Thread 0x7fffc8ff96c0 (LWP 53245)]
[New Thread 0x7fffb3fff6c0 (LWP 53246)]
[New Thread 0x7fffb37fe6c0 (LWP 53247)]
[New Thread 0x7fffb2ffd6c0 (LWP 53248)]
[New Thread 0x7fffb27fc6c0 (LWP 53249)]
[New Thread 0x7fffb1ffb6c0 (LWP 53250)]
Downloading 298.45 K separate debug info for /lib64/libGL.so.1
[New Thread 0x7fffb17fa6c0 (LWP 53251)]                                                                                                                                                                                                                                                                                     
[New Thread 0x7fffd039a6c0 (LWP 53252)]
[New Thread 0x7fffc87f86c0 (LWP 53253)]
[New Thread 0x7fffb0ff96c0 (LWP 53254)]
[New Thread 0x7fffa66c26c0 (LWP 53255)]
[New Thread 0x7fffa5ec16c0 (LWP 53256)]
[New Thread 0x7fffa56c06c0 (LWP 53257)]
[New Thread 0x7fffc85f76c0 (LWP 53258)]
Downloading 19.99 K separate debug info for /usr/lib64/gtk-3.0/modules/libcolorreload-gtk-module.so
Downloading 924.46 K separate debug info for /home/RokeJulianLockhart/.cache/debuginfod_client/5aea660f6983609f319bb8232e5e02749601e218/debuginfo                                                                                                                                                                           
Downloading 24.77 K separate debug info for /usr/lib64/gtk-3.0/modules/libwindow-decorations-gtk-module.so                                                                                                                                                                                                                  
[New Thread 0x7fff9b3ee6c0 (LWP 53274)]                                                                                                                                                                                                                                                                                     
[New Thread 0x7fff9b1ed6c0 (LWP 53275)]
[New Thread 0x7fff9afec6c0 (LWP 53276)]
[New Thread 0x7fff9adeb6c0 (LWP 53277)]
[New Thread 0x7fff9abea6c0 (LWP 53278)]
[New Thread 0x7fff9a9e96c0 (LWP 53279)]
[New Thread 0x7fff9a7e86c0 (LWP 53280)]
[New Thread 0x7fff9a5e76c0 (LWP 53281)]
[New Thread 0x7fff9a3e66c0 (LWP 53282)]
[New Thread 0x7fff9a1e56c0 (LWP 53283)]
[New Thread 0x7fff99fe46c0 (LWP 53284)]
[New Thread 0x7fff99de36c0 (LWP 53285)]
[New Thread 0x7fff99be26c0 (LWP 53286)]
flutter: Log: [Info][2024-12-06 13:48:29.404Z]: Logs older than 2024-11-06 13:48:29.403434Z cleared!
[New Thread 0x7fff99ae16c0 (LWP 53287)]
[New Thread 0x7fff999e06c0 (LWP 53288)]
flutter: BUILD: _MaterialAppWithThemeState
double free or corruption (!prev)

Thread 1 "stack_wallet" received signal SIGABRT, Aborted.
__pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
44            return INTERNAL_SYSCALL_ERROR_P (ret) ? INTERNAL_SYSCALL_ERRNO (ret) : 0;
(gdb) bt
#0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1  0x00007ffff5c9dd03 in __pthread_kill_internal (threadid=<optimized out>, signo=6) at pthread_kill.c:78
#2  0x00007ffff5c44d1e in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#3  0x00007ffff5c2c942 in __GI_abort () at abort.c:79
#4  0x00007ffff5c2d7a7 in __libc_message_impl (fmt=fmt@entry=0x7ffff5de03cd "%s\n") at ../sysdeps/posix/libc_fatal.c:132
#5  0x00007ffff5ca7e25 in malloc_printerr (str=str@entry=0x7ffff5de3658 "double free or corruption (!prev)") at malloc.c:5772
#6  0x00007ffff5caa00c in _int_free_merge_chunk (av=av@entry=0x7ffff5e15ac0 <main_arena>, p=0x14d0e30, size=240) at malloc.c:4679
#7  0x00007ffff5caa30a in _int_free (av=0x7ffff5e15ac0 <main_arena>, p=p@entry=0x14d0e30, have_lock=<optimized out>, have_lock@entry=0) at malloc.c:4646
#8  0x00007ffff5cacb8e in __GI___libc_free (mem=mem@entry=0x14d0e40) at malloc.c:3398
#9  0x00007ffff5f45ec5 in g_free (mem=0x14d0e40) at ../glib/gmem.c:208
#10 0x00007ffff7f0077e in get_current_locale() () from /tmp/.mount_sw-v2.Q64Y7z/lib/libdevicelocale_plugin.so
#11 0x00007ffff7f005ad in method_call_cb(_FlMethodChannel*, _FlMethodCall*, void*) () from /tmp/.mount_sw-v2.Q64Y7z/lib/libdevicelocale_plugin.so
#12 0x00007ffff7231bb0 in ?? () from /tmp/.mount_sw-v2.Q64Y7z/lib/libflutter_linux_gtk.so
#13 0x00007ffff72225bc in ?? () from /tmp/.mount_sw-v2.Q64Y7z/lib/libflutter_linux_gtk.so
#14 0x00007ffff7225196 in ?? () from /tmp/.mount_sw-v2.Q64Y7z/lib/libflutter_linux_gtk.so
#15 0x00007ffff72d2e06 in ?? () from /tmp/.mount_sw-v2.Q64Y7z/lib/libflutter_linux_gtk.so
#16 0x00007ffff72e340a in ?? () from /tmp/.mount_sw-v2.Q64Y7z/lib/libflutter_linux_gtk.so
#17 0x00007ffff72e3988 in ?? () from /tmp/.mount_sw-v2.Q64Y7z/lib/libflutter_linux_gtk.so
#18 0x00007ffff72e0b33 in ?? () from /tmp/.mount_sw-v2.Q64Y7z/lib/libflutter_linux_gtk.so
#19 0x00007ffff72c80da in ?? () from /tmp/.mount_sw-v2.Q64Y7z/lib/libflutter_linux_gtk.so
#20 0x00007ffff723c3a0 in ?? () from /tmp/.mount_sw-v2.Q64Y7z/lib/libflutter_linux_gtk.so
#21 0x00007ffff723c543 in ?? () from /tmp/.mount_sw-v2.Q64Y7z/lib/libflutter_linux_gtk.so
#22 0x00007ffff5f4b519 in g_timeout_dispatch (source=0x7fff481d24f0, callback=0x7ffff723c4d0, user_data=0x1350840) at ../glib/gmain.c:5070
#23 0x00007ffff5f4528c in g_main_dispatch (context=0x464a10) at ../glib/gmain.c:3357
#24 g_main_context_dispatch_unlocked (context=0x464a10) at ../glib/gmain.c:4208
#25 0x00007ffff5fa57b8 in g_main_context_iterate_unlocked.isra.0 (context=context@entry=0x464a10, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4273
#26 0x00007ffff5f46783 in g_main_context_iteration (context=context@entry=0x464a10, may_block=may_block@entry=1) at ../glib/gmain.c:4338
#27 0x00007ffff6164dcd in g_application_run (application=0x463150, argc=<optimized out>, argv=0x7fffffffd7d8) at ../gio/gapplication.c:2715
#28 0x000000000040499e in main ()
(gdb) exit
A debugging session is active.

        Inferior 1 [process 51912] will be killed.

Quit anyway? (y or n) y
warning: BFD: reopening /tmp/.mount_sw-v2.Q64Y7z/stack_wallet: Transport endpoint is not connected

Expected Behavior

It shouldn't crash.

Reproduction Steps

#!/usr/bin/env -S pwsh
#Requires -PSEdition 'Core'
#Requires -Version 7.4

If ($IsLinux) {
	firefox 'https://github.com/cypherstack/stack_wallet/releases/download/build_251/sw-v2.1.7.AppImage'
	& "$HOME/AppImages/stack_wallet.appimage"
}

Environment

Operating system and version:

Fedora-KDE-Live-x86_64-41-1.4

Device platform and version:

  1. #!/usr/bin/env -S sh
    kinfo
  2. #!/usr/bin/env -S xdg-open
    Operating System       : Fedora Linux 41
    KDE Plasma Version     : 6.2.3
    KDE Frameworks Version : 6.8.0
    Qt Version             : 6.8.0
    Kernel Version         : 6.11.7-300.fc41.x86_64 (64-bit)
    Graphics Platform      : Wayland
    Processors             : 12 × AMD Ryzen 5 7600X 6-Core Processor
    Memory                 : 30.4 GiB of RAM
    Graphics Processor     : AMD Radeon RX 5700
    Manufacturer           : ASRock
    Product Name           : X670E Taichi

Real device or emulator/simulator:

Real.

Logs

gist.github.com/RokeJulianLockhart/62705e75ba30cf6e719c5019e2ce7db5: 1

  1. #!/usr/bin/env -S pwsh
    & '/home/RokeJulianLockhart/AppImages/stack_wallet.appimage'
  2. PS /home/RokeJulianLockhart> & '/home/RokeJulianLockhart/AppImages/stack_wallet.appimage'   
    flutter: Log: [Info][2024-11-15 20:48:35.952Z]: Logs older than 2024-10-16 20:48:35.950343Z cleared!
    flutter: Log: [Info][2024-11-15 20:48:35.994Z]: Updating default dark theme...
    flutter: Log: [Info][2024-11-15 20:48:36.035Z]: Updating default dark theme... finished
    flutter: BUILD: _MaterialAppWithThemeState
    double free or corruption (!prev)
    

Further Information

No response

Footnotes

  1. gist.github.com/RokeJulianLockhart/62705e75ba30cf6e719c5019e2ce7db5/814fa31efa57106373adf37986f87b386a09afe7

@RokeJulianLockhart RokeJulianLockhart changed the title Bug: Crash on launch. Bug: AppImage crashes upon invocation. Dec 6, 2024
@julian-CStack
Copy link
Collaborator

I ran the OS linked above (Fedora KDE 41) in virtualbox and the 2.1.9 app image seems to run fine for me:
image

Even after installing, updating the system (dnf upgrade), and rebooting I am still unable to reproduce the crash.

@julian-CStack
Copy link
Collaborator

What locale is your system?

@RokeJulianLockhart
Copy link
Author

RokeJulianLockhart commented Dec 9, 2024

#1021 (comment)

@julian-CStack:

  1. #!/usr/bin/env sh
    locale
  2. LANG=en_GB.UTF-8
    LC_CTYPE="en_GB.UTF-8"
    LC_NUMERIC=C
    LC_TIME=C
    LC_COLLATE="en_GB.UTF-8"
    LC_MONETARY=C
    LC_MESSAGES="en_GB.UTF-8"
    LC_PAPER="en_GB.UTF-8"
    LC_NAME=C
    LC_ADDRESS="en_GB.UTF-8"
    LC_TELEPHONE=C
    LC_MEASUREMENT=C
    LC_IDENTIFICATION="en_GB.UTF-8"
    LC_ALL=

    Ultimately, it should be mostly en_GB.UTF-8 where locale matters, and whatever is most standards-compliant elsewhere (usually C, but sometimes a random African nation for ISO 8601, etcetera).

@RokeJulianLockhart
Copy link
Author

RokeJulianLockhart commented Dec 9, 2024

#1021 (comment)

@julian-CStack, v2.1.9.AppImage still does for me:

Script started, output log file is 'typescript'.
RokeJulianLockhart@SNRW3Q:~$ /home/RokeJulianLockhart/Downloads/sw-v2.1.9.AppImage
bash: /home/RokeJulianLockhart/Downloads/sw-v2.1.9.AppImage: Permission denied
RokeJulianLockhart@SNRW3Q:~$ /home/RokeJulianLockhart/Downloads/sw-v2.1.9.AppImage
flutter: Log: [Info][2024-12-09 20:08:23.037Z]: Logs older than 2024-11-09 20:08:23.036380Z cleared!
flutter: BUILD: _MaterialAppWithThemeState
double free or corruption (!prev)
Aborted (core dumped)
RokeJulianLockhart@SNRW3Q:~$ gdb --args '/home/RokeJulianLockhart/Downloads/sw-v2.1.9.AppImage'
GNU gdb (Fedora Linux) 15.2-3.fc41
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/RokeJulianLockhart/Downloads/sw-v2.1.9.AppImage...

This GDB supports auto-downloading debuginfo from the following URLs:
  <https://debuginfod.fedoraproject.org/>
Enable debuginfod for this session? (y or [n]) y
Debuginfod has been enabled.
To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit.
Downloading separate debug info for /home/RokeJulianLockhart/Downloads/sw-v2.1.9.AppImage
(No debugging symbols found in /home/RokeJulianLockhart/Downloads/sw-v2.1.9.AppImage)                                                                                                                                                                                                                                       
(gdb) run
Starting program: /home/RokeJulianLockhart/Downloads/sw-v2.1.9.AppImage 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[Detaching after fork from child process 105234]
process 105231 is executing new program: /usr/bin/bash
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[Detaching after fork from child process 105239]
process 105231 is executing new program: /tmp/.mount_sw-v2.lozb1d/stack_wallet
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Downloading 4.93 M separate debug info for /lib64/libpixman-1.so.0
[New Thread 0x7ffff49d36c0 (LWP 105251)]                                                                                                                                                                                                                                                                                    
[New Thread 0x7ffff41d26c0 (LWP 105252)]
[New Thread 0x7ffff39d16c0 (LWP 105253)]
[New Thread 0x7ffff31b66c0 (LWP 105254)]
Downloading 1.00 M separate debug info for /lib64/libldap.so.2
Downloading 187.23 K separate debug info for /home/RokeJulianLockhart/.cache/debuginfod_client/fde299fd4d2a11ad96916a427bfcfc5a0ffcb036/debuginfo                                                                                                                                                                           
Downloading 146.30 K separate debug info for /lib64/liblber.so.2                                                                                                                                                                                                                                                            
[New Thread 0x7ffff1c206c0 (LWP 105255)]                                                                                                                                                                                                                                                                                    
Downloading 18.35 M separate debug info for /usr/lib64/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader_svg.so
Downloading 7.99 M separate debug info for /home/RokeJulianLockhart/.cache/debuginfod_client/fb3cc46496162e88e248c60d6b64a5fe7b5f739d/debuginfo                                                                                                                                                                             
Downloading 77.79 M separate debug info for /lib64/librsvg-2.so.2                                                                                                                                                                                                                                                           
[New Thread 0x7ffff0bff6c0 (LWP 105292)]                                                                                                                                                                                                                                                                                    
Downloading 252.87 K separate debug info for /lib64/libdrm.so.2
Downloading 31.94 K separate debug info for /home/RokeJulianLockhart/.cache/debuginfod_client/475b4dffe72825eb054c23217760ec2479558e18/debuginfo                                                                                                                                                                            
Downloading 1.03 G separate debug info for /lib64/libLLVM.so.19.1                                                                                                                                                                                                                                                           
Downloading 114.30 K separate debug info for /lib64/libdrm_radeon.so.1                                                                                                                                                                                                                                                      
Downloading 451.74 K separate debug info for /lib64/libelf.so.1                                                                                                                                                                                                                                                             
Downloading 327.74 K separate debug info for /home/RokeJulianLockhart/.cache/debuginfod_client/c05674921d8ced55c1838c5db0154ec1fe7f0fa1/debuginfo                                                                                                                                                                           
Downloading 131.66 K separate debug info for /lib64/libdrm_amdgpu.so.1                                                                                                                                                                                                                                                      
Downloading 371.98 K separate debug info for /lib64/libdrm_intel.so.1                                                                                                                                                                                                                                                       
[Thread 0x7ffff31b66c0 (LWP 105254) exited]                                                                                                                                                                                                                                                                                 
[New Thread 0x7ffff31b66c0 (LWP 106374)]
[New Thread 0x7fffe92246c0 (LWP 106375)]
[New Thread 0x7fffe8a236c0 (LWP 106376)]
[New Thread 0x7fffd21ff6c0 (LWP 106377)]
[New Thread 0x7fffd17fe6c0 (LWP 106378)]
[New Thread 0x7fffd0f6c6c0 (LWP 106381)]
[New Thread 0x7fffcbfff6c0 (LWP 106384)]
[New Thread 0x7fffcb7fe6c0 (LWP 106385)]
[New Thread 0x7fffcaffd6c0 (LWP 106386)]
[New Thread 0x7fffca7fc6c0 (LWP 106387)]
[New Thread 0x7fffc9ffb6c0 (LWP 106388)]
[New Thread 0x7fffc97fa6c0 (LWP 106389)]
[New Thread 0x7fffc8ff96c0 (LWP 106390)]
[New Thread 0x7fffb3fff6c0 (LWP 106391)]
[New Thread 0x7fffb37fe6c0 (LWP 106392)]
[New Thread 0x7fffb2ffd6c0 (LWP 106393)]
[New Thread 0x7fffb27fc6c0 (LWP 106394)]
[New Thread 0x7fffb1ffb6c0 (LWP 106395)]
[New Thread 0x7fffb17fa6c0 (LWP 106397)]
[New Thread 0x7fffd03cb6c0 (LWP 106398)]
[New Thread 0x7fffc87f86c0 (LWP 106399)]
[New Thread 0x7fffb0ff96c0 (LWP 106400)]
[New Thread 0x7fffa66c26c0 (LWP 106401)]
[New Thread 0x7fffa5ec16c0 (LWP 106402)]
[New Thread 0x7fffa56c06c0 (LWP 106403)]
[New Thread 0x7fffd010b6c0 (LWP 106404)]
[New Thread 0x7fff9b3ee6c0 (LWP 106406)]
[New Thread 0x7fff9b1ed6c0 (LWP 106407)]
[New Thread 0x7fff9afec6c0 (LWP 106408)]
[New Thread 0x7fff9adeb6c0 (LWP 106409)]
[New Thread 0x7fff9abea6c0 (LWP 106410)]
[New Thread 0x7fff9a9e96c0 (LWP 106411)]
[New Thread 0x7fff9a7e86c0 (LWP 106412)]
[New Thread 0x7fff9a5e76c0 (LWP 106413)]
[New Thread 0x7fff9a3e66c0 (LWP 106414)]
[New Thread 0x7fff9a1e56c0 (LWP 106415)]
[New Thread 0x7fff99fe46c0 (LWP 106416)]
[New Thread 0x7fff99de36c0 (LWP 106417)]
[New Thread 0x7fff99be26c0 (LWP 106418)]
flutter: Log: [Info][2024-12-09 20:11:33.600Z]: Logs older than 2024-11-09 20:11:33.599883Z cleared!
[New Thread 0x7fff99ae16c0 (LWP 106419)]
[New Thread 0x7fff999e06c0 (LWP 106420)]
[New Thread 0x7fff997ff6c0 (LWP 106421)]
flutter: BUILD: _MaterialAppWithThemeState
malloc(): unsorted double linked list corrupted

Thread 1 "stack_wallet" received signal SIGABRT, Aborted.
__pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
44            return INTERNAL_SYSCALL_ERROR_P (ret) ? INTERNAL_SYSCALL_ERRNO (ret) : 0;
(gdb) bt
#0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1  0x00007ffff5c9dd03 in __pthread_kill_internal (threadid=<optimized out>, signo=6) at pthread_kill.c:78
#2  0x00007ffff5c44d1e in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#3  0x00007ffff5c2c942 in __GI_abort () at abort.c:79
#4  0x00007ffff5c2d7a7 in __libc_message_impl (fmt=fmt@entry=0x7ffff5de03cd "%s\n") at ../sysdeps/posix/libc_fatal.c:132
#5  0x00007ffff5ca7e25 in malloc_printerr (str=str@entry=0x7ffff5de3a80 "malloc(): unsorted double linked list corrupted") at malloc.c:5772
#6  0x00007ffff5cab48c in _int_malloc (av=av@entry=0x7ffff5e15ac0 <main_arena>, bytes=bytes@entry=104) at malloc.c:4086
#7  0x00007ffff5cad56e in __libc_calloc (n=n@entry=1, elem_size=elem_size@entry=104) at malloc.c:3754
#8  0x00007ffff5f4ccb2 in g_malloc0 (n_bytes=104) at ../glib/gmem.c:133
#9  0x00007ffff5f41e6c in g_source_new (source_funcs=0x7ffff6052320 <g_idle_funcs>, struct_size=104) at ../glib/gmain.c:926
#10 0x00007ffff5f4794b in idle_source_new (one_shot=0) at ../glib/gmain.c:6257
#11 idle_add_full (priority=200, one_shot=0, function=0x7ffff72239f0, data=0x70ed70, notify=0x0) at ../glib/gmain.c:6302
#12 0x00007ffff7223540 in ?? () from /tmp/.mount_sw-v2.lozb1d/lib/libflutter_linux_gtk.so
#13 0x00007ffff723229f in ?? () from /tmp/.mount_sw-v2.lozb1d/lib/libflutter_linux_gtk.so
#14 0x00007ffff7231478 in fl_method_call_respond () from /tmp/.mount_sw-v2.lozb1d/lib/libflutter_linux_gtk.so
#15 0x00007ffff7f0061d in method_call_cb(_FlMethodChannel*, _FlMethodCall*, void*) () from /tmp/.mount_sw-v2.lozb1d/lib/libdevicelocale_plugin.so
#16 0x00007ffff7231bb0 in ?? () from /tmp/.mount_sw-v2.lozb1d/lib/libflutter_linux_gtk.so
#17 0x00007ffff72225bc in ?? () from /tmp/.mount_sw-v2.lozb1d/lib/libflutter_linux_gtk.so
#18 0x00007ffff7225196 in ?? () from /tmp/.mount_sw-v2.lozb1d/lib/libflutter_linux_gtk.so
#19 0x00007ffff72d2e06 in ?? () from /tmp/.mount_sw-v2.lozb1d/lib/libflutter_linux_gtk.so
#20 0x00007ffff72e340a in ?? () from /tmp/.mount_sw-v2.lozb1d/lib/libflutter_linux_gtk.so
#21 0x00007ffff72e3988 in ?? () from /tmp/.mount_sw-v2.lozb1d/lib/libflutter_linux_gtk.so
#22 0x00007ffff72e0b33 in ?? () from /tmp/.mount_sw-v2.lozb1d/lib/libflutter_linux_gtk.so
#23 0x00007ffff72c80da in ?? () from /tmp/.mount_sw-v2.lozb1d/lib/libflutter_linux_gtk.so
#24 0x00007ffff723c3a0 in ?? () from /tmp/.mount_sw-v2.lozb1d/lib/libflutter_linux_gtk.so
#25 0x00007ffff723c543 in ?? () from /tmp/.mount_sw-v2.lozb1d/lib/libflutter_linux_gtk.so
#26 0x00007ffff5f4b519 in g_timeout_dispatch (source=0x7fff481d5f90, callback=0x7ffff723c4d0, user_data=0x1391b40) at ../glib/gmain.c:5070
#27 0x00007ffff5f4528c in g_main_dispatch (context=0x464a10) at ../glib/gmain.c:3357
--Type <RET> for more, q to quit, c to continue without paging--c
#28 g_main_context_dispatch_unlocked (context=0x464a10) at ../glib/gmain.c:4208
#29 0x00007ffff5fa57b8 in g_main_context_iterate_unlocked.isra.0 (context=context@entry=0x464a10, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4273
#30 0x00007ffff5f46783 in g_main_context_iteration (context=context@entry=0x464a10, may_block=may_block@entry=1) at ../glib/gmain.c:4338
#31 0x00007ffff6164dcd in g_application_run (application=0x463150, argc=<optimized out>, argv=0x7fffffffd7f8) at ../gio/gapplication.c:2715
#32 0x000000000040499e in main ()
(gdb) exit
A debugging session is active.

        Inferior 1 [process 105231] will be killed.

Quit anyway? (y or n) y
warning: BFD: reopening /tmp/.mount_sw-v2.lozb1d/stack_wallet: Transport endpoint is not connected

@projjalm
Copy link

projjalm commented Dec 10, 2024

It only works with env var LANG=C set for me,
And my usual en_IN crashes it

@julian-CStack
Copy link
Collaborator

Something isn't playing nice with the locale lib....

@projjalm and @RokeJulianLockhart Does export LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 && <path/to/stack.appImage> make any difference?
I tried en_IN and en_GB and there was no crash in my Fedora KDE 41 vm.

Do either of you know if you have a somehow modified version of glibc?

@RokeJulianLockhart
Copy link
Author

RokeJulianLockhart commented Dec 10, 2024

#1021 (comment)

@julian-CStack, that indeed works!

Screenshot_20241210_155235

Script started, output log file is 'typescript'.
RokeJulianLockhart@SNRW3Q:~$ export LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 && /home/RokeJulianLockhart/Downloads/sw-v2.1.9.AppImage
flutter: Log: [Info][2024-12-10 15:52:13.983Z]: Logs older than 2024-11-10 15:52:13.982848Z cleared!
flutter: BUILD: _MaterialAppWithThemeState
flutter: BUILD: _MaterialAppWithThemeState
flutter: BUILD: _IntroViewState 
flutter: didChangeAppLifecycleState: inactive
flutter: didChangeAppLifecycleState: resumed
flutter: didChangeAppLifecycleState: inactive
flutter: didChangeAppLifecycleState: resumed
RokeJulianLockhart@SNRW3Q:~$

Do either of you know if you have a somehow modified version of glibc?

No idea. It would have to be the default for Fedora, if so. Why might I?

@julian-CStack
Copy link
Collaborator

julian-CStack commented Dec 10, 2024

@RokeJulianLockhart Fantastic!
Not that this is a good solution but it helps narrow things down a bit, thanks!
The issue most likely stems from the locale plugin code in the library we use to read the system locale.

No idea. It would have to be the default for Fedora, if so. Why might I?

You never know how much someone has customized their system so I asked just in case. If you don't know, then you likely don't :)
And it doesn't matter since using the exports above appears to have made a difference.

I'm not sure which var is actually causing the issue but I think if you do export LANG=en_GB.UTF-8 LC_ALL=en_GB.UTF-8 && locale and compare to the output provided in #1021 (comment) then any that do not match up is a possible culprit.

I'm not sure if there is a Fedora way to set those variables, but for now you could set export LANG=en_GB.UTF-8 LC_ALL=en_GB.UTF-8 to run on login or something.

It is interesting to note that on my Fedora install when I did locale, everything was set to "en_US.UTF-8" with the exception of "LC_ALL" which was empty.

@RokeJulianLockhart
Copy link
Author

RokeJulianLockhart commented Dec 10, 2024

I'm not sure which var is actually causing the issue but I think if you do export LANG=en_GB.UTF-8 LC_ALL=en_GB.UTF-8 && locale and compare to the output provided in #1021 (comment) then any that do not match up is a possible culprit.

@julian-CStack, I've created a diff:

LANG=en_GB.UTF-8
LC_CTYPE="en_GB.UTF-8"
- LC_NUMERIC=C
- LC_TIME=C
+ LC_NUMERIC="en_GB.UTF-8"
+ LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
- LC_MONETARY=C
+ LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
- LC_NAME=C
+ LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
- LC_TELEPHONE=C
- LC_MEASUREMENT=C
+ LC_TELEPHONE="en_GB.UTF-8"
+ LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
- LC_ALL=
+ LC_ALL=en_GB.UTF-8

It is interesting to note that on my Fedora install when I did locale, everything was set to "en_US.UTF-8" with the exception of "LC_ALL" which was empty.

That'll be because I've modified my locales in kcm_regionandlang (as aforestated):

  1. #!/usr/bin/env sh
    kcmshell6 kcm_regionandlang
  2. Screenshot_20241210_170501

@plowsof
Copy link

plowsof commented Dec 14, 2024

@julian-CStack can you drop your xmr address as a comment on github? To receive this bounty https://bounties.monero.social/posts/164/0-500m-stack-wallet-diagnose-and-fix-linux-crash

@julian-CStack
Copy link
Collaborator

@plowsof 8Ag3j1evrc9hKTFnEbMa57cmzVbx2vndvV3XcLKoy321HeyXrs1MGJPJrhxoChK7vHCPiv2DnYJ7HDT9ZNvspcPf3WcEaUG

@julian-CStack
Copy link
Collaborator

julian-CStack commented Dec 14, 2024

I've forked the devicelocale lib and using the fixed version in stack wallet now, at least until my PR gets merged or something else comes up.

Unsure if its in the most recent Stack Wallet release at the moment. If not, it will be in within a week.

@RokeJulianLockhart I'll close this now but feel free to reopen if you think it necessary

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

Successfully merging a pull request may close this issue.

4 participants