[Github-comments] [geany/geany-plugins] Immediate breakages from overview plugin (Issue #1149)

nick87720z notifications at xxxxx
Tue Dec 28 12:44:32 UTC 2021


I decided to better analyze breakages, caused by overview plugin. First attempt was in bug #730 , but primary indicator (assertion warning) disappeared, while breakages did not.

## Session files list

When some file is opened (without plugin), list of opened files is saved right in editor config.
```
[files]
...
FILE_NAME_0=719;Sh;0;EUTF-8;0;1;0;%2Fhome%2Fnick87720z%2Fdev%2Fmisc%2Ffdopenres;0;4
```
When overview plugin is loaded, last line (FILE_NAME_0=) just vanishes, so if editor is closed with active overview plugin, session is lost. But once overview is unloaded, this line appears immediately in config file.

## Editor keys

When overview is loaded, keys Home, End, Ctrl+S stop working. But arrows and Page Down / Page Up still work. I did not check all changes in editing keys though.

## Terminal output

I'm not sure if this is reason though, but now I have more exact logs of what when happens, comparing to #730 .
```
# Starting editor with enabled overview causes this
(geany:19031): Geany-CRITICAL **: 17:24:02.222: document_grab_focus: assertion 'doc != NULL' failed
```
Now there's only one empty document (remember - files list disappears from config just on plugin load).
```
# Attempt to close document while Overview is on, per each close request (even for same document - e.g. if closing manually)
(geany:19031): Geany-CRITICAL **: 17:24:37.353: remove_page: assertion 'doc != NULL' failed
# document still remains opened, closing doesn't work at all
```
Besides this (note - I removed empty lines to not waste space)
```
# Opening modules manager (may be not due to overview, but I got it during test). Appears on each attempt, not just first.

(geany:3988): Gtk-WARNING **: 17:22:53.980: Negative content width -9 (allocation 1, extents 5x5) while allocating gadget (node entry, owner GtkEntry)
(geany:3988): Gtk-WARNING **: 17:22:53.980: Negative content height -1 (allocation 1, extents 1x1) while allocating gadget (node entry, owner GtkEntry)
(geany:3988): Gtk-WARNING **: 17:22:53.980: Negative content width -1 (allocation 1, extents 1x1) while allocating gadget (node scrolledwindow, owner GtkScrolledWindow)
(geany:3988): Gtk-WARNING **: 17:22:53.980: Negative content height -1 (allocation 1, extents 1x1) while allocating gadget (node scrolledwindow, owner GtkScrolledWindow)
(geany:3988): Gtk-CRITICAL **: 17:22:53.980: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar
(geany:3988): Gtk-CRITICAL **: 17:22:53.980: gtk_widget_get_preferred_width_for_height: assertion 'height >= 0' failed
(geany:3988): Gtk-WARNING **: 17:22:53.980: gtk_widget_size_allocate(): attempt to allocate widget with width 10 and height -17
(geany:3988): Gtk-CRITICAL **: 17:22:53.980: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar

# Overview on/off causes no log
# As well as when modules manager is closed
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/1149
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany-plugins/issues/1149 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20211228/9b103f73/attachment.htm>


More information about the Github-comments mailing list