Hi. I'm using moserial-3.0.1 on Ubuntu 12.04. After some debugging I've found the problem. Attached is the file 'HexTextBuffer.vala' (not a patch) with the problem solved (at least it works for me).
The problem is that in GTK/Vala TextBuffer's insert and delete operations the TextIter objects become invalidated. This effectively means that, as far as I know, after an insert or delete all TextIter are lost. My solution has been to recover these lost Textiter objects by calling either get_iter_at_offset or get_iter_at_mark followed with a forward_chars. I'm not an expert on Vala or GTK programming, so it is quite possible a nice and better solution exists. Meanwhile at least we can get moserial back to work. ** Attachment added: "Fix segmentation fault due to TextIter invalidations." https://bugs.launchpad.net/ubuntu/+source/moserial/+bug/893939/+attachment/3419100/+files/HexTextBuffer.vala -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/893939 Title: moserial 3.01 crashes upon clicking "Connect" to a ttyUSB port To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/moserial/+bug/893939/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
