Author Topic: seg fault while closing blink window (1.8RC7, OSX 10.8.4)  (Read 3412 times)

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
this has happened to me a couple of times. i think i clicked the "close all" button while the blink animation was running.

it's not 100% repeatable. luckily i had PI running under GDB this time. PI crashed while it was raising the previously active window. crashed while animation was partially done but i assume that stuff is asynchronous anyway, so it probably does not mean much.

rob



Code: [Select]
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
0x000000011426a5cc in pcl::BlinkInterface::BlinkData::UpdateScreen ()
(gdb) where
#0  0x000000011426a5cc in pcl::BlinkInterface::BlinkData::UpdateScreen ()
#1  0x000000011426a97d in pcl::BlinkInterface::Play ()
#2  0x0000000103bdc291 in QMetaObject::activate ()
#3  0x0000000101d9fb21 in QAbstractButton::clicked ()
#4  0x0000000101b1a93e in QAbstractButton::event ()
#5  0x0000000101b1b646 in QAbstractButton::keyPressEvent ()
#6  0x0000000101b1b806 in QAbstractButton::mouseReleaseEvent ()
#7  0x0000000101bd4674 in QToolButton::mouseReleaseEvent ()
#8  0x0000000100d3e67f in pi::Control<QToolButton>::mouseReleaseEvent ()
#9  0x0000000101813db0 in QWidget::event ()
#10 0x0000000101b1a906 in QAbstractButton::event ()
#11 0x0000000101bd4292 in QToolButton::event ()
#12 0x00000001017c96b8 in QApplicationPrivate::notify_helper ()
#13 0x00000001017ca008 in QApplication::notify ()
#14 0x0000000103bc75e6 in QCoreApplication::notifyInternal ()
#15 0x00000001017d1c28 in QApplicationPrivate::sendMouseEvent ()
#16 0x0000000101786301 in QMacCocoaAutoReleasePool::~QMacCocoaAutoReleasePool ()
#17 0x00007fff8ad635d6 in -[NSWindow sendEvent:] ()
#18 0x000000010177dab2 in QString::clear ()
#19 0x00007fff8ad5f644 in -[NSApplication sendEvent:] ()
#20 0x00000001017813c2 in QString::clear ()
#21 0x000000010178a876 in operator!= ()
#22 0x0000000103bc7ecc in QCoreApplication::processEvents ()
#23 0x0000000100d342d7 in pi::ResizingWidgetAnimation::Animate ()
#24 0x0000000100d34337 in pi::ResizingWidget::Animate ()
#25 0x0000000100ce57fe in pi::WorkspaceWindow::Unshade ()
#26 0x0000000100cd6927 in pi::PixInsightWorkspace::SetActiveWindow ()
#27 0x000000010034d0aa in pi::ViewSelector::SelectView ()
#28 0x0000000103bdc291 in QMetaObject::activate ()
#29 0x0000000100d687f8 in pi::ViewList::ViewSelected ()
#30 0x000000010034a9f7 in pi::ViewList::RemoveView ()
#31 0x0000000100d06280 in pi::BroadcastImageDeleted ()
#32 0x0000000100279b67 in pi::ImageWindow::closeEvent ()
#33 0x0000000101814245 in QWidget::event ()
#34 0x00000001017c96b8 in QApplicationPrivate::notify_helper ()
#35 0x00000001017c9939 in QApplication::notify ()
#36 0x0000000103bc75e6 in QCoreApplication::notifyInternal ()
#37 0x0000000101811f3f in QWidgetPrivate::close_helper ()
#38 0x00000001018120f4 in QWidget::close ()
#39 0x00000001002772e7 in pi::ImageWindow::Close ()
#40 0x000000010009c3bf in pi::APIImageWindowContext::CloseImageWindow ()
#41 0x00000001142ea986 in pcl::ImageWindow::Close ()
#42 0x000000011426882a in pcl::BlinkInterface::BlinkData::Clear ()
#43 0x000000011426b517 in pcl::BlinkInterface::FileCloseAll ()
#44 0x0000000103bdc291 in QMetaObject::activate ()
#45 0x0000000101d9fb21 in QAbstractButton::clicked ()
#46 0x0000000101b1a93e in QAbstractButton::event ()
#47 0x0000000101b1b646 in QAbstractButton::keyPressEvent ()
#48 0x0000000101b1b806 in QAbstractButton::mouseReleaseEvent ()
#49 0x0000000101bd4674 in QToolButton::mouseReleaseEvent ()
#50 0x0000000100d3e67f in pi::Control<QToolButton>::mouseReleaseEvent ()
#51 0x0000000101813db0 in QWidget::event ()
#52 0x0000000101b1a906 in QAbstractButton::event ()
#53 0x0000000101bd4292 in QToolButton::event ()
#54 0x00000001017c96b8 in QApplicationPrivate::notify_helper ()
#55 0x00000001017ca008 in QApplication::notify ()
#56 0x0000000103bc75e6 in QCoreApplication::notifyInternal ()
#57 0x00000001017d1c28 in QApplicationPrivate::sendMouseEvent ()
#58 0x0000000101786301 in QMacCocoaAutoReleasePool::~QMacCocoaAutoReleasePool ()
#59 0x00007fff8ad635d6 in -[NSWindow sendEvent:] ()
#60 0x000000010177dab2 in QString::clear ()
#61 0x00007fff8ad5f644 in -[NSApplication sendEvent:] ()
#62 0x00000001017813c2 in QString::clear ()
#63 0x00007fff8ac7521a in -[NSApplication run] ()
#64 0x000000010178a5f0 in operator!= ()
#65 0x0000000103bc4a48 in QEventLoop::exec ()
#66 0x0000000103bc7d1b in QCoreApplication::exec ()
#67 0x00000001000fb41d in main ()

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: seg fault while closing blink window (1.8RC7, OSX 10.8.4)
« Reply #1 on: 2013 August 30 12:04:58 »
another clue; after
Code: [Select]
(gdb) return
Make selected stack frame return now? (y or n) y
#0  0x000000011426a97d in pcl::BlinkInterface::Play ()
(gdb) cont
Continuing.

blink gave a dialog box saying that it could not close a locked view. there might be a race or something between unlocking the current image and trying to close it.

rob

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: seg fault while closing blink window (1.8RC7, OSX 10.8.4)
« Reply #2 on: 2013 September 02 01:46:33 »
Hi Rob,

Thanks for the GDB reports; they will be very useful to find and understand the problem. Blink is a rather complex tool and I've been unable to reproduce this after a good bunch of tries, so solving it won't be easy.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: seg fault while closing blink window (1.8RC7, OSX 10.8.4)
« Reply #3 on: 2013 September 02 08:11:19 »
yes I agree it is difficult to reproduce. however it has happened to me at least twice now. hopefully eventually you will see it.