mate-desktop / mate-applets

Applets for use with the MATE panel
http://www.mate-desktop.org
GNU General Public License v2.0
79 stars 67 forks source link

After update to 1.28 Sticky Notes stopped working #668

Open kotoyants opened 3 months ago

kotoyants commented 3 months ago

Expected behaviour

New note windows when double-clicking icon or using menu

Actual behaviour

Nothing happens, error in journal


stickynotes-app[227298]: gtk_window_set_decorated: assertion 'GTK_IS_WINDOW (window)' failed
stickynotes-app[227298]: gtk_window_set_skip_taskbar_hint: assertion 'GTK_IS_WINDOW (window)' failed
stickynotes-app[227298]: gtk_window_set_skip_pager_hint: assertion 'GTK_IS_WINDOW (window)' failed
stickynotes-app[227298]: gtk_widget_add_events: assertion 'GTK_IS_WIDGET (widget)' failed
stickynotes-app[227298]: gtk_widget_add_events: assertion 'GTK_IS_WIDGET (widget)' failed
stickynotes-app[227298]: gtk_text_view_get_buffer: assertion 'GTK_IS_TEXT_VIEW (text_view)' failed
stickynotes-app[227298]: gtk_widget_add_events: assertion 'GTK_IS_WIDGET (widget)' failed
stickynotes-app[227298]: gtk_widget_add_events: assertion 'GTK_IS_WIDGET (widget)' failed
stickynotes-app[227298]: gtk_widget_add_events: assertion 'GTK_IS_WIDGET (widget)' failed
stickynotes-app[227298]: gtk_widget_set_direction: assertion 'GTK_IS_WIDGET (widget)' failed
stickynotes-app[227298]: gtk_window_stick: assertion 'GTK_IS_WINDOW (window)' failed
stickynotes-app[227298]: gtk_window_resize: assertion 'GTK_IS_WINDOW (window)' failed
stickynotes-app[227298]: gtk_image_set_from_icon_name: assertion 'GTK_IS_IMAGE (image)' failed
stickynotes-app[227298]: gtk_image_set_pixel_size: assertion 'GTK_IS_IMAGE (image)' failed
stickynotes-app[227298]: gtk_image_set_from_icon_name: assertion 'GTK_IS_IMAGE (image)' failed
stickynotes-app[227298]: gtk_image_set_pixel_size: assertion 'GTK_IS_IMAGE (image)' failed
stickynotes-app[227298]: gtk_image_set_from_icon_name: assertion 'GTK_IS_IMAGE (image)' failed
stickynotes-app[227298]: gtk_image_set_pixel_size: assertion 'GTK_IS_IMAGE (image)' failed
stickynotes-app[227298]: gtk_widget_show: assertion 'GTK_IS_WIDGET (widget)' failed
stickynotes-app[227298]: gtk_widget_show: assertion 'GTK_IS_WIDGET (widget)' failed
stickynotes-app[227298]: gtk_widget_show: assertion 'GTK_IS_WIDGET (widget)' failed
stickynotes-app[227298]: gtk_window_set_title: assertion 'GTK_IS_WINDOW (window)' failed
stickynotes-app[227298]: gtk_label_set_text: assertion 'GTK_IS_LABEL (label)' failed
stickynotes-app[227298]: gtk_widget_override_background_color: assertion 'GTK_IS_WIDGET (widget)' failed
stickynotes-app[227298]: gtk_widget_override_background_color: assertion 'GTK_IS_WIDGET (widget)' failed
stickynotes-app[227298]: gtk_widget_override_background_color: assertion 'GTK_IS_WIDGET (widget)' failed
stickynotes-app[227298]: gtk_widget_override_background_color: assertion 'GTK_IS_WIDGET (widget)' failed
stickynotes-app[227298]: gtk_widget_override_background_color: assertion 'GTK_IS_WIDGET (widget)' failed
stickynotes-app[227298]: gtk_widget_override_background_color: assertion 'GTK_IS_WIDGET (widget)' failed
stickynotes-app[227298]: gtk_widget_override_color: assertion 'GTK_IS_WIDGET (widget)' failed
stickynotes-app[227298]: gtk_widget_override_color: assertion 'GTK_IS_WIDGET (widget)' failed
stickynotes-app[227298]: gtk_widget_override_font: assertion 'GTK_IS_WIDGET (widget)' failed
stickynotes-app[227298]: gtk_widget_override_font: assertion 'GTK_IS_WIDGET (widget)' failed
stickynotes-app[227298]: gtk_text_view_set_editable: assertion 'GTK_IS_TEXT_VIEW (text_view)' failed
stickynotes-app[227298]: gtk_text_view_set_cursor_visible: assertion 'GTK_IS_TEXT_VIEW (text_view)' failed
stickynotes-app[227298]: gtk_image_set_from_icon_name: assertion 'GTK_IS_IMAGE (image)' failed
stickynotes-app[227298]: gtk_widget_set_tooltip_text: assertion 'GTK_IS_WIDGET (widget)' failed
stickynotes-app[227298]: gtk_image_set_pixel_size: assertion 'GTK_IS_IMAGE (image)' failed
stickynotes-app[227298]: gtk_check_menu_item_set_active: assertion 'GTK_IS_CHECK_MENU_ITEM (check_menu_item)' failed
stickynotes-app[227298]: gtk_widget_realize: assertion 'GTK_IS_WIDGET (widget)' failed
stickynotes-app[227298]: g_object_ref: assertion 'G_IS_OBJECT (object)' failed
stickynotes-app[227298]: invalid (NULL) pointer instance
stickynotes-app[227298]: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
stickynotes-app[227298]: invalid (NULL) pointer instance
stickynotes-app[227298]: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
stickynotes-app[227298]: invalid (NULL) pointer instance
stickynotes-app[227298]: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
stickynotes-app[227298]: invalid (NULL) pointer instance
stickynotes-app[227298]: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
stickynotes-app[227298]: invalid (NULL) pointer instance
stickynotes-app[227298]: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
stickynotes-app[227298]: invalid (NULL) pointer instance
stickynotes-app[227298]: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
stickynotes-app[227298]: invalid (NULL) pointer instance
stickynotes-app[227298]: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
stickynotes-app[227298]: invalid (NULL) pointer instance
stickynotes-app[227298]: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
stickynotes-app[227298]: invalid (NULL) pointer instance
stickynotes-app[227298]: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
stickynotes-app[227298]: invalid (NULL) pointer instance
stickynotes-app[227298]: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
stickynotes-app[227298]: invalid (NULL) pointer instance
stickynotes-app[227298]: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
stickynotes-app[227298]: invalid (NULL) pointer instance
stickynotes-app[227298]: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
stickynotes-app[227298]: invalid (NULL) pointer instance
stickynotes-app[227298]: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
stickynotes-app[227298]: invalid (NULL) pointer instance
stickynotes-app[227298]: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
stickynotes-app[227298]: invalid (NULL) pointer instance
stickynotes-app[227298]: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
stickynotes-app[227298]: invalid (NULL) pointer instance
stickynotes-app[227298]: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
stickynotes-app[227298]: invalid (NULL) pointer instance
stickynotes-app[227298]: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
stickynotes-app[227298]: invalid (NULL) pointer instance
stickynotes-app[227298]: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
stickynotes-app[227298]: gtk_text_view_get_buffer: assertion 'GTK_IS_TEXT_VIEW (text_view)' failed
stickynotes-app[227298]: invalid (NULL) pointer instance
stickynotes-app[227298]: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
stickynotes-app[227298]: gtk_window_present_with_time: assertion 'GTK_IS_WINDOW (window)' failed
stickynotes-app[227298]: gtk_window_stick: assertion 'GTK_IS_WINDOW (window)' failed```

#### Steps to reproduce the behaviour
Update mate-applets to 1.28

#### MATE general version
1.28

#### Package version
1.28

#### Linux Distribution
Arch Linux
lukefromdc commented 3 months ago

Do you have mate-applets build in-process (can be used in wayland) or out of process? If in-process you might have found a bug in the new part of the code that does not show up on Debian Unstable (on which I wrote that code.) Looks like you are getting a failure to create the window for a note or a failure to create the overall structure, or an attempt to read from it before its all the way set up.

kotoyants commented 3 months ago

I am not sure about mate-applets build in-process or out process, how to check it? I can found applet process using ps: none 227298 780 0 17:53 ? 00:00:02 \_ /usr/lib/mate-applets/stickynotes-applet

lukefromdc commented 3 months ago

Look in the package you installed mate-applets from. If you have libmate-stickynotes.so mate-applets was built in-process and can be used in both x11 and wayland (the reason for this option). If you have an executable named just stickynotes-applet you have mate-applets built out of process.

kotoyants commented 3 months ago

Can't find any .so files in package

pacman -Qlp mate-applets-1.28.0-1-x86_64.pkg.tar.zst|grep stickynotes|grep -v -e '/usr/share/locale' -e '/usr/share/icons' -e '/usr/share/help'
mate-applets /usr/lib/mate-applets/stickynotes-applet
mate-applets /usr/share/glib-2.0/schemas/org.mate.stickynotes.gschema.xml
mate-applets /usr/share/mate-applets/icons/hicolor/48x48/apps/stickynotes-stock-close.png
mate-applets /usr/share/mate-applets/icons/hicolor/48x48/apps/stickynotes-stock-locked.png
mate-applets /usr/share/mate-applets/icons/hicolor/48x48/apps/stickynotes-stock-resize-se.png
mate-applets /usr/share/mate-applets/icons/hicolor/48x48/apps/stickynotes-stock-resize-sw.png
mate-applets /usr/share/mate-applets/icons/hicolor/48x48/apps/stickynotes-stock-unlocked.png
lukefromdc commented 3 months ago

That means you have mate-applets built out of process, and that this may be a reappearance of a prior issue that gave similar errors with stickynotes

tari01 commented 2 months ago

I can confirm the above on Manjaro MATE, just updated to 1.28. I have several sticky notes on the desktop and the applet in my panel. None of these show up as the applet crashes just as the panel is loaded.

lukefromdc commented 2 months ago

Same issue at

https://github.com/mate-desktop/mate-applets/issues/664#issuecomment-2105522331 includes this report at the bottom: PS: replacing GtkSourceBuffer with GtkTextBuffer and GtkSourceView with GtkTextView in sticky-notes-note.ui and removing the max_undo_levels property makes the applet work again.