GNOME Bugzilla – Bug 687230
Segmentation fault on HexTextBuffer.vala with valac 0.14
Last modified: 2013-09-08 12:55:31 UTC
Created attachment 227692 [details] Fixes segmentation fault on HexTextBuffer with valac 0.14 On Ubuntu 12.04 with valac HexTextBuffer segs. fault due to invalidation on TexIter objects. It seems that after insert or delete operations TexIter objects are lots. I have found a solution by recovering these objects (see attached file). As I'm not an expert on Vala or GTK programming I don't know if this solution is optimal or not, but at least it works.
Thanks for your patch, and sorry for the delay in replying! Can you test the version in git master to see if it works on your system now? - Mike
(In reply to comment #1) > Thanks for your patch, and sorry for the delay in replying! > > Can you test the version in git master to see if it works on your system now? > > - Mike Hi. I've downloaded the master but there is no 'gnome-autogen.sh': $ ./autogen.sh it fails with: $ ./autogen.sh: 9: .: gnome-autogen.sh: not found
I'm not sure which package provides that in Ubuntu (I run Fedora). Try: sudo apt-get install gnome-common
Oops. Sorry about that, I didn't know gnome-autogen.sh was included in standard packages. You were right, it was in gnome-common. Anyway, after installing the script moserial compiles and works nicely. Good work! Thanks for committing the patch. Best Regards. (In reply to comment #3) > I'm not sure which package provides that in Ubuntu (I run Fedora). > > Try: > > sudo apt-get install gnome-common
Thanks for testing! I'll probably modify it a bit... it doesn't work well if you click inside the text box. Some of the insertion points are referenced to the cursor position, which the user can change. - Mike
I made changes like this: - this.get_iter_at_offset(out nextCharIter, this.cursor_position); + this.get_end_iter (out nextCharIter); It should be OK now.
That's undoubtedly a better way to do it. I've compiled it and works ok. (In reply to comment #6) > I made changes like this: > > - this.get_iter_at_offset(out nextCharIter, this.cursor_position); > + this.get_end_iter (out nextCharIter); > > It should be OK now.
*** Bug 703219 has been marked as a duplicate of this bug. ***
*** Bug 707714 has been marked as a duplicate of this bug. ***