Open Rosheim opened 5 years ago
I have not experienced such an issue in my Mac where OS is Mojave too. Java is not a cause, as SuperMjograph is not dependent on java (unlike old Mjograph) Can you post a crash report?
Sure, here it is:
Process: SuperMjograph [24675] Path: /Applications/SuperMjograph.app/Contents/MacOS/SuperMjograph Identifier: com.mjo.SuperMjograph Version: 0.15.1 (1) Code Type: X86-64 (Native) Parent Process: ??? [1] Responsible: SuperMjograph [24675] User ID: 501
Date/Time: 2019-04-25 17:08:01.351 +0100 OS Version: Mac OS X 10.14.4 (18E226) Report Version: 12 Anonymous UUID: 22084B23-543D-1E56-629B-E2E334316EE8
Sleep/Wake UUID: 1DF0C54F-5FA0-4E63-91EB-9D50076C4616
Time Awake Since Boot: 440000 seconds Time Since Wake: 17000 seconds
System Integrity Protection: disabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_INSTRUCTION (SIGILL) Exception Codes: 0x0000000000000001, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Illegal instruction: 4 Termination Reason: Namespace SIGNAL, Code 0x4 Terminating Process: exc handler [24675]
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 com.mjo.SuperMjograph 0x000000010894d12a PlotLayer.drawXAxis(context:) + 602 1 com.mjo.SuperMjograph 0x0000000108941187 PlotLayer.render(:) + 39 2 com.mjo.SuperMjograph 0x000000010893d41e @objc PlotLayer.draw(:in:) + 158 3 io.github.drawkit 0x0000000108c6461a -[DKLayerGroup drawRect:inView:] + 796 4 io.github.drawkit 0x0000000108bf88da -[DKDrawing drawRect:inView:] + 672 5 io.github.drawkit 0x0000000108c451cd -[DKDrawingView drawRect:] + 85 6 com.apple.AppKit 0x00007fff4faeea6e _NSViewDrawRect + 66 7 com.apple.AppKit 0x00007fff4faed2fc -[NSView(NSInternal) _recursive:displayRectIgnoringOpacity:inContext:shouldChangeFontReferenceColor:stopAtLayerBackedViews:] + 1627 8 com.apple.AppKit 0x00007fff4faecc8f 46-[NSView(NSLayerKitGlue) drawLayer:inContext:]_block_invoke + 192 9 com.apple.AppKit 0x00007fff4faec9ec -[NSView(NSLayerKitGlue) drawViewBackingLayer:inContext:drawingHandler:] + 1720 10 com.apple.QuartzCore 0x00007fff5cd8c5e2 CABackingStoreUpdate + 577 11 com.apple.QuartzCore 0x00007fff5cdedb99 invocation function for block in CA::Layer::display_() + 53 12 com.apple.QuartzCore 0x00007fff5cd8b7ec -[CALayer _display] + 1830 13 com.apple.AppKit 0x00007fff4faebf9e _NSBackingLayerDisplay + 528 14 com.apple.AppKit 0x00007fff4fad04a1 -[_NSViewBackingLayer display] + 811 15 com.apple.QuartzCore 0x00007fff5cd8ad1d CA::Layer::display_if_needed(CA::Transaction) + 627 16 com.apple.QuartzCore 0x00007fff5cd78f42 CA::Context::commit_transaction(CA::Transaction) + 342 17 com.apple.QuartzCore 0x00007fff5cd7858a CA::Transaction::commit() + 588 18 com.apple.AppKit 0x00007fff4fd0a94a +[_NSWindowTransformAnimation waitForAnimationToCompleteOnWindows:forFullScreen:] + 69 19 com.apple.AppKit 0x00007fff4fd0a68f 69-[NSApplication(NSAppleEventHandling) _handleAEOpenDocumentsForURLs:]_block_invoke_2 + 2114 20 com.apple.AppKit 0x00007fff4fe97f6b __withWindowOrderingObserverHeuristic_block_invoke + 43 21 com.apple.AppKit 0x00007fff4fe98134 _NSMainRunLoopPerformBlockInModes_block_invoke + 25 22 com.apple.CoreFoundation 0x00007fff5237c6c4 CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK + 12 23 com.apple.CoreFoundation 0x00007fff5233fdd7 CFRunLoopDoBlocks + 394 24 com.apple.CoreFoundation 0x00007fff5233fb34 __CFRunLoopRun + 2772 25 com.apple.CoreFoundation 0x00007fff5233ee0e CFRunLoopRunSpecific + 455 26 com.apple.HIToolbox 0x00007fff5162b9db RunCurrentEventLoopInMode + 292 27 com.apple.HIToolbox 0x00007fff5162b61d ReceiveNextEventCommon + 355 28 com.apple.HIToolbox 0x00007fff5162b4a6 _BlockUntilNextEventMatchingListInModeWithFilter + 64 29 com.apple.AppKit 0x00007fff4f9c5ffb _DPSNextEvent + 965 30 com.apple.AppKit 0x00007fff4f9c4d93 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1361 31 com.apple.AppKit 0x00007fff4f9beeb0 -[NSApplication run] + 699 32 com.apple.AppKit 0x00007fff4f9ae3f0 NSApplicationMain + 777 33 com.mjo.SuperMjograph 0x00000001088a0579 main + 9 34 libdyld.dylib 0x00007fff7e7b33d5 start + 1
Thread 1:: Dispatch queue: com.apple.root.user-interactive-qos 0 libsystem_kernel.dylib 0x00007fff7e8e822a mach_msg_trap + 10 1 libsystem_kernel.dylib 0x00007fff7e8e876c mach_msg + 60 2 com.apple.QuartzCore 0x00007fff5cd795ba CA::Context::commit_transaction(CA::Transaction*) + 1998 3 com.apple.QuartzCore 0x00007fff5cd7858a CA::Transaction::commit() + 588 4 com.apple.AppKit 0x00007fff4f9fe1fe NSPerformVisuallyAtomicChange + 154 5 com.apple.AppKit 0x00007fff4fcaf1d6 __42-[NSAnimation(NSInternal) _runInNewThread]_block_invoke + 80 6 libdispatch.dylib 0x00007fff7e7655f8 _dispatch_call_block_and_release + 12 7 libdispatch.dylib 0x00007fff7e76663d _dispatch_client_callout + 8 8 libdispatch.dylib 0x00007fff7e774509 _dispatch_root_queue_drain + 657 9 libdispatch.dylib 0x00007fff7e774b46 _dispatch_worker_thread2 + 90 10 libsystem_pthread.dylib 0x00007fff7e9a06b3 _pthread_wqthread + 583 11 libsystem_pthread.dylib 0x00007fff7e9a03fd start_wqthread + 13
Thread 2: 0 libsystem_pthread.dylib 0x00007fff7e9a03f0 start_wqthread + 0
Thread 3: 0 libsystem_pthread.dylib 0x00007fff7e9a03f0 start_wqthread + 0
Thread 4: 0 libsystem_pthread.dylib 0x00007fff7e9a03f0 start_wqthread + 0
Thread 5: 0 libsystem_pthread.dylib 0x00007fff7e9a03f0 start_wqthread + 0
Thread 6: 0 libsystem_pthread.dylib 0x00007fff7e9a03f0 start_wqthread + 0
Thread 7: 0 libsystem_pthread.dylib 0x00007fff7e9a03f0 start_wqthread + 0
Thread 8: 0 libsystem_pthread.dylib 0x00007fff7e9a03f0 start_wqthread + 0
Thread 9: 0 libsystem_pthread.dylib 0x00007fff7e9a03f0 start_wqthread + 0
Thread 10: 0 libsystem_pthread.dylib 0x00007fff7e9a03f0 start_wqthread + 0
Thread 11: 0 libsystem_pthread.dylib 0x00007fff7e9a03f0 start_wqthread + 0
Thread 12: 0 libsystem_pthread.dylib 0x00007fff7e9a03f0 start_wqthread + 0
Thread 13: 0 libsystem_pthread.dylib 0x00007fff7e9a03f0 start_wqthread + 0
Thread 14: 0 libsystem_pthread.dylib 0x00007fff7e9a03f0 start_wqthread + 0
Thread 15: 0 libsystem_pthread.dylib 0x00007fff7e9a03f0 start_wqthread + 0
Thread 16: 0 libsystem_pthread.dylib 0x00007fff7e9a03f0 start_wqthread + 0
Thread 17:: com.apple.NSEventThread 0 libsystem_kernel.dylib 0x00007fff7e8e822a mach_msg_trap + 10 1 libsystem_kernel.dylib 0x00007fff7e8e876c mach_msg + 60 2 com.apple.CoreFoundation 0x00007fff5234013e CFRunLoopServiceMachPort + 328 3 com.apple.CoreFoundation 0x00007fff5233f6ac CFRunLoopRun + 1612 4 com.apple.CoreFoundation 0x00007fff5233ee0e CFRunLoopRunSpecific + 455 5 com.apple.AppKit 0x00007fff4f9cdd1a _NSEventThread + 175 6 libsystem_pthread.dylib 0x00007fff7e9a12eb _pthread_body + 126 7 libsystem_pthread.dylib 0x00007fff7e9a4249 _pthread_start + 66 8 libsystem_pthread.dylib 0x00007fff7e9a040d thread_start + 13
Thread 18:: JavaScriptCore bmalloc scavenger
0 libsystem_kernel.dylib 0x00007fff7e8eb86a psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fff7e9a456e _pthread_cond_wait + 722
2 libc++.1.dylib 0x00007fff7b7c2b31 std::__1::condition_variable::do_timed_wait(std::1::unique_lock
Thread 0 crashed with X86 Thread State (64-bit): rax: 0x051d8001089fa505 rbx: 0x3c93fa2e4fcdd924 rcx: 0x0100000000000000 rdx: 0x0040000000000000 rdi: 0x0000600001b1f7f0 rsi: 0x041d8001089fa505 rbp: 0x00007ffee735ee10 rsp: 0x00007ffee735ed10 r8: 0x48441389d2d21e32 r9: 0x0000000000000000 r10: 0x00007ffee7363c60 r11: 0x00000001092520d0 r12: 0x00007fef5747ed10 r13: 0x0000000000000080 r14: 0x00007ffee735edb0 r15: 0x00006000009363a0 rip: 0x000000010894d12a rfl: 0x0000000000010246 cr2: 0x00000001092520d0
Logical CPU: 0 Error Code: 0x00000000 Trap Number: 6
Binary Images:
0x10889c000 - 0x1089d4fff +com.mjo.SuperMjograph (0.15.1 - 1) <6D359364-7FB6-3A63-AF12-738213839B79> /Applications/SuperMjograph.app/Contents/MacOS/SuperMjograph
0x108b6c000 - 0x108ba3ff3 +com.krzyzanowskim.CryptoSwift (0.8.0 - 1) <9899A351-BE45-3480-8C3B-7675ED68A117> /Applications/SuperMjograph.app/Contents/Frameworks/CryptoSwift.framework/Versions/A/CryptoSwift
0x108bf4000 - 0x108cf7ff7 +io.github.drawkit (1.0.3) <60234E50-9E97-39B8-8324-B8E5584C9971> /Applications/SuperMjograph.app/Contents/Frameworks/DKDrawKit.framework/Versions/A/DKDrawKit
0x108d9c000 - 0x108da3ff3 +com.mjo.swatchwell (1.0 - 1)
External Modification Summary: Calls made by other processes targeting this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by all processes on this machine: task_for_pid: 332468 thread_create: 0 thread_set_state: 0
VM Region Summary: ReadOnly portion of Libraries: Total=496.9M resident=0K(0%) swapped_out_or_unallocated=496.9M(100%) Writable regions: Total=1.6G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.6G(100%)
VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced) =========== ======= ======= Accelerate framework 384K 1 Activity Tracing 256K 1 CG backing stores 1184K 4 CG image 128K 22 CoreAnimation 3824K 42 CoreAnimation (reserved) 16K 4 reserved VM address space (unallocated) CoreImage 108K 18 CoreUI image data 3020K 22 CoreUI image file 204K 4 Foundation 4K 1 JS JIT generated code 1.0G 3 Kernel Alloc Once 8K 1 MALLOC 223.7M 40 MALLOC guard page 32K 7 MALLOC_NANO (reserved) 384.0M 1 reserved VM address space (unallocated) Memory Tag 242 12K 1 SQLite page cache 64K 1 STACK GUARD 56.1M 19 Stack 17.1M 19 VM_ALLOCATE 304K 31 WebKit Malloc 8312K 5 DATA 37.8M 344 FONT_DATA 4K 1 LINKEDIT 229.1M 30 TEXT 267.9M 341 __UNICODE 564K 1 mapped file 53.6M 25 shared memory 2780K 13 =========== ======= ======= TOTAL 2.3G 1002 TOTAL, minus reserved VM space 1.9G 1002
Model: MacBookPro11,3, BootROM 151.0.0.0.0, 4 processors, Intel Core i7, 2,3 GHz, 16 GB, SMC 2.19f12 Graphics: kHW_IntelIrisProItem, Intel Iris Pro, spdisplays_builtin Graphics: kHW_NVidiaGeForceGTX750MItem, NVIDIA GeForce GT 750M, spdisplays_pcie_device, 2 GB Memory Module: BANK 0/DIMM0, 8 GB, DDR3, 1600 MHz, 0x02FE, - Memory Module: BANK 1/DIMM0, 8 GB, DDR3, 1600 MHz, 0x02FE, - AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x134), Broadcom BCM43xx 1.0 (7.77.61.2 AirPortDriverBrcmNIC-1305.8) Bluetooth: Version 6.0.11f4, 3 services, 27 devices, 1 incoming serial ports Network Service: Wi-Fi, AirPort, en0 Serial ATA Device: APPLE SSD SM0512F, 500,28 GB USB Device: USB 3.0 Bus USB Device: Apple Internal Keyboard / Trackpad USB Device: BRCM20702 Hub USB Device: Bluetooth USB Host Controller Thunderbolt Bus: MacBook Pro, Apple Inc., 17.1
Thank you. It says it crashed when drawing X axis.
Did you edit any properties of X axis (such as label, tick, font, and number format)?
When crashing, how does X axis look like? (completely not drawn, only numbers are correctly drawn, etc.)
Have you customized the appearance settings? Check "Appearance" menu from toolbar. What if you reset the settings by "Revert to original"?
Editing the X-axis is indeed the source of the problem: it crashes when the X label is a TeX formula!
same for the Y label.
OK, I'll fix this problem in the next release.
Great, thanks again for your nice work!
I fixed in 0.15.2.
Just for technical reference, the cause of this bug was as follows. In SuperMjograph, a latex string is stored by its hash value with the assumption that it is unique and permanent. In latest Swift, however, the hash mechanism has been updated and now a hash value randomly changes. I therefore implemented an alternative hash calculator with a fixed seed.
Hi,
there seems to be an issue with opening existing files under Mojave, as SuperMjoGraph always waits for a few minutes before saying it quits unexpectedly. It used to work perfectly well just before I updated to Mojave. Could there be any reason for that? I also updated java.
It still works however, but saving is impossible or useless!
Thank you so much for you work, that's still a very nice and useful program.