On Sun, Jun 01, 2014 at 12:14:43AM +0200, Henrik Brautaset Aronsen wrote:
> Dirk Hohndel wrote:
> >Hehe, not asleep after all, even though it's midnight Sat/Sun...
> >You sure know how to have fun on a weekend night, Henrik! :-)
> 
> Yup, a helluva party going on here.

:-)

> Anyway, I can actually plan a dive now.

Yay :-)

> But I stumbled upon another crash
> as I was playing with the duration and runtime values in the Dive Planner
> Points.  There's something weird going on there.  If I edit the Duration and
> press tab, and there was already a value in Runtime, it gets erased.

Yes, I noticed that. Making changes to that table is rather weird.
Randomly things get erased if you use tab. But if you carefully change
something and then click in the same column in a different row you can
make changes.
Let's call this the "mental dive fitness test" and consider it a feature.
Or alternatively have Tomaz take a look and fix what's broken :-)

> But that's not what caused the crash, because I'm unable to recreate it.
> Anyway, here it is:
> 
> Exception Type:  EXC_CRASH (SIGABRT)
> Exception Codes: 0x0000000000000000, 0x0000000000000000
> 
> Application Specific Information:
> Assertion failed: (CGFloatIsValid(x) && CGFloatIsValid(y)), function void
> CGPathAddLineToPoint(CGMutablePathRef, const CGAffineTransform *, CGFloat,
> CGFloat), file Paths/CGPath.cc, line 224.
> 
> 
> Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
> 0   libsystem_kernel.dylib            0x00007fff8cc4f866 __pthread_kill + 10
> 1   libsystem_pthread.dylib           0x00007fff86e2d35c pthread_kill + 92
> 2   libsystem_c.dylib                 0x00007fff897d5b1a abort + 125
> 3   libsystem_c.dylib                 0x00007fff8979f9bf __assert_rtn + 321
> 4   com.apple.CoreGraphics            0x00007fff8770e24d CGPathAddLineToPoint 
> + 169
> 5   QtGui                             0x0000000111110dad 
> QCoreGraphicsPaintEngine::drawLines(QLineF const*, int) + 131
> 6   QtGui                             0x000000011107c277 
> QPainter::drawLines(QLineF const*, int) + 101
> 7   org.hohndel.subsurface            0x000000010e64308b 
> DiveProfileItem::paint(QPainter*, QStyleOptionGraphicsItem const*, QWidget*) 
> + 859
> 8   QtGui                             0x0000000111455fe7 
> QGraphicsScenePrivate::draw(QGraphicsItem*, QPainter*, QTransform const*, 
> QTransform const*, QRegion*, QWidget*, double, QTransform const*, bool, bool) 
> + 1151
> 9   QtGui                             0x0000000111455a44 
> QGraphicsScenePrivate::drawSubtreeRecursive(QGraphicsItem*, QPainter*, 
> QTransform const*, QRegion*, QWidget*, double, QTransform const*) + 1948
> 10  QtGui                             0x000000011145522f 
> QGraphicsScenePrivate::drawItems(QPainter*, QTransform const*, QRegion*, 
> QWidget*) + 379
> 11  QtGui                             0x000000011146fd87 
> QGraphicsView::paintEvent(QPaintEvent*) + 2657
> 12  QtGui                             0x0000000110fb9bb9 
> QWidget::event(QEvent*) + 1319
> 13  QtGui                             0x00000001112aa903 
> QFrame::event(QEvent*) + 43
> 14  QtGui                             0x0000000111318d9a 
> QAbstractScrollArea::viewportEvent(QEvent*) + 108
> 15  QtGui                             0x000000011146dbd1 
> QGraphicsView::viewportEvent(QEvent*) + 1103
> 16  QtGui                             0x0000000111319495 
> QAbstractScrollAreaFilter::eventFilter(QObject*, QEvent*) + 37
> 17  QtCore                            0x0000000111b47da9 
> QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) + 
> 103
> 18  QtGui                             0x0000000110f7bec5 
> QApplicationPrivate::notify_helper(QObject*, QEvent*) + 179
> 19  QtGui                             0x0000000110f7ea02 
> QApplication::notify(QObject*, QEvent*) + 6498
> 20  QtCore                            0x0000000111b47bb8 
> QCoreApplication::notifyInternal(QObject*, QEvent*) + 118
> 21  QtGui                             0x0000000110fb55b9 
> QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, 
> QPainter*, QWidgetBackingStore*) + 1409
> 22  QtGui                             0x0000000110fb5de5 
> QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, 
> int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) + 
> 1225
> 23  QtGui                             0x0000000110fb5792 
> QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, 
> QPainter*, QWidgetBackingStore*) + 1882
> 24  QtGui                             0x0000000110fb5de5 
> QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, 
> int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) + 
> 1225
> 25  QtGui                             0x0000000110fb5792 
> QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, 
> QPainter*, QWidgetBackingStore*) + 1882

This is all inside Qt. Are there more levels of stack? I can't see what
triggers things...

Thanks

/D
_______________________________________________
subsurface mailing list
subsurface@hohndel.org
http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to