(04-01-2015 12:55 AM)Claudio L. Wrote: (03-31-2015 05:51 PM)Claudio L. Wrote: I have to fix that.
FYI, I just committed the fix to the repository.
Claudio
Most recent commit enables the GUI to work, but I get the following crash when pressing the ENTER (i.e. RETURN) key after simply inputting a few numerical digits. Also, the entry line shows a blinking/highlighted 0 as a cursor. Is this intended?
The crash doesn't happen on the non-GUI version.
Code:
Crashed Thread: 5 QThread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000217c48
VM Regions Near 0x217c48:
-->
__TEXT 0000000100000000-000000010018c000 [ 1584K] r-x/rwx SM=COW /Users/USER/*/newrpl-ui.app/Contents/MacOS/newrpl-ui
Thread 0:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff892cba1a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff892cad18 mach_msg + 64
2 com.apple.CoreFoundation 0x00007fff8e575f15 __CFRunLoopServiceMachPort + 181
3 com.apple.CoreFoundation 0x00007fff8e575539 __CFRunLoopRun + 1161
4 com.apple.CoreFoundation 0x00007fff8e574e75 CFRunLoopRunSpecific + 309
5 com.apple.HIToolbox 0x00007fff90863a0d RunCurrentEventLoopInMode + 226
6 com.apple.HIToolbox 0x00007fff908637b7 ReceiveNextEventCommon + 479
7 com.apple.HIToolbox 0x00007fff908635bc _BlockUntilNextEventMatchingListInModeWithFilter + 65
8 com.apple.AppKit 0x00007fff8bc6024e _DPSNextEvent + 1434
9 com.apple.AppKit 0x00007fff8bc5f89b -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 122
10 com.apple.AppKit 0x00007fff8bc5399c -[NSApplication run] + 553
11 libqcocoa.dylib 0x00000001044192a7 QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 2391
12 QtCore 0x0000000100f8b05d QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 397
13 QtCore 0x0000000100f8e162 QCoreApplication::exec() + 354
14 @BUNDLEIDENTIFIER@ 0x0000000100003451 main + 97 (main.cpp:10)
15 @BUNDLEIDENTIFIER@ 0x00000001000033e4 start + 52
Thread 1:
0 libsystem_kernel.dylib 0x00007fff892cfe6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff87788f08 _pthread_wqthread + 330
2 libsystem_pthread.dylib 0x00007fff8778bfb9 start_wqthread + 13
Thread 2:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x00007fff892d0662 kevent64 + 10
1 libdispatch.dylib 0x00007fff8e6f0421 _dispatch_mgr_invoke + 239
2 libdispatch.dylib 0x00007fff8e6f0136 _dispatch_mgr_thread + 52
Thread 3:
0 libsystem_kernel.dylib 0x00007fff892cfe6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff87788f08 _pthread_wqthread + 330
2 libsystem_pthread.dylib 0x00007fff8778bfb9 start_wqthread + 13
Thread 4:
0 libsystem_kernel.dylib 0x00007fff892cfe6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff87788f08 _pthread_wqthread + 330
2 libsystem_pthread.dylib 0x00007fff8778bfb9 start_wqthread + 13
Thread 5 Crashed:: QThread
0 @BUNDLEIDENTIFIER@ 0x000000010001825c rplStrLen + 12 (lib-24-string.c:82)
1 @BUNDLEIDENTIFIER@ 0x000000010000919a endCmdLineAndCompile + 74 (hal_keyboard.c:373)
2 @BUNDLEIDENTIFIER@ 0x00000001000096c1 enterKeyHandler + 113 (hal_keyboard.c:539)
3 @BUNDLEIDENTIFIER@ 0x000000010000a26f halDoDefaultKey + 111 (hal_keyboard.c:887)
4 @BUNDLEIDENTIFIER@ 0x000000010000a39e halProcessKey + 238 (hal_keyboard.c:917)
5 @BUNDLEIDENTIFIER@ 0x000000010000a3df halOuterLoop + 47 (hal_keyboard.c:981)
6 @BUNDLEIDENTIFIER@ 0x000000010007e016 main_virtual + 326 (boot.c:50)
7 @BUNDLEIDENTIFIER@ 0x000000010007e0b6 startup + 86 (boot.c:95)
8 @BUNDLEIDENTIFIER@ 0x000000010007e211 RPLThread::run() + 17 (rplthread.cpp:17)
9 QtCore 0x0000000100da5e60 QThreadPrivate::start(void*) + 352
10 libsystem_pthread.dylib 0x00007fff87787899 _pthread_body + 138
11 libsystem_pthread.dylib 0x00007fff8778772a _pthread_start + 137
12 libsystem_pthread.dylib 0x00007fff8778bfc9 thread_start + 13
Thread 6:
0 libsystem_kernel.dylib 0x00007fff892cfe6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff87788f08 _pthread_wqthread + 330
2 libsystem_pthread.dylib 0x00007fff8778bfb9 start_wqthread + 13
Thread 7:
0 libsystem_kernel.dylib 0x00007fff892cfe6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff87788f08 _pthread_wqthread + 330
2 libsystem_pthread.dylib 0x00007fff8778bfb9 start_wqthread + 13
Thread 8:
0 libsystem_kernel.dylib 0x00007fff892cfe6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff87788f08 _pthread_wqthread + 330
2 libsystem_pthread.dylib 0x00007fff8778bfb9 start_wqthread + 13
Thread 9:
0 libsystem_kernel.dylib 0x00007fff892cfe6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff87788f08 _pthread_wqthread + 330
2 libsystem_pthread.dylib 0x00007fff8778bfb9 start_wqthread + 13
Thread 10:
0 libsystem_kernel.dylib 0x00007fff892cfe6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff87788f08 _pthread_wqthread + 330
2 libsystem_pthread.dylib 0x00007fff8778bfb9 start_wqthread + 13
Thread 11:
0 libsystem_kernel.dylib 0x00007fff892cba1a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff892cad18 mach_msg + 64
2 com.apple.CoreFoundation 0x00007fff8e575f15 __CFRunLoopServiceMachPort + 181
3 com.apple.CoreFoundation 0x00007fff8e575539 __CFRunLoopRun + 1161
4 com.apple.CoreFoundation 0x00007fff8e574e75 CFRunLoopRunSpecific + 309
5 com.apple.AppKit 0x00007fff8be0005e _NSEventThread + 144
6 libsystem_pthread.dylib 0x00007fff87787899 _pthread_body + 138
7 libsystem_pthread.dylib 0x00007fff8778772a _pthread_start + 137
8 libsystem_pthread.dylib 0x00007fff8778bfc9 thread_start + 13
Thread 5 crashed with X86 Thread State (64-bit):
rax: 0x0000000100217c48 rbx: 0x00000001015ae5c0 rcx: 0x0000000000217c48 rdx: 0x0000000000000000
rdi: 0x0000000000217c48 rsi: 0x0000000000000001 rbp: 0x000000010a304cf0 rsp: 0x000000010a304cf0
r8: 0x0000000000000000 r9: 0x00000000000f4240 r10: 0x0000000000000001 r11: 0x0000000000000008
r12: 0x00000001014613e0 r13: 0x0000000004000000 r14: 0x000000010a305000 r15: 0x00007fff5fbffc28
rip: 0x000000010001825c rfl: 0x0000000000010206 cr2: 0x0000000000217c48
Logical CPU: 6
Error Code: 0x00000004
Trap Number: 14