[Github-comments] [geany/geany] [Bug] Geany sometimes launches files in a new window, after external monitor disconnected/reconnected (#2555)

alexnerd123 notifications at xxxxx
Wed Aug 12 20:05:23 UTC 2020


Looks like we may have gotten lucky. I had geany running inside of gdb, inside of powershell. I docked and undocked several times. I see this error from the geany -v output
```
**
Gdk:ERROR:../../../gtk+-2.24.32/gdk/win32/gdkdisplay-win32.c:85:enum_monitor: assertion failed: (*index < _gdk_num_monitors)
```
and this is the full gdb. Its interesting, when it crashed, it somehow backfed my dummy python as if it were GDB commands..... I have no idea how that happened, but I broke out of it (ctrl C) and ran the "bt" command
```
PS C:\Program Files (x86)\Geany\bin> c:\mingw\bin\gdb.exe .\geany.exe
GNU gdb (GDB) 7.6.1
Copyright (C) 2013 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 "mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from C:\Program Files (x86)\Geany\bin\geany.exe...(no debugging symbols found)...done.
(gdb) run -v
Starting program: C:\Program Files (x86)\Geany\bin/.\geany.exe -v
[New Thread 99808.0x15a08]
[New Thread 99808.0x1632c]
[New Thread 99808.0x12044]
[New Thread 99808.0x18b78]
[New Thread 99808.0x17568]
[New Thread 99808.0x182e4]
[New Thread 99808.0xebb4]
warning: Invalid parameter passed to C runtime function.

[New Thread 99808.0x1288c]
[New Thread 99808.0x17a48]
[New Thread 99808.0x12dc8]

Program received signal SIGTRAP, Trace/breakpoint trap.
0x76caacc3 in KERNELBASE!DebugBreak () from C:\windows\SysWOW64\KernelBase.dll
(gdb) import time
Undefined command: "import".  Try "help".
(gdb) while True:
 >print "foo"
 >time.sleep(5)
 >import time
 >while True:
  >print "foo"
  >time.sleep(5)
  >
  >
  >
  >
  >
  >st
  >Quit (expect signal SIGINT when the program is resumed)
(gdb) st
Ambiguous command "st": stack, start, status, step, stepi, stepping, stop, strace.
(gdb) bt
#0  0x76caacc3 in KERNELBASE!DebugBreak () from C:\windows\SysWOW64\KernelBase.dll
#1  0x599e8a49 in ?? () from C:\Program Files (x86)\Geany\bin\libglib-2.0-0.dll
#2  0x599da052 in ?? () from C:\Program Files (x86)\Geany\bin\libglib-2.0-0.dll
#3  0x599da0b6 in ?? () from C:\Program Files (x86)\Geany\bin\libglib-2.0-0.dll
#4  0x6c56ecb7 in ?? () from C:\Program Files (x86)\Geany\bin\libgdk-win32-2.0-0.dll
#5  0x73fbb5bb in USER32!GetDpiForMonitorInternal () from C:\windows\SysWOW64\user32.dll
#6  0x76f2cd3d in ?? ()
#7  0x004d026c in ?? ()
(gdb)
```

All the thread starts and the invalid parameter were at startup, and the SIGTRAP and below is the crash

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2555#issuecomment-673083422
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20200812/33c6f90a/attachment.htm>


More information about the Github-comments mailing list