Open richwein3 opened 1 year ago
I can add one more thing, here is output when I run cherrytree from a terminal window.
(cherrytree:19816): Gtk-ERROR **: 08:07:16.539: Byte index 0 is off the end of the line Trace/breakpoint trap (core dumped)
That looks interesting.
Now, I don't think this has anything to do with screen capture or paste from clipboard. Even a file image I inserted using insert image caused the problem. The image inserts properly, and as long as I don't click (select) the image everything works.
Here I used an older version AppImage run from a terminal, and I get the same lockup issue and you can see where I exit using ^C . I see some messages that I don't understand that might be relevant.
rich@x:~/Desktop$ ./CherryTree-0.99.55-x86-64.AppImage /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so: undefined symbol: g_task_set_static_name Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so Gtk-Message: 08:42:06.915: Failed to load module "appmenu-gtk-module" [2023-08-12 08:42:06.963] [ ] [debug] /home/rich/.config/cherrytree/config.cfg parsed [2023-08-12 08:42:07.107] [ ] [debug] autosave is started [2023-08-12 08:42:07.196] [ ] [debug] Node name: test [2023-08-12 08:42:32.228] [gtk] [warning] atk-bridge: get_device_events_reply: unknown signature [2023-08-12 08:43:07.495] [ ] [debug] autosave no need [2023-08-12 08:44:07.495] [ ] [debug] autosave no need ^C[2023-08-12 08:45:23.459] [ ] [debug] kill_callback_handler 2
(AppRun.wrapped:34994): Gtk-ERROR **: 08:45:23.483: Byte index 0 is off the end of the line Trace/breakpoint trap (core dumped) rich@x:~/Desktop$
There is a Cherrytree bug, but under a specific Ubuntu Desktop.
Ubuntu 23.04 offers 5 desktop environment choices, CNOME Flashback(Metacity), LXQT Desktop, Plasma (X11), Ubuntu, Ubuntu on Xorg. I was using Ubuntu on Xorg and Cherrytree has this problem with Ubuntu on Xorg Desktop. The standard is the 'Ubuntu' choice, and this Cherrytree issue works with that choice.
The reason I had changed from the detault Ubuntu desktop is that my 'rednotebook' app will not run under that DE. I'll have to troubleshoot that.
Now when I run cherrytree it does work properly with images, but I get this on the terminal. Included if interesting. Some of that doesn't look quite right but I'll ignore it.
$ cherrytree [2023-08-12 10:06:00.678] [ ] [debug] /home/rich/.config/cherrytree/config.cfg parsed [2023-08-12 10:06:00.747] [ ] [debug] autosave is started [2023-08-12 10:06:00.757] [gtk] [critical] gtk_wayland_window_get_window_data: assertion 'GTK_IS_APPLICATION(application)' failed [2023-08-12 10:06:00.818] [gtk] [critical] gtk_wayland_window_get_window_data: assertion 'GTK_IS_APPLICATION(application)' failed [2023-08-12 10:06:00.831] [ ] [debug] Node name: test [2023-08-12 10:06:19.896] [ ] [debug] Node name: test [2023-08-12 10:06:25.733] [gtk] [critical] gdk_wayland_window_set_dbus_properties_libgtk_only: assertion 'GDK_IS_WAYLAND_WINDOW (window)' failed [2023-08-12 10:06:58.846] [gtk] [critical] gdk_wayland_window_set_dbus_properties_libgtk_only: assertion 'GDK_IS_WAYLAND_WINDOW (window)' failed [2023-08-12 10:06:58.862] [ ] [debug] shift images in MenuBar/context menu Gdk-Message: 10:06:58.864: Window 0x5610c4a94ad0 is a temporary window without parent, application will not be able to position it on screen. Gdk-Message: 10:06:58.866: Window 0x5610c4a94ad0 is a temporary window without parent, application will not be able to position it on screen. [2023-08-12 10:06:58.885] [gtk] [critical] gdk_wayland_window_handle_configure_popup: assertion 'impl->transient_for' failed [2023-08-12 10:07:01.494] [ ] [debug] autosave needed [2023-08-12 10:07:38.158] [gtk] [critical] gtk_wayland_window_get_window_data: assertion 'GTK_IS_APPLICATION(application)' failed rich@x:~$
Hi @richwein3 thanks for reporting this I'll have a go with Ubuntu 23.04, I guess it's not too difficult to switch between Xorg/Wayland
In the meantime if you would feel brave to build from source and paste here the crash backtrace that may be very helpful: https://github.com/giuspen/cherrytree#to-generate-a-backtrace-for-a-crash-bug-report
It turned out that this bug is related to a specific desktop environment. So, it is avoidable.
I did reproduce the warning today after a right click on the image with Wayland running, apparently not happy about the right click menu architecture somewhere, I will have a look in the evening or tomorrow
I should have fixed this, will be in upcoming 1.0.1
I just wanted to mention that 1.0.1 did not fix this issue.
I have a work around of choosing wayland at login. Funny thing is that I have another app I use that doesn't work on Wayland.
I have also tried the Appimage and it shows the same problem.
It is possible that this relates to something about my 23.04 Ubuntu installation but if had something to do with a bad lib then I would expect the appimage to resolve it. One thing about 23.04 is that when doing any python development you must use virtual environment since Ubuntu has gotten picky about using the OS python programs and libraries.
Again, any click of an existing image in CT freezes the app and once in a while the entire OS when using XORG desktop, but it all works fine under wayland.
Here some console output when I ran the AppImage from terminal. Couple of interesting lines on startup, but I don't know what it means.
Then I did not click an image, but I clicked a link which went to firefox.
`ch@x:~/Desktop$ ./CherryTree-1.0.1-x86_64.AppImage /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so: undefined symbol: g_task_set_static_name Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so Gtk-Message: 08:23:47.233: Failed to load module "appmenu-gtk-module" [2023-09-11 08:23:47.279] [ ] [debug] /home/rich/.config/cherrytree/config.cfg parsed [2023-09-11 08:23:47.419] [ ] [debug] autosave is started [2023-09-11 08:23:47.542] [ ] [debug] Node name: Pump, Raw Water Gtk-Message: 08:24:02.232: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it. Gtk-Message: 08:24:02.232: Failed to load module "appmenu-gtk-module"
(firefox:18788): Gtk-WARNING **: 08:24:02.262: Theme parsing error: gtk.css:2:21: Failed to import: Error opening file /home/rich/snap/firefox/3068/.config/gtk-3.0/colors.css: No such file or directory
(firefox:18788): Gtk-WARNING **: 08:24:02.286: GTK+ module /snap/firefox/3068/gnome-platform/usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so cannot be loaded. GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported. Gtk-Message: 08:24:02.286: Failed to load module "canberra-gtk-module"
(firefox:18788): Gtk-WARNING **: 08:24:02.288: GTK+ module /snap/firefox/3068/gnome-platform/usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so cannot be loaded. GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported. Gtk-Message: 08:24:02.288: Failed to load module "canberra-gtk-module" [2023-09-11 08:24:12.607] [gtk] [warning] atk-bridge: get_device_events_reply: unknown signature [2023-09-11 08:24:48.029] [ ] [debug] autosave no need
`
Solved several error messages that do not relate to the problem, I had some old OS libs that CT was using.
Some cleanup progress made, but still locks up on image select.
`rich@x:~/Desktop$ ./CherryTree101.AppImage Gtk-Message: 14:49:27.976: Failed to load module "appmenu-gtk-module" [2023-09-11 14:49:28.021] [ ] [debug] /home/rich/.config/cherrytree/config.cfg parsed [2023-09-11 14:49:28.154] [ ] [debug] autosave is started [2023-09-11 14:49:28.274] [ ] [debug] Node name: Pump, Raw Water [2023-09-11 14:49:53.341] [gtk] [warning] atk-bridge: get_device_events_reply: unknown signature
`
Ubuntu 23.04 CT Version 1.0.0.5
I see the same problem as described in an old bug report. https://github.com/giuspen/cherrytree/issues/1555
Using the screen capture (called Screenshot in Ubuntu ) and using a window select mode, I paste the image into cherry tree. It appears to past OK, and I think I can even insert lines above it or below it, bu CT seems to hang when I then select that pasted image which hangs, and the only option that works is Force Quit.
The old report was apparently resolved by installing again or a different version. I can try that. Does anyone know anything more about this ?