Segmentation Fault when changing from one profile to another #565

Open
opened 2019-12-27 22:26:37 +01:00 by eacp · 3 comments
eacp commented 2019-12-27 22:26:37 +01:00 (Migrated from github.com)

The frequency of this issue increases when the window is maximized. Sometimes when I change the profile the screen suddenly closes.

Reproduction
I managed to reproduce this error on purpose by opening a new window and changing the profile multiple times and at some pint the app will eventually crash. This is annoying.

When I call the app from the command line this is the log:

$ cool-retro-term 
QApplication: invalid style override passed, ignoring it.
default KB_LAYOUT_DIR:  "/tmp/.mount_cool-rMihPXO/usr/qml/QMLTermWidget/kb-layouts"
QObject::connect: No such slot Konsole::TerminalDisplay_QML_157::close()
loadAllColorSchemes
Both point size and pixel size set. Using pixel size.
Violación de segmento (Segmentation fault in spanish)

Here is my computer information:
OS: Ubuntu 18.04 lts X86_64
Host: Inspiron 7566
Kernel: 5.0.0-37-generic
Uptime: 37 mins
Packages: 2212
Shell: bash 4.4.20
Resolution: 1920x1080, 1920x1080
DE: GNOME 3.30.2
WM: GNOME
CPU: Intel i7-6700HQ (8) @ 3.500GHz
GPU: NVIDIA GeForce GTX 960M
GPU: Intel HD Graphics 530
Memory: 2451MiB / 7809MiB

The frequency of this issue increases when the window is maximized. Sometimes when I change the profile the screen suddenly closes. **Reproduction** I managed to reproduce this error on purpose by opening a new window and changing the profile multiple times and at some pint the app will eventually crash. This is annoying. **When I call the app from the command line this is the log:** ``` $ cool-retro-term QApplication: invalid style override passed, ignoring it. default KB_LAYOUT_DIR: "/tmp/.mount_cool-rMihPXO/usr/qml/QMLTermWidget/kb-layouts" QObject::connect: No such slot Konsole::TerminalDisplay_QML_157::close() loadAllColorSchemes Both point size and pixel size set. Using pixel size. Violación de segmento (Segmentation fault in spanish) ``` **Here is my computer information:** OS: Ubuntu 18.04 lts X86_64 Host: Inspiron 7566 Kernel: 5.0.0-37-generic Uptime: 37 mins Packages: 2212 Shell: bash 4.4.20 Resolution: 1920x1080, 1920x1080 DE: GNOME 3.30.2 WM: GNOME CPU: Intel i7-6700HQ (8) @ 3.500GHz GPU: NVIDIA GeForce GTX 960M GPU: Intel HD Graphics 530 Memory: 2451MiB / 7809MiB
metallurge commented 2020-01-13 00:17:12 +01:00 (Migrated from github.com)

Confirmed, on very different hardware:

eric@ericdesktop:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic

eric@ericdesktop:~$ ls -l Cool-Retro-Term-1.1.1-x86_64.AppImage
-rwxrwxr-x 1 eric eric 34430664 Jan 19 2019 Cool-Retro-Term-1.1.1-x86_64.AppImage

Linux version 5.3.12-050312-generic (kernel@tangerine) (gcc version 9.2.1 20191109 (Ubuntu 9.2.1-19ubuntu1)) #201911201137 SMP Wed Nov 20 16:39:42 UTC 2019

eric@ericdesktop:~$ inxi -C
CPU: 6 core AMD Ryzen 5 2600 Six-Core (-MT-MCP-) cache: 3072 KB
clock speeds: max: 3400 MHz 1: 1504 MHz 2: 1409 MHz 3: 1379 MHz 4: 1383 MHz 5: 1425 MHz 6: 1408 MHz
7: 2014 MHz 8: 2025 MHz 9: 1492 MHz 10: 1408 MHz 11: 1306 MHz 12: 1362 MHz

eric@ericdesktop:~$ glxinfo | egrep -i 'device|memory'
Device: Radeon RX 580 Series (POLARIS10, DRM 3.33.0, 5.3.12-050312-generic, LLVM 9.0.0) (0x67df)
Video memory: 4096MB
Unified memory: no
Memory info (GL_ATI_meminfo):
VBO free memory - total: 3848 MB, largest block: 3848 MB
VBO free aux. memory - total: 4020 MB, largest block: 4020 MB
Texture free memory - total: 3848 MB, largest block: 3848 MB
Texture free aux. memory - total: 4020 MB, largest block: 4020 MB
Renderbuffer free memory - total: 3848 MB, largest block: 3848 MB
Renderbuffer free aux. memory - total: 4020 MB, largest block: 4020 MB
Memory info (GL_NVX_gpu_memory_info):
Dedicated video memory: 4096 MB
Total available memory: 8192 MB
Currently available dedicated video memory: 3848 MB
GL_AMD_performance_monitor, GL_AMD_pinned_memory,
GL_EXT_framebuffer_object, GL_EXT_framebuffer_sRGB, GL_EXT_memory_object,
GL_EXT_memory_object_fd, GL_EXT_packed_depth_stencil, GL_EXT_packed_float,
GL_NVX_gpu_memory_info, GL_NV_conditional_render, GL_NV_depth_clamp,
GL_AMD_pinned_memory, GL_AMD_query_buffer_object,
GL_EXT_gpu_shader4, GL_EXT_memory_object, GL_EXT_memory_object_fd,
GL_MESA_window_pos, GL_NVX_gpu_memory_info, GL_NV_blend_square,
GL_EXT_memory_object, GL_EXT_memory_object_fd, GL_EXT_multi_draw_arrays,

