-
Notifications
You must be signed in to change notification settings - Fork 469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
../../../gtk/gtktextbtree.c:4048: byte index off the end of the line #2580
Comments
Thanks for submitting the issue and a test document. |
Note that I'm running Lubuntu. Anyway, it is kind of a strange error. The only thing that comes to my mind, on the face of it, is that when I click on the image the app is trying to vector off and do something but, the link is a bad reference or something like that. I really don't want to dig in to the application as it must be quite complex. It has worked for many years for me and I'm not going to trash it because of this. If you can't reproduce it, perhaps the issue will just go away (after some updates, OS or whatever..) or maybe I can clean the db or mitigate the issue somehow.. Thanks in any case. |
I installed the flatpak version 1.2 on a live debian trixie persistent stick and it runs fine. So, I guess it's specific to the lubuntu build @@. Ok, my problem I guess (I know there's this push to Wayland going on and it's just not ready). Well, Thank you for the post. |
I have 64G main and 8G swap. I'll try building it from source code and see if that makes a difference and of course this is preliminary to putting it under the debugger. Well, there are so many variables these days. Is the vm you are running a container or an emulator? |
So, I was able to build it from code on the lubuntu build and run it under gdb. I had to hit Control-C after clicking on the image gdb ./build/cherrytree For help, type "help". This GDB supports auto-downloading debuginfo from the following URLs: |
Well, the GUI doesn't respond after clicking on the image, but, it doesn't hang the desktop. So, I can kill it from the console. This is an improvement. |
I guess virtualbox is sort of less than an emulator but more than a container.. ok, interesting |
I am guessing that the code in question is CtActions::link_clicked? Is this correct? I read a discussion about the speed of client vs server "when the client is faster than the server, blocking may halt completely the processing of the response content because the event handler does not return e.g.the client has overrun the event queue" - the solution in this case was to switch from a simple streaming model to a listener model designed to control the flow. |
But the image in your test document doesn't have any hyperlink defined, so the link clicked doesn't get called. |
yes, ok, attached.. |
So, if the link content reached the content test and was not a leak or a problem it would probably fall into the error clause wouldn't it? But, it isn't behaving that way.. It's just hanging and behaving like an I/O block. |
Thanks for attaching your config, I imported it, but nothing changed unfortunately.
and in particular
|
Version, Operating system
State the Version and the Operating System/Desktop. Try the latest available version before reporting an issue.
1.1.2+sfsg-1 (oracular) Ubuntu 24.10/LXQT-Openbox, 1.2.0 (AppImage) Ubuntu 24.10/LXQT-Openbox
Describe the bug
Clicked on an image and mouse/keyboard froze, temperature of cpu increased by 20 degrees C to 59 or so, I could not kill cherrytree from the console. I had to sign on from another system remotely and kill it. Then the error messages appeared:
Gtk-WARNING **: 10:54:49.663: ../../../gtk/gtktextbtree.c:4048: byte index off the end of the line
Gtk-ERROR **: 10:54:49.663: Byte index 1 is off the end of the line
Trace/breakpoint trap (core dumped)
Both versions behaved the same way.
To Reproduce
Open the attached db, click on the Image with the pinout diagrams of black and blue usb 3 connectors, cherrytree freezes on my system.
Unfortunately I can not give you my full database. The test database has approximately the same problem but, only cherrytree freezes, not the mouse and keyboard. Perhaps this error causes worse behavior as the database increases in size? My full db is 22 MB whereas the test db is 4.5 MB. My guess is, if you can reproduce the freeze and debug it, then the larger db will behave properly also.
CT_Freeze_100824.zip
The text was updated successfully, but these errors were encountered: