I was suffering from a couple of flavors of this bug. It seems that in all cases callbacks for non-existant PageViews were getting triggered by signals related to Page updates. With the attached patch (against 3.4.2), I have not been able to reproduce any of those segfaults.
The patch does two things. In the BookView constructor, it does not try to add_cb existing pages until after the page_data hash has been initialized. Secondly, it adds a destructor for PageView that disconnects from all the Page signals that were connected to in the PageView constructor. Also, Book.clear() is changed to emit the cleared() signal before actually clearing the pages list structure. ** Patch added: "page_view_signal_lifetimes.diff" https://bugs.launchpad.net/ubuntu/+source/simple-scan/+bug/843361/+attachment/3216219/+files/page_view_signal_lifetimes.diff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to the bug report. https://bugs.launchpad.net/bugs/843361 Title: simple-scan crashed with SIGSEGV in g_closure_invoke() To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/simple-scan/+bug/843361/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs