techee left a comment (geany/geany#4348)

I think what might be going on is something like this (and, please, take it 
with a great degree of uncertainty): 

The overview plugin registers the `"document-new"` signal handler in which it 
calls

https://github.com/geany/geany-plugins/blob/b489bac003005b1381a2bacd33616e74fc8d2873/overview/overview/overviewui.c#L80

Here it removes the scintilla object from the view hierarchy and re-inserts it 
into a container. I don't know GTK much but I guess it unrealizes the scintilla 
widget (if it's realized) which then has to be realized again - this is why 
there's one extra `realize()` when `editor_goto_pos()` is called before 
`"document-new"` is fired.

At this point I think there's some problem with the `GtkIMContext` which 
Scintilla destroys in `unrealize()` and re-creates in `realize()`. I guess that 
ibus points to this destroyed context and crashes because of that - but I can't 
say how exactly this happens or if it's really that way.



-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/4348#issuecomment-3006200560
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/pull/4348/[email protected]>

Reply via email to