<p>+1 , same issue here that seems only started happening recently (I keep upgrading whenever there is a new version update :)</p>
<p>This happens when using Geany to open a loooong text file (like mine had 3MB+) and then if you do some search and/or copy/paste/cut operations.</p>
<p>Geany-INFO: /home/lylew/path/to/my/java/thread/dump/file.out : None (UTF-8)<br>
[New Thread 0x7fffd6e0d700 (LWP 17653)]<br>
[Thread 0x7fffd5e0b700 (LWP 17650) exited]</p>
<p>(geany:17597): Gdk-ERROR **: The program 'geany' received an X Window System error.<br>
This probably reflects a bug in the program.<br>
The error was 'BadWindow (invalid Window parameter)'.<br>
(Details: serial 24765 error_code 3 request_code 18 minor_code 0)<br>
(Note to programmers: normally, X errors are reported asynchronously;<br>
that is, you will receive the error a while after causing it.<br>
To debug your program, run it with the --sync command line<br>
option to change this behavior. You can then get a meaningful<br>
backtrace from your debugger if you break on the gdk_x_error() function.)</p>
<p>Thread 1 "geany" received signal SIGTRAP, Trace/breakpoint trap.<br>
0x00007ffff506aa31 in _g_log_abort () from /lib64/libglib-2.0.so.0<br>
Missing separate debuginfos, use: dnf debuginfo-install geany-1.30.1-1.fc25.x86_64<br>
(gdb) bt<br>
#0  0x00007ffff506aa31 in _g_log_abort () from /lib64/libglib-2.0.so.0<br>
<a href="https://github.com/geany/geany/pull/1" class="issue-link js-issue-link" data-url="https://github.com/geany/geany/issues/1" data-id="1860207" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">#1</a>  0x00007ffff506ba87 in g_log_default_handler () from /lib64/libglib-2.0.so.0<br>
<a href="https://github.com/geany/geany/pull/2" class="issue-link js-issue-link" data-url="https://github.com/geany/geany/issues/2" data-id="1869766" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">#2</a>  0x00007ffff79a252c in handler_log () from /lib64/libgeany.so.0<br>
<a href="https://github.com/geany/geany/pull/3" class="issue-link js-issue-link" data-url="https://github.com/geany/geany/issues/3" data-id="1870603" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">#3</a>  0x00007ffff506bd94 in g_logv () from /lib64/libglib-2.0.so.0<br>
<a href="https://github.com/geany/geany/pull/4" class="issue-link js-issue-link" data-url="https://github.com/geany/geany/issues/4" data-id="1883601" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">#4</a>  0x00007ffff506bf9f in g_log () from /lib64/libglib-2.0.so.0<br>
<a href="https://github.com/geany/geany/pull/5" class="issue-link js-issue-link" data-url="https://github.com/geany/geany/issues/5" data-id="1885233" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">#5</a>  0x00007ffff7053690 in gdk_x_error () from /lib64/libgdk-x11-2.0.so.0<br>
<a href="https://github.com/geany/geany/pull/6" class="issue-link js-issue-link" data-url="https://github.com/geany/geany/issues/6" data-id="1896596" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">#6</a>  0x00007ffff3e93ddd in _XError () from /lib64/libX11.so.6<br>
<a href="https://github.com/geany/geany/pull/7" class="issue-link js-issue-link" data-url="https://github.com/geany/geany/issues/7" data-id="1942910" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">#7</a>  0x00007ffff3e90d07 in handle_error () from /lib64/libX11.so.6<br>
<a href="https://github.com/geany/geany/pull/8" class="issue-link js-issue-link" data-url="https://github.com/geany/geany/issues/8" data-id="2025926" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">#8</a>  0x00007ffff3e90dc5 in handle_response () from /lib64/libX11.so.6<br>
<a href="https://github.com/geany/geany/pull/9" class="issue-link js-issue-link" data-url="https://github.com/geany/geany/issues/9" data-id="2064608" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">#9</a>  0x00007ffff3e916c5 in _XEventsQueued () from /lib64/libX11.so.6<br>
<a href="https://github.com/geany/geany/pull/10" class="issue-link js-issue-link" data-url="https://github.com/geany/geany/issues/10" data-id="2089194" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">#10</a> 0x00007ffff3e83397 in XPending () from /lib64/libX11.so.6<br>
<a href="https://github.com/geany/geany/pull/11" class="issue-link js-issue-link" data-url="https://github.com/geany/geany/issues/11" data-id="2137956" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">#11</a> 0x00007ffff704797e in gdk_event_check () from /lib64/libgdk-x11-2.0.so.0<br>
<a href="https://github.com/geany/geany/pull/12" class="issue-link js-issue-link" data-url="https://github.com/geany/geany/issues/12" data-id="2160253" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">#12</a> 0x00007ffff5064bc9 in g_main_context_check () from /lib64/libglib-2.0.so.0<br>
<a href="https://github.com/geany/geany/pull/13" class="issue-link js-issue-link" data-url="https://github.com/geany/geany/issues/13" data-id="2220852" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">#13</a> 0x00007ffff5065104 in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0<br>
<a href="https://github.com/geany/geany/pull/14" class="issue-link js-issue-link" data-url="https://github.com/geany/geany/issues/14" data-id="2327352" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">#14</a> 0x00007ffff50654f2 in g_main_loop_run () from /lib64/libglib-2.0.so.0<br>
<a href="https://github.com/geany/geany/pull/15" class="issue-link js-issue-link" data-url="https://github.com/geany/geany/issues/15" data-id="2395492" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">#15</a> 0x00007ffff73ed267 in gtk_main () from /lib64/libgtk-x11-2.0.so.0<br>
<a href="https://github.com/geany/geany/pull/16" class="issue-link js-issue-link" data-url="https://github.com/geany/geany/issues/16" data-id="2659893" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">#16</a> 0x00007ffff79a4227 in main_lib () from /lib64/libgeany.so.0<br>
<a href="https://github.com/geany/geany/pull/17" class="issue-link js-issue-link" data-url="https://github.com/geany/geany/issues/17" data-id="2684408" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">#17</a> 0x00007ffff4a57401 in __libc_start_main () from /lib64/libc.so.6<br>
<a href="https://github.com/geany/geany/pull/18" class="issue-link js-issue-link" data-url="https://github.com/geany/geany/issues/18" data-id="2762354" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">#18</a> 0x00005555555547ba in _start ()<br>
(gdb) quit<br>
A debugging session is active.</p>
<pre><code>    Inferior 1 [process 17597] will be killed.
</code></pre>
<p>Quit anyway? (y or n) y<br>
[lylew@localhost ~]$ geany -V<br>
geany 1.30.1 (built on 2017-03-19 with GTK 2.24.31, GLib 2.50.3)<br>
[lylew@localhost ~]$ uname -r<br>
4.11.5-200.fc25.x86_64<br>
[lylew@localhost ~]$ cat /proc/version<br>
Linux version 4.11.5-200.fc25.x86_64 (<a href="mailto:mockbuild@bkernel02.phx2.fedoraproject.org">mockbuild@bkernel02.phx2.fedoraproject.org</a>) (gcc version 6.3.1 20161221 (Red Hat 6.3.1-1) (GCC) ) <a href="https://github.com/geany/geany/pull/1" class="issue-link js-issue-link" data-url="https://github.com/geany/geany/issues/1" data-id="1860207" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">#1</a> SMP Wed Jun 14 17:17:29 UTC 2017</p>
<p>Thanks !</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/1042#issuecomment-309981733">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ9WSOl1ALAo1kx011_xyjt1-tAJUks5sGL8qgaJpZM4Ikinz">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJxpXCfy1Ktm0p09HqpJbccWTnAsPks5sGL8qgaJpZM4Ikinz.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/issues/1042#issuecomment-309981733"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"PERSON","message":"@lyle-wang in #1042: +1 , same issue here that seems only started happening recently (I keep upgrading whenever there is a new version update :)\r\n\r\nThis happens when using Geany to open a loooong text file (like mine had 3MB+) and then if you do some search and/or copy/paste/cut operations.\r\n\r\n\r\nGeany-INFO: /home/lylew/path/to/my/java/thread/dump/file.out : None (UTF-8)\r\n[New Thread 0x7fffd6e0d700 (LWP 17653)]\r\n[Thread 0x7fffd5e0b700 (LWP 17650) exited]\r\n\r\n(geany:17597): Gdk-ERROR **: The program 'geany' received an X Window System error.\r\nThis probably reflects a bug in the program.\r\nThe error was 'BadWindow (invalid Window parameter)'.\r\n  (Details: serial 24765 error_code 3 request_code 18 minor_code 0)\r\n  (Note to programmers: normally, X errors are reported asynchronously;\r\n   that is, you will receive the error a while after causing it.\r\n   To debug your program, run it with the --sync command line\r\n   option to change this behavior. You can then get a meaningful\r\n   backtrace from your debugger if you break on the gdk_x_error() function.)\r\n\r\nThread 1 \"geany\" received signal SIGTRAP, Trace/breakpoint trap.\r\n0x00007ffff506aa31 in _g_log_abort () from /lib64/libglib-2.0.so.0\r\nMissing separate debuginfos, use: dnf debuginfo-install geany-1.30.1-1.fc25.x86_64\r\n(gdb) bt\r\n#0  0x00007ffff506aa31 in _g_log_abort () from /lib64/libglib-2.0.so.0\r\n#1  0x00007ffff506ba87 in g_log_default_handler () from /lib64/libglib-2.0.so.0\r\n#2  0x00007ffff79a252c in handler_log () from /lib64/libgeany.so.0\r\n#3  0x00007ffff506bd94 in g_logv () from /lib64/libglib-2.0.so.0\r\n#4  0x00007ffff506bf9f in g_log () from /lib64/libglib-2.0.so.0\r\n#5  0x00007ffff7053690 in gdk_x_error () from /lib64/libgdk-x11-2.0.so.0\r\n#6  0x00007ffff3e93ddd in _XError () from /lib64/libX11.so.6\r\n#7  0x00007ffff3e90d07 in handle_error () from /lib64/libX11.so.6\r\n#8  0x00007ffff3e90dc5 in handle_response () from /lib64/libX11.so.6\r\n#9  0x00007ffff3e916c5 in _XEventsQueued () from /lib64/libX11.so.6\r\n#10 0x00007ffff3e83397 in XPending () from /lib64/libX11.so.6\r\n#11 0x00007ffff704797e in gdk_event_check () from /lib64/libgdk-x11-2.0.so.0\r\n#12 0x00007ffff5064bc9 in g_main_context_check () from /lib64/libglib-2.0.so.0\r\n#13 0x00007ffff5065104 in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0\r\n#14 0x00007ffff50654f2 in g_main_loop_run () from /lib64/libglib-2.0.so.0\r\n#15 0x00007ffff73ed267 in gtk_main () from /lib64/libgtk-x11-2.0.so.0\r\n#16 0x00007ffff79a4227 in main_lib () from /lib64/libgeany.so.0\r\n#17 0x00007ffff4a57401 in __libc_start_main () from /lib64/libc.so.6\r\n#18 0x00005555555547ba in _start ()\r\n(gdb) quit\r\nA debugging session is active.\r\n\r\n        Inferior 1 [process 17597] will be killed.\r\n\r\nQuit anyway? (y or n) y\r\n[lylew@localhost ~]$ geany -V\r\ngeany 1.30.1 (built on 2017-03-19 with GTK 2.24.31, GLib 2.50.3)\r\n[lylew@localhost ~]$ uname -r\r\n4.11.5-200.fc25.x86_64\r\n[lylew@localhost ~]$ cat /proc/version\r\nLinux version 4.11.5-200.fc25.x86_64 (mockbuild@bkernel02.phx2.fedoraproject.org) (gcc version 6.3.1 20161221 (Red Hat 6.3.1-1) (GCC) ) #1 SMP Wed Jun 14 17:17:29 UTC 2017\r\n\r\n\r\nThanks !"}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/1042#issuecomment-309981733"}}}</script>