Planner issues 1#

Tomaz Canabrava tcanabrava at kde.org
Sat May 31 04:53:49 PDT 2014


On Sat, May 31, 2014 at 8:15 AM, Joakim Bygdell <j.bygdell at gmail.com> wrote:
>
> On 31 May 2014, at 13:10, Tomaz Canabrava <tcanabrava at kde.org> wrote:
>
> On Sat, May 31, 2014 at 4:15 AM, Joakim Bygdell <j.bygdell at gmail.com> wrote:
>
> Ehh, no.
> Latest master crashes for me when I open the Add Dive or the Planner.
>
> I can trace it to your commit Dirk, 4dfe12e508d1abd9a65ce1cb1b32421da0132a05
> More specifically this line.
>
>                        cyl->depth = gas_mod(&cyl->gasmix, pO2);
>
> Commenting out that line allows me to access the planner without Subsurface
> crashing, but it still crashes if I try to plan two dives in a row.
>
> On 31 May 2014, at 1:21, Dirk Hohndel <dirk at hohndel.org> wrote:
>
> On Fri, May 30, 2014 at 02:18:30PM +0200, Joakim Bygdell wrote:
>
> This was done on the latest master
> (9f12e7086d9d71bed7863ba0e3e63ed36831197a).
> One thing that I noted was that if you just save the planner as it it
> presented without doning any changes, it doesn’t crash when you open it a
> second time.
>
>
> this should be fixed now.
>
>
> Strange,
>
> I didn't have any crash that you describe
> care to send the backtrace?

You and henrick's seems to be the same - I'm trying to find out what's
happening.

