Closed bjdaijun closed 1 year ago
@bjdaijun Thanks for the report. I'm not familiar with the different input methods that the underlying Scintilla control supports. What is odd it looks like the only code it is touching currently is in the NotepadNext main function and the crash happens deep within Qt.
Can you post the debug information logged from when the application starts up? Under the Help menu there is a "Debug Log" option.
@dail8859 Here is all the log from debug log:
[ 0.327] I: ============================= [ 0.327] I: Notepad Next v0.5.4 [ 0.327] I: Build Date/Time: Aug 2 2022 01:54:49 [ 0.327] I: Qt: 5.15.2 [ 0.327] I: OS: macOS 12.4 [ 0.327] I: Locale: zh_CN [ 0.327] I: CPU: x86_64 [ 0.327] I: File Path: /Applications/NotepadNext.app/Contents/MacOS/NotepadNext [ 0.327] I: Arguments: /Applications/NotepadNext.app/Contents/MacOS/NotepadNext [ 0.327] I: ============================= [ 0.327] I: bool NotepadNextApplication::init() [ 0.395] I: void NotepadNextApplication::loadTranslation(QLocale) [ 0.395] I: zh_CN translation not found for Notepad Next [ 0.395] I: zh_CN translation not found for Qt components [ 0.395] I: LuaState::LuaState() [ 0.403] I: MainWindow::MainWindow(NotepadNextApplication ) [ 0.500] I: setupUi Completed [ 0.534] I: void MainWindow::setupLanguageMenu() [ 0.573] I: void MainWindow::restoreSettings() [ 0.573] I: void NotepadNextApplication::openFiles(const QStringList &) [ 0.573] I: void MainWindow::newFile() [ 0.573] I: void EditorManager::setupEditor(ScintillaNext ) [ 0.573] I: void MainWindow::addEditor(ScintillaNext ) [ 0.573] I: void MainWindow::detectLanguage(ScintillaNext ) [ 0.573] I: void MainWindow::setLanguage(ScintillaNext , const QString &) [ 0.573] I: Language Name: Text [ 0.574] I: void DockedEditor::addEditor(ScintillaNext ) [ 0.583] I: void MainWindow::activateEditor(ScintillaNext ) [ 0.583] I: bool MainWindow::checkFileForModification(ScintillaNext ) [ 0.583] I: void MainWindow::updateGui(ScintillaNext ) [ 0.583] I: void MainWindow::updateFileStatusBasedUi(ScintillaNext ) [ 0.583] I: void MainWindow::updateSaveStatusBasedUi(ScintillaNext ) [ 0.583] I: void MainWindow::updateEOLBasedUi(ScintillaNext ) [ 0.583] I: void MainWindow::updateLanguageBasedUi(ScintillaNext ) [ 0.755] I: void MainWindow::focusIn() [ 0.755] I: bool MainWindow::checkFileForModification(ScintillaNext ) [ 192.227] I: void MainWindow::focusIn() [ 192.227] I: bool MainWindow::checkFileForModification(ScintillaNext ) [ 192.256] I: void MainWindow::focusIn() [ 192.256] I: bool MainWindow::checkFileForModification(ScintillaNext ) [ 193.468] I: void MainWindow::updateSaveStatusBasedUi(ScintillaNext ) [ 200.770] I: Scintilla::Internal::RegexSearchBase Scintilla::Internal::CreateRegexSearch(Scintilla::Internal::CharClassify ) [ 485.863] I: void MainWindow::focusIn() [ 485.866] I: bool MainWindow::checkFileForModification(ScintillaNext ) [ 485.866] I: void MainWindow::focusIn() [ 485.866] I: bool MainWindow::checkFileForModification(ScintillaNext ) [ 754.824] I: void MainWindow::focusIn() [ 754.828] I: bool MainWindow::checkFileForModification(ScintillaNext ) [ 756.772] I: void MainWindow::focusIn() [ 756.772] I: bool MainWindow::checkFileForModification(ScintillaNext ) [ 4560.601] I: void MainWindow::focusIn() [ 4560.604] I: bool MainWindow::checkFileForModification(ScintillaNext ) [ 37791.907] I: void MainWindow::focusIn() [ 37791.910] I: bool MainWindow::checkFileForModification(ScintillaNext ) [ 37791.910] I: void MainWindow::focusIn() [ 37791.910] I: bool MainWindow::checkFileForModification(ScintillaNext )
Nothing looks odd from the log. It is weird it is crashing within Qt.
The only thing I can think to try currently is try one of the recent builds that uses a newer version of Qt6 here:
https://github.com/dail8859/NotepadNext/suites/7882210832/artifacts/334628822
https://github.com/dail8859/NotepadNext/suites/7882210832/artifacts/334628822
hi dail8859, this link is a linux appimage, can you share a mac dmg?
Ooops :)
Here is the latest Qt6 version for Mac. It will download as a zip and once extracted will contain a dmg.
https://github.com/dail8859/NotepadNext/suites/8689367306/artifacts/391921672
hi dear dail8859 ,there still have the same problem with QTcore version 6.2.4 i have tried latest version https://github.com/dail8859/NotepadNext/suites/8689367306/artifacts/391921672
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: NotepadNext [44041]
Path: /Volumes/*/NotepadNext.app/Contents/MacOS/NotepadNext
Identifier: com.yourcompany.NotepadNext
Version: ???
Code Type: X86-64 (Native)
Parent Process: launchd [1]
User ID: 501
Date/Time: 2022-10-20 17:23:31.5363 +0800
OS Version: macOS 12.6 (21G115)
Report Version: 12
Bridge OS Version: 6.6 (19P6067)
Anonymous UUID: 46FFEC86-6324-BE6B-90D6-43FC00DE8F83
Sleep/Wake UUID: 6A8478BC-09EC-40B7-8F1F-BF64DC7CF72E
Time Awake Since Boot: 190000 seconds
Time Since Wake: 3957 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
abort() called
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x7ff80799700e __pthread_kill + 10
1 libsystem_pthread.dylib 0x7ff8079cd1ff pthread_kill + 263
2 libsystem_c.dylib 0x7ff807918d24 abort + 123
3 libc++abi.dylib 0x7ff807989082 abort_message + 241
4 libc++abi.dylib 0x7ff80797a1a5 demangling_terminate_handler() + 242
5 libobjc.A.dylib 0x7ff807876e19 _objc_terminate() + 104
6 libc++abi.dylib 0x7ff8079884a7 std::__terminate(void (*)()) + 8
7 libc++abi.dylib 0x7ff80798aeeb __cxa_rethrow + 99
8 libobjc.A.dylib 0x7ff807880d6c objc_exception_rethrow + 37
9 AppKit 0x7ff80a8f41d3 -[NSApplication _handleEvent:] + 137
10 AppKit 0x7ff80a4bcd3e -[NSApplication run] + 623
11 libqcocoa.dylib 0x1075b4b2d 0x10759e000 + 92973
12 QtCore 0x1081608b6 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 454
13 QtCore 0x108157cf2 QCoreApplication::exec() + 130
14 NotepadNext 0x10692414f main + 1967
15 dyld 0x10881652e start + 462
Thread 1:
0 libsystem_pthread.dylib 0x7ff8079c8f48 start_wqthread + 0
Thread 2:
0 libsystem_pthread.dylib 0x7ff8079c8f48 start_wqthread + 0
Thread 3:
0 libsystem_pthread.dylib 0x7ff8079c8f48 start_wqthread + 0
Thread 4:: com.apple.CFSocket.private
0 libsystem_kernel.dylib 0x7ff807998d5a __select + 10
1 CoreFoundation 0x7ff807abb679 __CFSocketManager + 641
2 libsystem_pthread.dylib 0x7ff8079cd4e1 _pthread_start + 125
3 libsystem_pthread.dylib 0x7ff8079c8f6b thread_start + 15
Thread 5:: Thread (pooled)
0 libsystem_kernel.dylib 0x7ff8079933ea __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x7ff8079cda6f _pthread_cond_wait + 1249
2 QtCore 0x1082ed9a6 0x1080c0000 + 2283942
3 QtCore 0x1082ed6be 0x1080c0000 + 2283198
4 QtCore 0x1082ed60e QWaitCondition::wait(QMutex*, QDeadlineTimer) + 94
5 QtCore 0x1082e791a 0x1080c0000 + 2259226
6 QtCore 0x1082e1df3 0x1080c0000 + 2235891
7 libsystem_pthread.dylib 0x7ff8079cd4e1 _pthread_start + 125
8 libsystem_pthread.dylib 0x7ff8079c8f6b thread_start + 15
Thread 6:: Thread (pooled)
0 libsystem_kernel.dylib 0x7ff8079933ea __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x7ff8079cda6f _pthread_cond_wait + 1249
2 QtCore 0x1082ed9a6 0x1080c0000 + 2283942
3 QtCore 0x1082ed6be 0x1080c0000 + 2283198
4 QtCore 0x1082ed60e QWaitCondition::wait(QMutex*, QDeadlineTimer) + 94
5 QtCore 0x1082e791a 0x1080c0000 + 2259226
6 QtCore 0x1082e1df3 0x1080c0000 + 2235891
7 libsystem_pthread.dylib 0x7ff8079cd4e1 _pthread_start + 125
8 libsystem_pthread.dylib 0x7ff8079c8f6b thread_start + 15
Thread 7:: Thread (pooled)
0 libsystem_kernel.dylib 0x7ff8079933ea __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x7ff8079cda6f _pthread_cond_wait + 1249
2 QtCore 0x1082ed9a6 0x1080c0000 + 2283942
3 QtCore 0x1082ed6be 0x1080c0000 + 2283198
4 QtCore 0x1082ed60e QWaitCondition::wait(QMutex*, QDeadlineTimer) + 94
5 QtCore 0x1082e791a 0x1080c0000 + 2259226
6 QtCore 0x1082e1df3 0x1080c0000 + 2235891
7 libsystem_pthread.dylib 0x7ff8079cd4e1 _pthread_start + 125
8 libsystem_pthread.dylib 0x7ff8079c8f6b thread_start + 15
Thread 8:: Thread (pooled)
0 libsystem_kernel.dylib 0x7ff8079933ea __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x7ff8079cda6f _pthread_cond_wait + 1249
2 QtCore 0x1082ed9a6 0x1080c0000 + 2283942
3 QtCore 0x1082ed6be 0x1080c0000 + 2283198
4 QtCore 0x1082ed60e QWaitCondition::wait(QMutex*, QDeadlineTimer) + 94
5 QtCore 0x1082e791a 0x1080c0000 + 2259226
6 QtCore 0x1082e1df3 0x1080c0000 + 2235891
7 libsystem_pthread.dylib 0x7ff8079cd4e1 _pthread_start + 125
8 libsystem_pthread.dylib 0x7ff8079c8f6b thread_start + 15
Thread 9:
0 libsystem_pthread.dylib 0x7ff8079c8f48 start_wqthread + 0
Thread 10:
0 libsystem_pthread.dylib 0x7ff8079c8f48 start_wqthread + 0
Thread 11:
0 libsystem_pthread.dylib 0x7ff8079c8f48 start_wqthread + 0
Thread 12:: QFileInfoGatherer
0 libsystem_kernel.dylib 0x7ff8079933ea __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x7ff8079cda6f _pthread_cond_wait + 1249
2 QtCore 0x1082ed69b 0x1080c0000 + 2283163
3 QtCore 0x1082ed60e QWaitCondition::wait(QMutex*, QDeadlineTimer) + 94
4 QtGui 0x1071edfdd QFileInfoGatherer::run() + 125
5 QtCore 0x1082e1df3 0x1080c0000 + 2235891
6 libsystem_pthread.dylib 0x7ff8079cd4e1 _pthread_start + 125
7 libsystem_pthread.dylib 0x7ff8079c8f6b thread_start + 15
Thread 13:: com.apple.NSEventThread
0 libsystem_kernel.dylib 0x7ff80799097a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x7ff807990ce8 mach_msg + 56
2 CoreFoundation 0x7ff807a9436d __CFRunLoopServiceMachPort + 319
3 CoreFoundation 0x7ff807a929f8 __CFRunLoopRun + 1276
4 CoreFoundation 0x7ff807a91e3c CFRunLoopRunSpecific + 562
5 AppKit 0x7ff80a6399ce _NSEventThread + 132
6 libsystem_pthread.dylib 0x7ff8079cd4e1 _pthread_start + 125
7 libsystem_pthread.dylib 0x7ff8079c8f6b thread_start + 15
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000000108891600 rcx: 0x00007ff7b98b10c8 rdx: 0x0000000000000000
rdi: 0x0000000000000103 rsi: 0x0000000000000006 rbp: 0x00007ff7b98b10f0 rsp: 0x00007ff7b98b10c8
r8: 0x00007ff7b98b0f90 r9: 0x00007ff80798bf78 r10: 0x0000000000000000 r11: 0x0000000000000246
r12: 0x0000000000000103 r13: 0x0000003000000008 r14: 0x0000000000000006 r15: 0x0000000000000016
rip: 0x00007ff80799700e rfl: 0x0000000000000246 cr2: 0x00007ff8476d1d70
Logical CPU: 0
Error Code: 0x02000148
Trap Number: 133
Binary Images:
0x7ff80798f000 - 0x7ff8079c6fff libsystem_kernel.dylib (*) <8cc28466-fd2f-3c80-9834-9525b7beac19> /usr/lib/system/libsystem_kernel.dylib
0x7ff8079c7000 - 0x7ff8079d2fff libsystem_pthread.dylib (*) <b5454e27-e8c7-3fdb-b77f-714f1e82e70b> /usr/lib/system/libsystem_pthread.dylib
0x7ff807897000 - 0x7ff80791ffff libsystem_c.dylib (*) <e42e9d7a-03b4-340b-b61e-dcd45fd4acc0> /usr/lib/system/libsystem_c.dylib
0x7ff807979000 - 0x7ff80798efff libc++abi.dylib (*) <7b800bb6-32e7-3597-b292-2c4da4c377b1> /usr/lib/libc++abi.dylib
0x7ff80785a000 - 0x7ff807893fff libobjc.A.dylib (*) <4d9b0dca-7151-3875-b98e-b255db8267a8> /usr/lib/libobjc.A.dylib
0x7ff80a48d000 - 0x7ff80b31cfff com.apple.AppKit (6.9) <06015263-62ac-3b08-a298-dc835c18452a> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x10759e000 - 0x107639fff libqcocoa.dylib (*) <ae5b68a4-b0b8-3fde-8fb0-d59b644c6342> /Volumes/*/NotepadNext.app/Contents/PlugIns/platforms/libqcocoa.dylib
0x1080c0000 - 0x1085abfff org.qt-project.QtCore (6.2) <df4f842f-5cd0-3b3f-beaa-8c379ace45da> /Volumes/*/NotepadNext.app/Contents/Frameworks/QtCore.framework/Versions/A/QtCore
0x10664e000 - 0x106a19fff com.yourcompany.NotepadNext (*) <2ae4ae75-0b34-37c2-987c-023b89b6fbe3> /Volumes/*/NotepadNext.app/Contents/MacOS/NotepadNext
0x108811000 - 0x10887cfff dyld (*) <71febccd-d9dc-3599-9971-2b3407c588a8> /usr/lib/dyld
0x7ff807a14000 - 0x7ff807f16fff com.apple.CoreFoundation (6.9) <93c48919-68af-367e-9a67-db4159bc962c> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x106d9b000 - 0x107416fff org.qt-project.QtGui (6.2) <9c3cea0d-8586-3b34-ae11-81dbc6e872ed> /Volumes/*/NotepadNext.app/Contents/Frameworks/QtGui.framework/Versions/A/QtGui
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: 0
thread_create: 0
thread_set_state: 0
VM Region Summary:
ReadOnly portion of Libraries: Total=891.5M resident=0K(0%) swapped_out_or_unallocated=891.5M(100%)
Writable regions: Total=1.8G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.8G(100%)
VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
Accelerate framework 1024K 8
Activity Tracing 256K 1
CG backing stores 2688K 4
CG image 2100K 3
ColorSync 228K 27
CoreAnimation 84K 6
CoreGraphics 12K 2
CoreServices 624K 2
CoreUI image data 800K 5
Foundation 16K 1
Kernel Alloc Once 8K 1
MALLOC 326.6M 61
MALLOC guard page 48K 10
MALLOC_MEDIUM (reserved) 1.1G 9 reserved VM address space (unallocated)
MALLOC_NANO (reserved) 384.0M 1 reserved VM address space (unallocated)
ObjC additional data 15K 1
STACK GUARD 56.1M 14
Stack 14.6M 14
VM_ALLOCATE 316K 14
__CTF 756 1
__DATA 19.8M 330
__DATA_CONST 12.0M 181
__DATA_DIRTY 535K 99
__FONT_DATA 4K 1
__LINKEDIT 649.6M 21
__TEXT 242.0M 346
__UNICODE 592K 1
dyld private memory 1024K 1
mapped file 159.8M 30
shared memory 1292K 17
=========== ======= =======
TOTAL 2.9G 1212
TOTAL, minus reserved VM space 1.5G 1212
-----------
Full Report
-----------
{"app_name":"NotepadNext","timestamp":"2022-10-20 17:23:31.00 +0800","app_version":"","slice_uuid":"2ae4ae75-0b34-37c2-987c-023b89b6fbe3","build_version":"","platform":1,"bundleID":"com.yourcompany.NotepadNext","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 12.6 (21G115)","incident_id":"A525E1AB-57C5-4F19-95E3-F2358BEBA1F6","name":"NotepadNext"}
{
"uptime" : 190000,
"procLaunch" : "2022-10-20 17:23:16.8106 +0800",
"procRole" : "Foreground",
"version" : 2,
"userID" : 501,
"deployVersion" : 210,
"modelCode" : "MacBookPro16,1",
"procStartAbsTime" : 195118332973988,
"coalitionID" : 19879,
"osVersion" : {
"train" : "macOS 12.6",
"build" : "21G115",
"releaseType" : "User"
},
"captureTime" : "2022-10-20 17:23:31.5363 +0800",
"incident" : "A525E1AB-57C5-4F19-95E3-F2358BEBA1F6",
"bug_type" : "309",
"pid" : 44041,
"procExitAbsTime" : 195133057403640,
"cpuType" : "X86-64",
"procName" : "NotepadNext",
"procPath" : "\/Volumes\/*\/NotepadNext.app\/Contents\/MacOS\/NotepadNext",
"bundleInfo" : {"CFBundleIdentifier":"com.yourcompany.NotepadNext"},
"storeInfo" : {"deviceIdentifierForVendor":"DC537AB0-2390-5B2A-B686-6FDC19CD968F","thirdParty":true},
"parentProc" : "launchd",
"parentPid" : 1,
"coalitionName" : "com.yourcompany.NotepadNext",
"crashReporterKey" : "46FFEC86-6324-BE6B-90D6-43FC00DE8F83",
"wakeTime" : 3957,
"bridgeVersion" : {"build":"19P6067","train":"6.6"},
"sleepWakeUUID" : "6A8478BC-09EC-40B7-8F1F-BF64DC7CF72E",
"sip" : "enabled",
"isCorpse" : 1,
"exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"},
"asi" : {"libsystem_c.dylib":["abort() called"]},
"extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
"faultingThread" : 0,
"threads" : [{"triggered":true,"id":4760708,"threadState":{"r13":{"value":206158430216},"rax":{"value":0},"rflags":{"value":582},"cpu":{"value":0},"r14":{"value":6},"rsi":{"value":6},"r8":{"value":140701946548112},"cr2":{"value":140704326950256},"rdx":{"value":0},"r10":{"value":0},"r9":{"value":140703256067960},"r15":{"value":22},"rbx":{"value":4438169088,"symbolLocation":0,"symbol":"_main_thread"},"trap":{"value":133},"err":{"value":33554760},"r11":{"value":582},"rip":{"value":140703256113166,"matchesCrashFrame":1},"rbp":{"value":140701946548464},"rsp":{"value":140701946548424},"r12":{"value":259},"rcx":{"value":140701946548424},"flavor":"x86_THREAD_STATE","rdi":{"value":259}},"queue":"com.apple.main-thread","frames":[{"imageOffset":32782,"symbol":"__pthread_kill","symbolLocation":10,"imageIndex":0},{"imageOffset":25087,"symbol":"pthread_kill","symbolLocation":263,"imageIndex":1},{"imageOffset":531748,"symbol":"abort","symbolLocation":123,"imageIndex":2},{"imageOffset":65666,"symbol":"abort_message","symbolLocation":241,"imageIndex":3},{"imageOffset":4517,"symbol":"demangling_terminate_handler()","symbolLocation":242,"imageIndex":3},{"imageOffset":118297,"symbol":"_objc_terminate()","symbolLocation":104,"imageIndex":4},{"imageOffset":62631,"symbol":"std::__terminate(void (*)())","symbolLocation":8,"imageIndex":3},{"imageOffset":73451,"symbol":"__cxa_rethrow","symbolLocation":99,"imageIndex":3},{"imageOffset":159084,"symbol":"objc_exception_rethrow","symbolLocation":37,"imageIndex":4},{"imageOffset":4616659,"symbol":"-[NSApplication _handleEvent:]","symbolLocation":137,"imageIndex":5},{"imageOffset":195902,"symbol":"-[NSApplication run]","symbolLocation":623,"imageIndex":5},{"imageOffset":92973,"imageIndex":6},{"imageOffset":657590,"symbol":"QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)","symbolLocation":454,"imageIndex":7},{"imageOffset":621810,"symbol":"QCoreApplication::exec()","symbolLocation":130,"imageIndex":7},{"imageOffset":2974031,"symbol":"main","symbolLocation":1967,"imageIndex":8},{"imageOffset":21806,"symbol":"start","symbolLocation":462,"imageIndex":9}]},{"id":4760824,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":4760829,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":4760830,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":4760852,"name":"com.apple.CFSocket.private","frames":[{"imageOffset":40282,"symbol":"__select","symbolLocation":10,"imageIndex":0},{"imageOffset":685689,"symbol":"__CFSocketManager","symbolLocation":641,"imageIndex":10},{"imageOffset":25825,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":1},{"imageOffset":8043,"symbol":"thread_start","symbolLocation":15,"imageIndex":1}]},{"id":4760853,"name":"Thread (pooled)","frames":[{"imageOffset":17386,"symbol":"__psynch_cvwait","symbolLocation":10,"imageIndex":0},{"imageOffset":27247,"symbol":"_pthread_cond_wait","symbolLocation":1249,"imageIndex":1},{"imageOffset":2283942,"imageIndex":7},{"imageOffset":2283198,"imageIndex":7},{"imageOffset":2283022,"symbol":"QWaitCondition::wait(QMutex*, QDeadlineTimer)","symbolLocation":94,"imageIndex":7},{"imageOffset":2259226,"imageIndex":7},{"imageOffset":2235891,"imageIndex":7},{"imageOffset":25825,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":1},{"imageOffset":8043,"symbol":"thread_start","symbolLocation":15,"imageIndex":1}]},{"id":4760854,"name":"Thread (pooled)","frames":[{"imageOffset":17386,"symbol":"__psynch_cvwait","symbolLocation":10,"imageIndex":0},{"imageOffset":27247,"symbol":"_pthread_cond_wait","symbolLocation":1249,"imageIndex":1},{"imageOffset":2283942,"imageIndex":7},{"imageOffset":2283198,"imageIndex":7},{"imageOffset":2283022,"symbol":"QWaitCondition::wait(QMutex*, QDeadlineTimer)","symbolLocation":94,"imageIndex":7},{"imageOffset":2259226,"imageIndex":7},{"imageOffset":2235891,"imageIndex":7},{"imageOffset":25825,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":1},{"imageOffset":8043,"symbol":"thread_start","symbolLocation":15,"imageIndex":1}]},{"id":4760855,"name":"Thread (pooled)","frames":[{"imageOffset":17386,"symbol":"__psynch_cvwait","symbolLocation":10,"imageIndex":0},{"imageOffset":27247,"symbol":"_pthread_cond_wait","symbolLocation":1249,"imageIndex":1},{"imageOffset":2283942,"imageIndex":7},{"imageOffset":2283198,"imageIndex":7},{"imageOffset":2283022,"symbol":"QWaitCondition::wait(QMutex*, QDeadlineTimer)","symbolLocation":94,"imageIndex":7},{"imageOffset":2259226,"imageIndex":7},{"imageOffset":2235891,"imageIndex":7},{"imageOffset":25825,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":1},{"imageOffset":8043,"symbol":"thread_start","symbolLocation":15,"imageIndex":1}]},{"id":4760856,"name":"Thread (pooled)","frames":[{"imageOffset":17386,"symbol":"__psynch_cvwait","symbolLocation":10,"imageIndex":0},{"imageOffset":27247,"symbol":"_pthread_cond_wait","symbolLocation":1249,"imageIndex":1},{"imageOffset":2283942,"imageIndex":7},{"imageOffset":2283198,"imageIndex":7},{"imageOffset":2283022,"symbol":"QWaitCondition::wait(QMutex*, QDeadlineTimer)","symbolLocation":94,"imageIndex":7},{"imageOffset":2259226,"imageIndex":7},{"imageOffset":2235891,"imageIndex":7},{"imageOffset":25825,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":1},{"imageOffset":8043,"symbol":"thread_start","symbolLocation":15,"imageIndex":1}]},{"id":4760857,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":4760858,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":4760859,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":4760863,"name":"QFileInfoGatherer","frames":[{"imageOffset":17386,"symbol":"__psynch_cvwait","symbolLocation":10,"imageIndex":0},{"imageOffset":27247,"symbol":"_pthread_cond_wait","symbolLocation":1249,"imageIndex":1},{"imageOffset":2283163,"imageIndex":7},{"imageOffset":2283022,"symbol":"QWaitCondition::wait(QMutex*, QDeadlineTimer)","symbolLocation":94,"imageIndex":7},{"imageOffset":4534237,"symbol":"QFileInfoGatherer::run()","symbolLocation":125,"imageIndex":11},{"imageOffset":2235891,"imageIndex":7},{"imageOffset":25825,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":1},{"imageOffset":8043,"symbol":"thread_start","symbolLocation":15,"imageIndex":1}]},{"id":4760873,"name":"com.apple.NSEventThread","frames":[{"imageOffset":6522,"symbol":"mach_msg_trap","symbolLocation":10,"imageIndex":0},{"imageOffset":7400,"symbol":"mach_msg","symbolLocation":56,"imageIndex":0},{"imageOffset":525165,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":319,"imageIndex":10},{"imageOffset":518648,"symbol":"__CFRunLoopRun","symbolLocation":1276,"imageIndex":10},{"imageOffset":515644,"symbol":"CFRunLoopRunSpecific","symbolLocation":562,"imageIndex":10},{"imageOffset":1755598,"symbol":"_NSEventThread","symbolLocation":132,"imageIndex":5},{"imageOffset":25825,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":1},{"imageOffset":8043,"symbol":"thread_start","symbolLocation":15,"imageIndex":1}]}],
"usedImages" : [
{
"source" : "P",
"arch" : "x86_64",
"base" : 140703256080384,
"size" : 229376,
"uuid" : "8cc28466-fd2f-3c80-9834-9525b7beac19",
"path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
"name" : "libsystem_kernel.dylib"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 140703256309760,
"size" : 49152,
"uuid" : "b5454e27-e8c7-3fdb-b77f-714f1e82e70b",
"path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
"name" : "libsystem_pthread.dylib"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 140703255064576,
"size" : 561152,
"uuid" : "e42e9d7a-03b4-340b-b61e-dcd45fd4acc0",
"path" : "\/usr\/lib\/system\/libsystem_c.dylib",
"name" : "libsystem_c.dylib"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 140703255990272,
"size" : 90112,
"uuid" : "7b800bb6-32e7-3597-b292-2c4da4c377b1",
"path" : "\/usr\/lib\/libc++abi.dylib",
"name" : "libc++abi.dylib"
},
{
"source" : "P",
"arch" : "x86_64h",
"base" : 140703254814720,
"size" : 237568,
"uuid" : "4d9b0dca-7151-3875-b98e-b255db8267a8",
"path" : "\/usr\/lib\/libobjc.A.dylib",
"name" : "libobjc.A.dylib"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 140703301160960,
"CFBundleShortVersionString" : "6.9",
"CFBundleIdentifier" : "com.apple.AppKit",
"size" : 15269888,
"uuid" : "06015263-62ac-3b08-a298-dc835c18452a",
"path" : "\/System\/Library\/Frameworks\/AppKit.framework\/Versions\/C\/AppKit",
"name" : "AppKit",
"CFBundleVersion" : "2113.60.148"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 4418297856,
"size" : 638976,
"uuid" : "ae5b68a4-b0b8-3fde-8fb0-d59b644c6342",
"path" : "\/Volumes\/*\/NotepadNext.app\/Contents\/PlugIns\/platforms\/libqcocoa.dylib",
"name" : "libqcocoa.dylib"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 4429971456,
"CFBundleShortVersionString" : "6.2",
"CFBundleIdentifier" : "org.qt-project.QtCore",
"size" : 5160960,
"uuid" : "df4f842f-5cd0-3b3f-beaa-8c379ace45da",
"path" : "\/Volumes\/*\/NotepadNext.app\/Contents\/Frameworks\/QtCore.framework\/Versions\/A\/QtCore",
"name" : "QtCore",
"CFBundleVersion" : "6.2.4"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 4402241536,
"CFBundleIdentifier" : "com.yourcompany.NotepadNext",
"size" : 3981312,
"uuid" : "2ae4ae75-0b34-37c2-987c-023b89b6fbe3",
"path" : "\/Volumes\/*\/NotepadNext.app\/Contents\/MacOS\/NotepadNext",
"name" : "NotepadNext"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 4437643264,
"size" : 442368,
"uuid" : "71febccd-d9dc-3599-9971-2b3407c588a8",
"path" : "\/usr\/lib\/dyld",
"name" : "dyld"
},
{
"source" : "P",
"arch" : "x86_64h",
"base" : 140703256625152,
"CFBundleShortVersionString" : "6.9",
"CFBundleIdentifier" : "com.apple.CoreFoundation",
"size" : 5255168,
"uuid" : "93c48919-68af-367e-9a67-db4159bc962c",
"path" : "\/System\/Library\/Frameworks\/CoreFoundation.framework\/Versions\/A\/CoreFoundation",
"name" : "CoreFoundation",
"CFBundleVersion" : "1866"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 4409896960,
"CFBundleShortVersionString" : "6.2",
"CFBundleIdentifier" : "org.qt-project.QtGui",
"size" : 6799360,
"uuid" : "9c3cea0d-8586-3b34-ae11-81dbc6e872ed",
"path" : "\/Volumes\/*\/NotepadNext.app\/Contents\/Frameworks\/QtGui.framework\/Versions\/A\/QtGui",
"name" : "QtGui",
"CFBundleVersion" : "6.2.4"
}
],
"sharedCache" : {
"base" : 140703253053440,
"size" : 19331678208,
"uuid" : "73669942-bd8a-3e40-951f-7fbe07b51cb8"
},
"vmSummary" : "ReadOnly portion of Libraries: Total=891.5M resident=0K(0%) swapped_out_or_unallocated=891.5M(100%)\nWritable regions: Total=1.8G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.8G(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nAccelerate framework 1024K 8 \nActivity Tracing 256K 1 \nCG backing stores 2688K 4 \nCG image 2100K 3 \nColorSync 228K 27 \nCoreAnimation 84K 6 \nCoreGraphics 12K 2 \nCoreServices 624K 2 \nCoreUI image data 800K 5 \nFoundation 16K 1 \nKernel Alloc Once 8K 1 \nMALLOC 326.6M 61 \nMALLOC guard page 48K 10 \nMALLOC_MEDIUM (reserved) 1.1G 9 reserved VM address space (unallocated)\nMALLOC_NANO (reserved) 384.0M 1 reserved VM address space (unallocated)\nObjC additional data 15K 1 \nSTACK GUARD 56.1M 14 \nStack 14.6M 14 \nVM_ALLOCATE 316K 14 \n__CTF 756 1 \n__DATA 19.8M 330 \n__DATA_CONST 12.0M 181 \n__DATA_DIRTY 535K 99 \n__FONT_DATA 4K 1 \n__LINKEDIT 649.6M 21 \n__TEXT 242.0M 346 \n__UNICODE 592K 1 \ndyld private memory 1024K 1 \nmapped file 159.8M 30 \nshared memory 1292K 17 \n=========== ======= ======= \nTOTAL 2.9G 1212 \nTOTAL, minus reserved VM space 1.5G 1212 \n",
"legacyInfo" : {
"threadTriggered" : {
"queue" : "com.apple.main-thread"
}
},
"trialInfo" : {
"rollouts" : [
{
"rolloutId" : "61af99aeda72d16a4beb7756",
"factorPackIds" : {
},
"deploymentId" : 240000396
},
{
"rolloutId" : "61301e3a61217b3110231469",
"factorPackIds" : {
"SIRI_FIND_MY_CONFIGURATION_FILES" : "6348493aa52bb16adc4e4d06"
},
"deploymentId" : 240000021
}
],
"experiments" : [
]
}
}
Model: MacBookPro16,1, BootROM 1731.140.2.0.0 (iBridge: 19.16.16067.0.0,0), 6 processors, 6-Core Intel Core i7, 2.6 GHz, 32 GB, SMC
Graphics: Intel UHD Graphics 630, Intel UHD Graphics 630, Built-In
Display: Color LCD, 3072 x 1920 Retina, Main, MirrorOff, Online
Graphics: AMD Radeon Pro 5300M, AMD Radeon Pro 5300M, PCIe, 4 GB
Memory Module: BANK 0/ChannelA-DIMM0, 16 GB, DDR4, 2667 MHz, Micron, MT40A2G8NEA-062E:J
Memory Module: BANK 2/ChannelB-DIMM0, 16 GB, DDR4, 2667 MHz, Micron, MT40A2G8NEA-062E:J
AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x7BF), wl0: Jul 12 2021 18:02:56 version 9.30.464.0.32.5.76 FWID 01-c081cfed
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: iPhone, Ethernet, en143
Network Service: iPhone 2, Ethernet, en144
Network Service: iPhone 3, Ethernet, en145
USB Device: USB31Bus
USB Device: iPhone
USB Device: T2Bus
USB Device: composite_device
USB Device: Touch Bar Backlight
USB Device: Touch Bar Display
USB Device: Apple Internal Keyboard / Trackpad
USB Device: Headset
USB Device: Ambient Light Sensor
USB Device: FaceTime HD Camera (Built-in)
USB Device: Apple T2 Controller
Thunderbolt Bus: MacBook Pro, Apple Inc., 63.5
Thunderbolt Bus: MacBook Pro, Apple Inc., 63.5
@whizsail Thanks for trying out the Qt6 version. It still shows it is crashing somewhere deeper in the Qt and system libraries, so honestly not sure if this is a Qt bug or if there's some setting/feature the application needs to adjust to get it to function properly.
@dail8859 Thanks for replying my question , hope we will use best version of Notepad Next, at the same time ,thx for supply this good software to us !!!
Working on Windows. When entering the character, the stack is as follows:
Not working on Mac. When entering the character, the stack is as follows:
By comparing with the working stack on Windows, seems on Mac the input method event is wrongly detected as keyPressEvent
. If the character can be detected as inputMethodEvent
on Mac, then most likely it won't crash.
@czlitony Excellent info!
Mac the input method event is wrongly detected as keyPressEvent
So would you assume this is something purely in the Scintilla library? Or is there something Qt related that Notepad Next can possibly enabled/tweaked to have the Scintilla library process events correctly?
I have no idea yet, need more time to investigate it.
When entering the character ——
on Mac, it triggers keyPressEvent
, however, it triggers inputMethodEvent
on Windows. Seems Qt behaves differently on Windows and Mac, not sure if it's a Qt bug.
I have found a way to avoid the crash issue in pr https://github.com/dail8859/NotepadNext/pull/372.
macos M1 chip
When type "——" ( _ in simplified chinese input method), it would crash. Every time.
Debug details
``` ------------------------------------- Translated Report (Full Report Below) ------------------------------------- Process: NotepadNext [97598] Path: /Applications/NotepadNext.app/Contents/MacOS/NotepadNext Identifier: com.yourcompany.NotepadNext Version: ??? Code Type: X86-64 (Translated) Parent Process: launchd [1] User ID: 501 Date/Time: 2022-08-30 11:49:01.5016 +0800 OS Version: macOS 12.4 (21F79) Report Version: 12 Anonymous UUID: 0F91CB64-4FFE-0ED7-A09A-92DDDE522A0E Sleep/Wake UUID: BA411EF6-7130-4D37-9CBF-AF19EDE6E042 Time Awake Since Boot: 36000 seconds Time Since Wake: 1860 seconds System Integrity Protection: enabled Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Application Specific Information: abort() called Kernel Triage: VM - pmap_enter failed with resource shortage VM - pmap_enter failed with resource shortage VM - pmap_enter failed with resource shortage VM - pmap_enter failed with resource shortage Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 ??? 0x7ff8ae4ae940 ??? 1 libsystem_kernel.dylib 0x7ff81deff00e __pthread_kill + 10 2 libsystem_pthread.dylib 0x7ff81df351ff pthread_kill + 263 3 libsystem_c.dylib 0x7ff81de80d24 abort + 123 4 libc++abi.dylib 0x7ff81def1082 abort_message + 241 5 libc++abi.dylib 0x7ff81dee21a5 demangling_terminate_handler() + 242 6 libobjc.A.dylib 0x7ff81dddf016 _objc_terminate() + 104 7 libc++abi.dylib 0x7ff81def04a7 std::__terminate(void (*)()) + 8 8 libc++abi.dylib 0x7ff81def2eeb __cxa_rethrow + 99 9 libobjc.A.dylib 0x7ff81dde8e61 objc_exception_rethrow + 37 10 AppKit 0x7ff820d975e3 -[NSApplication _handleEvent:] + 137 11 AppKit 0x7ff82095ff8e -[NSApplication run] + 623 12 libqcocoa.dylib 0x10e7ec62f 0x10e7b3000 + 235055 13 QtCore 0x1102c9acf QEventLoop::exec(QFlags