Bug: App crashes with a segfault when connecting to any SSH server.
Log output:
[18:00:00] [INFO] connect_to_server: homead@10.10.0.83:22 (key=none, saved_pw=yes)
(x3-ssh:204670): GLib-GObject-CRITICAL **: 18:00:00.012: ../glib-2.88.2/gobject/gsignal.c:2572: signal 'size-changed' is invalid for instance '0x55e254faeb10' of type 'VteTerminal'
[18:00:00] [INFO] Connecting to 10.10.0.83:22 as homead ...
Speicherzugriffsfehler x3-ssh
Root cause:g_signal_connect(terminal_, "size-changed", ...) uses a signal that does not exist in VTE 2.91. This causes a GLib critical warning followed by a segfault when the IO thread attempts to use the terminal.
Fix: Replaced the VTE size-changed signal with GTK's size-allocate signal on the terminal widget:
// Before (broken):
g_signal_connect(terminal_,"size-changed",G_CALLBACK(on_size_changed),this);// After (fixed):
g_signal_connect(terminal_,"size-allocate",G_CALLBACK(on_size_changed),this);
The callback was also updated to extract columns/rows from the terminal using vte_terminal_get_column_count() / vte_terminal_get_row_count() instead of receiving them as signal parameters.
**Bug:** App crashes with a segfault when connecting to any SSH server.
**Log output:**
```
[18:00:00] [INFO] connect_to_server: homead@10.10.0.83:22 (key=none, saved_pw=yes)
(x3-ssh:204670): GLib-GObject-CRITICAL **: 18:00:00.012: ../glib-2.88.2/gobject/gsignal.c:2572: signal 'size-changed' is invalid for instance '0x55e254faeb10' of type 'VteTerminal'
[18:00:00] [INFO] Connecting to 10.10.0.83:22 as homead ...
Speicherzugriffsfehler x3-ssh
```
**Root cause:** `g_signal_connect(terminal_, "size-changed", ...)` uses a signal that does not exist in VTE 2.91. This causes a GLib critical warning followed by a segfault when the IO thread attempts to use the terminal.
**Fix:** Replaced the VTE `size-changed` signal with GTK's `size-allocate` signal on the terminal widget:
```cpp
// Before (broken):
g_signal_connect(terminal_, "size-changed", G_CALLBACK(on_size_changed), this);
// After (fixed):
g_signal_connect(terminal_, "size-allocate", G_CALLBACK(on_size_changed), this);
```
The callback was also updated to extract columns/rows from the terminal using `vte_terminal_get_column_count()` / `vte_terminal_get_row_count()` instead of receiving them as signal parameters.
**Status:** Fixed in commit d857260
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Bug: App crashes with a segfault when connecting to any SSH server.
Log output:
Root cause:
g_signal_connect(terminal_, "size-changed", ...)uses a signal that does not exist in VTE 2.91. This causes a GLib critical warning followed by a segfault when the IO thread attempts to use the terminal.Fix: Replaced the VTE
size-changedsignal with GTK'ssize-allocatesignal on the terminal widget:The callback was also updated to extract columns/rows from the terminal using
vte_terminal_get_column_count()/vte_terminal_get_row_count()instead of receiving them as signal parameters.Status: Fixed in commit
d857260