> /D
>
> //Jocke
>
>
> Crashed Thread:  0  Dispatch queue: com.apple.main-thread
>
> Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
> Exception Codes: KERN_PROTECTION_FAILURE at 0x00007fff5f2d6f98
>
> VM Regions Near 0x7fff5f2d6f98:
>     MALLOC_SMALL           00007f809b2bf000-00007f809b800000 [ 5380K]
> rw-/rwx SM=ZER
> --> STACK GUARD            00007fff5bad7000-00007fff5f2d7000 [ 56.0M]
> ---/rwx SM=NUL  stack guard for thread 0
>     Stack                  00007fff5f2d7000-00007fff5fad7000 [ 8192K]
> rw-/rwx SM=COW  thread 0
>
> Application Specific Information:
> Performing @selector(qtDispatcherToQAction:) from sender NSMenuItem
> 0x6080036b5780
>
> Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
> 0   QtGui                         0x000000010300c648
> QGraphicsScenePrivate::markDirty(QGraphicsItem*, QRectF const&, bool, bool,
> bool, bool, bool) + 196
> 1   QtGui                         0x0000000102fe6cb3
> QGraphicsItem::prepareGeometryChange() + 299
> 2   QtGui                         0x0000000102fecd07
> QGraphicsItemPrivate::setPosHelper(QPointF const&) + 67
> 3   QtGui                         0x0000000102fecba9
> QGraphicsItem::setPos(QPointF const&) + 297
> 4   org.hohndel.subsurface        0x00000001001e518f
> RulerNodeItem2::recalculate() + 415
> 5   org.hohndel.subsurface        0x00000001001e5789 non-virtual thunk to
> RulerNodeItem2::itemChange(QGraphicsItem::GraphicsItemChange, QVariant
> const&) + 41
> 6   QtGui                         0x0000000102fecbc5
> QGraphicsItem::setPos(QPointF const&) + 325
> 7   org.hohndel.subsurface        0x00000001001e518f
> RulerNodeItem2::recalculate() + 415
> .
> .
> .
> 509 org.hohndel.subsurface        0x00000001001e5789 non-virtual thunk to
> RulerNodeItem2::itemChange(QGraphicsItem::GraphicsItemChange, QVariant
> const&) + 41
> 510 QtGui                         0x0000000102fecbc5
> QGraphicsItem::setPos(QPointF const&) + 325
> 511 org.hohndel.subsurface        0x00000001001e518f
> RulerNodeItem2::recalculate() + 415
>
> Thread 1:: Dispatch queue: com.apple.libdispatch-manager
> 0   libsystem_kernel.dylib        0x00007fff8f371662 kevent64 + 10
> 1   libdispatch.dylib             0x00007fff8ce48421 _dispatch_mgr_invoke +
> 239
> 2   libdispatch.dylib             0x00007fff8ce48136 _dispatch_mgr_thread +
> 52
>
> Thread 2:
> 0   libsystem_kernel.dylib        0x00007fff8f370e6a __workq_kernreturn + 10
> 1   libsystem_pthread.dylib       0x00007fff8f05df08 _pthread_wqthread + 330
> 2   libsystem_pthread.dylib       0x00007fff8f060fb9 start_wqthread + 13
>
> Thread 3:
> 0   libsystem_kernel.dylib        0x00007fff8f370e6a __workq_kernreturn + 10
> 1   libsystem_pthread.dylib       0x00007fff8f05df08 _pthread_wqthread + 330
> 2   libsystem_pthread.dylib       0x00007fff8f060fb9 start_wqthread + 13
>
> Thread 4:: QThread
> 0   libsystem_kernel.dylib        0x00007fff8f3709aa __select + 10
> 1   QtCore                        0x00000001037337c3 qt_safe_select(int,
> fd_set*, fd_set*, fd_set*, timeval const*) + 89
> 2   QtCore                        0x0000000103736651
> QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>,
> timeval*) + 789
> 3   QtCore                        0x00000001037379a5
> QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) +
> 341
> 4   QtCore                        0x000000010370c6e7
> QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 79
> 5   QtCore                        0x000000010370c84a
> QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 346
> 6   QtCore                        0x0000000103631705 QThread::exec() + 229
> 7   QtCore                        0x0000000103632fa8
> QThreadPrivate::start(void*) + 386
> 8   libsystem_pthread.dylib       0x00007fff8f05c899 _pthread_body + 138
> 9   libsystem_pthread.dylib       0x00007fff8f05c72a _pthread_start + 137
> 10  libsystem_pthread.dylib       0x00007fff8f060fc9 thread_start + 13
>
> Thread 5:
> 0   libsystem_kernel.dylib        0x00007fff8f370e6a __workq_kernreturn + 10
> 1   libsystem_pthread.dylib       0x00007fff8f05df08 _pthread_wqthread + 330
> 2   libsystem_pthread.dylib       0x00007fff8f060fb9 start_wqthread + 13
>
> Thread 6:
> 0   libsystem_kernel.dylib        0x00007fff8f36ca1a mach_msg_trap + 10
> 1   libsystem_kernel.dylib        0x00007fff8f36bd18 mach_msg + 64
> 2   com.apple.CoreFoundation      0x00007fff8a5edfc5
> __CFRunLoopServiceMachPort + 181
> 3   com.apple.CoreFoundation      0x00007fff8a5ed5e9 __CFRunLoopRun + 1161
> 4   com.apple.CoreFoundation      0x00007fff8a5ecf25 CFRunLoopRunSpecific +
> 309
> 5   com.apple.AppKit              0x00007fff8e6a805e _NSEventThread + 144
> 6   libsystem_pthread.dylib       0x00007fff8f05c899 _pthread_body + 138
> 7   libsystem_pthread.dylib       0x00007fff8f05c72a _pthread_start + 137
> 8   libsystem_pthread.dylib       0x00007fff8f060fc9 thread_start + 13
>
> Thread 0 crashed with X86 Thread State (64-bit):
>   rax: 0x0000000000000000  rbx: 0x00007f809a447700  rcx: 0x0000000000000000
> rdx: 0x0000000000000001
>   rdi: 0x00007f809a447750  rsi: 0x0000000000000000  rbp: 0x00007fff5f2d7170
> rsp: 0x00007fff5f2d6fa0
>    r8: 0x0000000000000000   r9: 0x0000000000000000  r10: 0x00000000000a0000
> r11: 0x00000000ec4e3a76
>   r12: 0x00007fff5f2d7210  r13: 0x00007f809a447c60  r14: 0x00007f809a447c60
> r15: 0x000060800010a060
>   rip: 0x000000010300c648  rfl: 0x0000000000010202  cr2: 0x00007fff5f2d6f98
>
>
>
> Logical CPU:     0
> Error Code:      0x00000006
> Trap Number:     14


More information about the subsurface mailing list