limads / queries

Queries is a workbench to interact with relational databases, with initial support for Postgres.
GNU General Public License v3.0
50 stars 3 forks source link

thread 'main' panicked at 'assertion failed: `(left == right)` #7

Open almereyda opened 1 year ago

almereyda commented 1 year ago

When choosing to save an Untitled script by pressing Ctrl + S, but then choosing not to save by pressing Esc, and ultimately choosing to store the script with Ctrl + S, a reproducible crash occurs in v1.5.0:

thread 'main' panicked at 'assertion failed: `(left == right)`
  left: `true`,
 right: `false`', /run/build/Queries/deps/gtk4/src/auto/file_chooser.rs:323:13
stack backtrace:
   0:     0x55b177549980 - <unknown>
   1:     0x55b17756daae - <unknown>
   2:     0x55b177544f55 - <unknown>
   3:     0x55b17754b1b3 - <unknown>
   4:     0x55b17754ae9f - <unknown>
   5:     0x55b17754b85a - <unknown>
   6:     0x55b17754b757 - <unknown>
   7:     0x55b177549e2c - <unknown>
   8:     0x55b17754b472 - <unknown>
   9:     0x55b177152d93 - <unknown>
  10:     0x55b17756b4cb - <unknown>
  11:     0x55b1771441eb - <unknown>
  12:     0x55b17731e92f - <unknown>
  13:     0x55b1774fe424 - <unknown>
  14:     0x55b1774f5875 - <unknown>
  15:     0x7f473772e681 - g_main_context_dispatch
  16:     0x7f473772ebd8 - <unknown>
  17:     0x7f473772ec73 - g_main_context_iteration
  18:     0x7f4737971bad - g_application_run
  19:     0x55b177158d25 - <unknown>
  20:     0x55b17715b347 - <unknown>
  21:     0x55b1771541a3 - <unknown>
  22:     0x55b1771541b9 - <unknown>
  23:     0x55b177540a3f - <unknown>
  24:     0x55b17715bc38 - <unknown>
  25:     0x7f473722954a - <unknown>
  26:     0x7f473722960b - __libc_start_main
  27:     0x55b1771530c5 - <unknown>
  28:                0x0 - <unknown>
limads commented 1 year ago

Hi @almereyda, thanks for reporting the bug. I was able to reproduce and fix it here. This seems to be an undocumented panic from the gio crate I was unaware. The fix will be available at the next release.

Best,