eric@ericdesktop:~$ ./Cool-Retro-Term-1.1.1-x86_64.AppImage
QApplication: invalid style override passed, ignoring it.
default KB_LAYOUT_DIR: "/tmp/.mount_Cool-RQltnBB/usr/qml/QMLTermWidget/kb-layouts"
QObject::connect: No such slot Konsole::TerminalDisplay_QML_149::close()
loadAllColorSchemes
Both point size and pixel size set. Using pixel size.
Using a variable-width font in the terminal. This may cause performance degradation and display/alignment errors.
Using a variable-width font in the terminal. This may cause performance degradation and display/alignment errors.
Using a variable-width font in the terminal. This may cause performance degradation and display/alignment errors.
Using a variable-width font in the terminal. This may cause performance degradation and display/alignment errors.
Using a variable-width font in the terminal. This may cause performance degradation and display/alignment errors.
corrupted size vs. prev_size
Aborted (core dumped)

eric@ericdesktop:~$ ./Cool-Retro-Term-1.1.1-x86_64.AppImage
QApplication: invalid style override passed, ignoring it.
default KB_LAYOUT_DIR: "/tmp/.mount_Cool-ReJcI76/usr/qml/QMLTermWidget/kb-layouts"
QObject::connect: No such slot Konsole::TerminalDisplay_QML_150::close()
loadAllColorSchemes
Both point size and pixel size set. Using pixel size.
Using a variable-width font in the terminal. This may cause performance degradation and display/alignment errors.
Using a variable-width font in the terminal. This may cause performance degradation and display/alignment errors.
Using a variable-width font in the terminal. This may cause performance degradation and display/alignment errors.
Using a variable-width font in the terminal. This may cause performance degradation and display/alignment errors.
Segmentation fault (core dumped)

eric@ericdesktop:~$ ./Cool-Retro-Term-1.1.1-x86_64.AppImage
QApplication: invalid style override passed, ignoring it.
default KB_LAYOUT_DIR: "/tmp/.mount_Cool-RqveFut/usr/qml/QMLTermWidget/kb-layouts"
QObject::connect: No such slot Konsole::TerminalDisplay_QML_68::close()
loadAllColorSchemes
Both point size and pixel size set. Using pixel size.
Segmentation fault (core dumped)

Confirmed, on very different hardware: eric@ericdesktop:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.3 LTS Release: 18.04 Codename: bionic eric@ericdesktop:~$ ls -l Cool-Retro-Term-1.1.1-x86_64.AppImage -rwxrwxr-x 1 eric eric 34430664 Jan 19 2019 Cool-Retro-Term-1.1.1-x86_64.AppImage Linux version 5.3.12-050312-generic (kernel@tangerine) (gcc version 9.2.1 20191109 (Ubuntu 9.2.1-19ubuntu1)) #201911201137 SMP Wed Nov 20 16:39:42 UTC 2019 eric@ericdesktop:~$ inxi -C CPU: 6 core AMD Ryzen 5 2600 Six-Core (-MT-MCP-) cache: 3072 KB clock speeds: max: 3400 MHz 1: 1504 MHz 2: 1409 MHz 3: 1379 MHz 4: 1383 MHz 5: 1425 MHz 6: 1408 MHz 7: 2014 MHz 8: 2025 MHz 9: 1492 MHz 10: 1408 MHz 11: 1306 MHz 12: 1362 MHz eric@ericdesktop:~$ glxinfo | egrep -i 'device|memory' Device: Radeon RX 580 Series (POLARIS10, DRM 3.33.0, 5.3.12-050312-generic, LLVM 9.0.0) (0x67df) Video memory: 4096MB Unified memory: no Memory info (GL_ATI_meminfo): VBO free memory - total: 3848 MB, largest block: 3848 MB VBO free aux. memory - total: 4020 MB, largest block: 4020 MB Texture free memory - total: 3848 MB, largest block: 3848 MB Texture free aux. memory - total: 4020 MB, largest block: 4020 MB Renderbuffer free memory - total: 3848 MB, largest block: 3848 MB Renderbuffer free aux. memory - total: 4020 MB, largest block: 4020 MB Memory info (GL_NVX_gpu_memory_info): Dedicated video memory: 4096 MB Total available memory: 8192 MB Currently available dedicated video memory: 3848 MB GL_AMD_performance_monitor, GL_AMD_pinned_memory, GL_EXT_framebuffer_object, GL_EXT_framebuffer_sRGB, GL_EXT_memory_object, GL_EXT_memory_object_fd, GL_EXT_packed_depth_stencil, GL_EXT_packed_float, GL_NVX_gpu_memory_info, GL_NV_conditional_render, GL_NV_depth_clamp, GL_AMD_pinned_memory, GL_AMD_query_buffer_object, GL_EXT_gpu_shader4, GL_EXT_memory_object, GL_EXT_memory_object_fd, GL_MESA_window_pos, GL_NVX_gpu_memory_info, GL_NV_blend_square, GL_EXT_memory_object, GL_EXT_memory_object_fd, GL_EXT_multi_draw_arrays, eric@ericdesktop:~$ ./Cool-Retro-Term-1.1.1-x86_64.AppImage QApplication: invalid style override passed, ignoring it. default KB_LAYOUT_DIR: "/tmp/.mount_Cool-RQltnBB/usr/qml/QMLTermWidget/kb-layouts" QObject::connect: No such slot Konsole::TerminalDisplay_QML_149::close() loadAllColorSchemes Both point size and pixel size set. Using pixel size. Using a variable-width font in the terminal. This may cause performance degradation and display/alignment errors. Using a variable-width font in the terminal. This may cause performance degradation and display/alignment errors. Using a variable-width font in the terminal. This may cause performance degradation and display/alignment errors. Using a variable-width font in the terminal. This may cause performance degradation and display/alignment errors. Using a variable-width font in the terminal. This may cause performance degradation and display/alignment errors. corrupted size vs. prev_size Aborted (core dumped) eric@ericdesktop:~$ ./Cool-Retro-Term-1.1.1-x86_64.AppImage QApplication: invalid style override passed, ignoring it. default KB_LAYOUT_DIR: "/tmp/.mount_Cool-ReJcI76/usr/qml/QMLTermWidget/kb-layouts" QObject::connect: No such slot Konsole::TerminalDisplay_QML_150::close() loadAllColorSchemes Both point size and pixel size set. Using pixel size. Using a variable-width font in the terminal. This may cause performance degradation and display/alignment errors. Using a variable-width font in the terminal. This may cause performance degradation and display/alignment errors. Using a variable-width font in the terminal. This may cause performance degradation and display/alignment errors. Using a variable-width font in the terminal. This may cause performance degradation and display/alignment errors. Segmentation fault (core dumped) eric@ericdesktop:~$ ./Cool-Retro-Term-1.1.1-x86_64.AppImage QApplication: invalid style override passed, ignoring it. default KB_LAYOUT_DIR: "/tmp/.mount_Cool-RqveFut/usr/qml/QMLTermWidget/kb-layouts" QObject::connect: No such slot Konsole::TerminalDisplay_QML_68::close() loadAllColorSchemes Both point size and pixel size set. Using pixel size. Segmentation fault (core dumped)
pandruszkow commented 2020-01-14 18:28:59 +01:00 (Migrated from github.com)

I'm seeing this too.

$ lsb_release -a:

No LSB modules are available.                                                              
Distributor ID: Ubuntu                                                                     
Description:    Ubuntu 18.04.3 LTS                                                         
Release:        18.04                                                                      
Codename:       bionic

I'm running CRT in software rendering mode, on VcXsrv (Windows 10), via SSH X11 forwarding.

I can reproduce this crash by unticking the "Glow line" setting within settings.

Strangely, this issue does not occur when I drag the slider for this setting all the way to zero, which causes the box to untick itself but no crash occurs.

I'm seeing this too. `$ lsb_release -a`: ``` No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.3 LTS Release: 18.04 Codename: bionic ``` I'm running CRT in software rendering mode, on VcXsrv (Windows 10), via SSH X11 forwarding. I can reproduce this crash by unticking the "Glow line" setting within settings. Strangely, this issue does not occur when I drag the slider for this setting all the way to zero, which causes the box to untick itself but no crash occurs.
JM2707 commented 2020-05-26 11:15:28 +02:00 (Migrated from github.com)

I also have the same error. Running with gdb, the error occurs freeing memory:

Thread 1 "AppRun" received signal SIGSEGV, Segmentation fault.
__GI___libc_free (mem=0x10000000c) at malloc.c:3093.
3093    malloc.c: No such file or directory.

uname -a output: Linux 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2 (2020-04-29) x86_64 GNU/Linux

I also have the same error. Running with gdb, the error occurs freeing memory: ``` Thread 1 "AppRun" received signal SIGSEGV, Segmentation fault. __GI___libc_free (mem=0x10000000c) at malloc.c:3093. 3093 malloc.c: No such file or directory. ``` `uname -a` output: `Linux 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2 (2020-04-29) x86_64 GNU/Linux`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: seeseemelk/cool-retro-term#565
No description provided.