Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Developing QScintilla based application then crashes
QtWS25 Last Chance

Developing QScintilla based application then crashes

Scheduled Pinned Locked Moved Unsolved General and Desktop
qscintillaqt-6app-apple-crash
2 Posts 2 Posters 220 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JackMyson
    wrote on 28 Jun 2023, 11:42 last edited by
    #1

    I'm currently using QScintilla to develop my own text editor. However, after the application is closed as in the normal way (clicking the top-left corner of the window in macOS), the apple debugger has reported the application as crashes, as follow:

    -------------------------------------
    Translated Report (Full Report Below)
    -------------------------------------
    
    Process:               StormText [96334]
    Path:                  /Users/USER/*/StormText.app/Contents/MacOS/StormText
    Identifier:            org.BrightSoftwareFoundation.StormText
    Version:               ???
    Code Type:             X86-64 (Native)
    Parent Process:        qtcreator_processlauncher [95102]
    User ID:               501
    
    Date/Time:             2023-06-28 19:34:16.7778 +0800
    OS Version:            macOS 13.4 (22F66)
    Report Version:        12
    Anonymous UUID:        4566117B-6536-0C74-6A7F-07A965E31605
    
    Sleep/Wake UUID:       8587F755-37EC-46D9-A3B9-918C8F2D72A7
    
    Time Awake Since Boot: 220000 seconds
    Time Since Wake:       6638 seconds
    
    System Integrity Protection: enabled
    
    Crashed Thread:        0  Dispatch queue: com.apple.main-thread
    
    Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000180
    Exception Codes:       0x0000000000000001, 0x0000000000000180
    
    Termination Reason:    Namespace SIGNAL, Code 11 Segmentation fault: 11
    Terminating Process:   exc handler [96334]
    
    VM Region Info: 0x180 is not in any region.  Bytes before following region: 140737488346752
          REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
          UNUSED SPACE AT START
    --->  
          shared memory            7fffffffe000-7ffffffff000 [    4K] r-x/r-x SM=SHM  
    
    Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
    0   libqscintilla2_qt6.15.2.0.dylib	       0x10529a894 QsciDocument::isModified() const + 4
    1   StormText                     	       0x104d21a0f BrStormTextMainWindow::handleTabChanged(int) + 223
    2   QtCore                        	       0x107cb275a 0x107bf5000 + 776026
    3   QtWidgets                     	       0x1062dbac0 0x1060b1000 + 2271936
    4   QtCore                        	       0x107cb275a 0x107bf5000 + 776026
    5   QtWidgets                     	       0x1062bc251 QTabBar::removeTab(int) + 913
    6   QtWidgets                     	       0x1062dbb01 0x1060b1000 + 2272001
    7   QtCore                        	       0x107cb275a 0x107bf5000 + 776026
    8   QtWidgets                     	       0x1062b6847 0x1060b1000 + 2119751
    9   QtCore                        	       0x107cb275a 0x107bf5000 + 776026
    10  QtWidgets                     	       0x1060f44de QStackedLayout::takeAt(int) + 446
    11  QtWidgets                     	       0x1060f04e5 QLayout::removeWidget(QWidget*) + 85
    12  StormText                     	       0x104d21b2b BrStormTextMainWindow::closeFile(bool) + 75
    13  QtCore                        	       0x107cb275a 0x107bf5000 + 776026
    14  QtGui                         	       0x1058ddb2d QAction::activate(QAction::ActionEvent) + 397
    15  QtCore                        	       0x107caa906 QObject::event(QEvent*) + 598
    16  QtWidgets                     	       0x1060be367 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 247
    17  QtWidgets                     	       0x1060bf18c QApplication::notify(QObject*, QEvent*) + 508
    18  QtCore                        	       0x107c6373a QCoreApplication::notifyInternal2(QObject*, QEvent*) + 170
    19  QtCore                        	       0x107c6490c QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) + 1468
    20  libqcocoa.dylib               	       0x105d11166 0x105cf9000 + 98662
    21  libqcocoa.dylib               	       0x105d11b9d 0x105cf9000 + 101277
    22  CoreFoundation                	    0x7ff81c82bf2a __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    23  CoreFoundation                	    0x7ff81c82becc __CFRunLoopDoSource0 + 157
    24  CoreFoundation                	    0x7ff81c82bca5 __CFRunLoopDoSources0 + 217
    25  CoreFoundation                	    0x7ff81c82a92f __CFRunLoopRun + 916
    26  CoreFoundation                	    0x7ff81c829f31 CFRunLoopRunSpecific + 560
    27  HIToolbox                     	    0x7ff8262a5dad RunCurrentEventLoopInMode + 292
    28  HIToolbox                     	    0x7ff8262a5bbe ReceiveNextEventCommon + 657
    29  HIToolbox                     	    0x7ff8262a5918 _BlockUntilNextEventMatchingListInModeWithFilter + 64
    30  AppKit                        	    0x7ff81f8be5d0 _DPSNextEvent + 858
    31  AppKit                        	    0x7ff81f8bd47a -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1214
    32  AppKit                        	    0x7ff81f8afae8 -[NSApplication run] + 586
    33  libqcocoa.dylib               	       0x105d105b7 0x105cf9000 + 95671
    34  QtCore                        	       0x107c6cf36 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 486
    35  QtCore                        	       0x107c63d27 QCoreApplication::exec() + 119
    36  StormText                     	       0x104d2299f main + 63
    37  dyld                          	    0x7ff81c3f641f start + 1903
    
                                    VIRTUAL   REGION 
    REGION TYPE                        SIZE    COUNT (non-coalesced) 
    ===========                     =======  ======= 
    Accelerate framework               128K        1 
    Activity Tracing                   256K        1 
    CG backing stores                  528K        4 
    CG image                            60K        3 
    ColorSync                          260K       29 
    CoreAnimation                       52K        9 
    CoreGraphics                        12K        2 
    CoreImage                            4K        1 
    CoreServices                         4K        1 
    CoreUI image data                  828K       11 
    Foundation                          16K        1 
    Kernel Alloc Once                    8K        1 
    MALLOC                           184.8M       56 
    MALLOC guard page                   32K        8 
    MALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)
    STACK GUARD                       56.0M       11 
    Stack                             13.1M       12 
    VM_ALLOCATE                       79.8M       14 
    VM_ALLOCATE (reserved)             5.5G        7         reserved VM address space (unallocated)
    __CTF                               824        1 
    __DATA                            19.1M      378 
    __DATA_CONST                      15.6M      230 
    __DATA_DIRTY                       653K      108 
    __FONT_DATA                        2352        1 
    __LINKEDIT                       177.9M       29 
    __OBJC_RO                         66.3M        1 
    __OBJC_RW                         2013K        2 
    __TEXT                           292.7M      396 
    dyld private memory                260K        2 
    mapped file                      191.9M       41 
    shared memory                      780K       17 
    ===========                     =======  ======= 
    TOTAL                              6.9G     1379 
    TOTAL, minus reserved VM space     1.1G     1379 
    
    
    
    -----------
    Full Report
    -----------
    
    {"app_name":"StormText","timestamp":"2023-06-28 19:34:17.00 +0800","app_version":"","slice_uuid":"473fc644-f133-35f0-b0f3-7c7246ad4fde","build_version":"","platform":1,"bundleID":"org.BrightSoftwareFoundation.StormText","share_with_app_devs":1,"is_first_party":0,"bug_type":"309","os_version":"macOS 13.4 (22F66)","roots_installed":0,"name":"StormText","incident_id":"BA706EBC-2E9A-4BB7-83A2-683E7B1394A7"}
    {
      "uptime" : 220000,
      "procRole" : "Foreground",
      "version" : 2,
      "userID" : 501,
      "deployVersion" : 210,
      "modelCode" : "MacBookAir6,1",
      "coalitionID" : 3167,
      "osVersion" : {
        "train" : "macOS 13.4",
        "build" : "22F66",
        "releaseType" : "User"
      },
      "captureTime" : "2023-06-28 19:34:16.7778 +0800",
      "incident" : "BA706EBC-2E9A-4BB7-83A2-683E7B1394A7",
      "pid" : 96334,
      "cpuType" : "X86-64",
      "roots_installed" : 0,
      "bug_type" : "309",
      "procLaunch" : "2023-06-28 19:34:06.0880 +0800",
      "procStartAbsTime" : 226592503462034,
      "procExitAbsTime" : 226603161853910,
      "procName" : "StormText",
      "procPath" : "\/Users\/USER\/*\/StormText.app\/Contents\/MacOS\/StormText",
      "bundleInfo" : {"CFBundleIdentifier":"org.BrightSoftwareFoundation.StormText"},
      "storeInfo" : {"deviceIdentifierForVendor":"3AF01067-5158-5C8F-9FB0-05F8F401B1DD","thirdParty":true},
      "parentProc" : "qtcreator_processlauncher",
      "parentPid" : 95102,
      "coalitionName" : "org.qt-project.qtcreator",
      "crashReporterKey" : "4566117B-6536-0C74-6A7F-07A965E31605",
      "codeSigningID" : "",
      "codeSigningTeamID" : "",
      "codeSigningValidationCategory" : 0,
      "codeSigningTrustLevel" : 0,
      "wakeTime" : 6638,
      "sleepWakeUUID" : "8587F755-37EC-46D9-A3B9-918C8F2D72A7",
      "sip" : "enabled",
      "vmRegionInfo" : "0x180 is not in any region.  Bytes before following region: 140737488346752\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      UNUSED SPACE AT START\n--->  \n      shared memory            7fffffffe000-7ffffffff000 [    4K] r-x\/r-x SM=SHM  ",
      "exception" : {"codes":"0x0000000000000001, 0x0000000000000180","rawCodes":[1,384],"type":"EXC_BAD_ACCESS","signal":"SIGSEGV","subtype":"KERN_INVALID_ADDRESS at 0x0000000000000180"},
      "termination" : {"flags":0,"code":11,"namespace":"SIGNAL","indicator":"Segmentation fault: 11","byProc":"exc handler","byPid":96334},
      "vmregioninfo" : "0x180 is not in any region.  Bytes before following region: 140737488346752\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      UNUSED SPACE AT START\n--->  \n      shared memory            7fffffffe000-7ffffffff000 [    4K] r-x\/r-x SM=SHM  ",
      "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":18,"task_for_pid":3},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
      "faultingThread" : 0,
      "threads" : [{"triggered":true,"id":1926146,"instructionState":{"instructionStream":{"bytes":[223,190,238,7,0,0,49,210,49,201,232,109,71,255,255,73,137,196,72,137,223,190,54,9,0,0,49,210,76,137,249,232,120,71,255,255,72,137,223,190,53,9,0,0,232,171,73,255,255,73,137,199,72,137,223,190,239,7,0,0,68,137,226,232,248,68,255,255,73,139,70,8,76,137,56,255,64,8,91,65,92,65,94,65,95,93,195,15,31,68,0,0,85,72,137,229,72,139,71,8,138,64,16,93,195,15,31,0,85,72,137,229,72,139,71,8,64,136,112,16,93,195,144,144,85,72,137,229,65,87,65,86,83,72,131,236,72,72,137,251,232,43,80,28,0,72,141,5,92,184,32,0,72,131,192,16,72,137,3,199,67,24,255,255,255,255,76,141,115,32,76,137,247,232,252,78,28,0,199,67,48,0,0,0,0,102,199,67,52,255,255,72],"offset":96}},"threadState":{"r13":{"value":140701973148472},"rax":{"value":0},"rflags":{"value":66054},"cpu":{"value":3},"r14":{"value":4294967295},"rsi":{"value":0},"r8":{"value":1024},"cr2":{"value":384},"rdx":{"value":140704737432384,"symbolLocation":0,"symbol":"_NSAPCache"},"r10":{"value":1072},"r9":{"value":1023},"r15":{"value":140701973148472},"rbx":{"value":140701973139712},"trap":{"value":14,"description":"(no mapping for user data read)"},"err":{"value":4},"r11":{"value":105553176835556},"rip":{"value":4381583508,"matchesCrashFrame":1},"rbp":{"value":140701973139664},"rsp":{"value":140701973139664},"r12":{"value":140704737314368,"symbolLocation":0,"symbol":"_main_thread"},"rcx":{"value":4294967295},"flavor":"x86_THREAD_STATE","rdi":{"value":376}},"queue":"com.apple.main-thread","frames":[{"imageOffset":133268,"symbol":"QsciDocument::isModified() const","symbolLocation":4,"imageIndex":1},{"imageOffset":203279,"symbol":"BrStormTextMainWindow::handleTabChanged(int)","symbolLocation":223,"imageIndex":0},{"imageOffset":776026,"imageIndex":6},{"imageOffset":2271936,"imageIndex":3},{"imageOffset":776026,"imageIndex":6},{"imageOffset":2142801,"symbol":"QTabBar::removeTab(int)","symbolLocation":913,"imageIndex":3},{"imageOffset":2272001,"imageIndex":3},{"imageOffset":776026,"imageIndex":6},{"imageOffset":2119751,"imageIndex":3},{"imageOffset":776026,"imageIndex":6},{"imageOffset":275678,"symbol":"QStackedLayout::takeAt(int)","symbolLocation":446,"imageIndex":3},{"imageOffset":259301,"symbol":"QLayout::removeWidget(QWidget*)","symbolLocation":85,"imageIndex":3},{"imageOffset":203563,"symbol":"BrStormTextMainWindow::closeFile(bool)","symbolLocation":75,"imageIndex":0},{"imageOffset":776026,"imageIndex":6},{"imageOffset":4107053,"symbol":"QAction::activate(QAction::ActionEvent)","symbolLocation":397,"imageIndex":4},{"imageOffset":743686,"symbol":"QObject::event(QEvent*)","symbolLocation":598,"imageIndex":6},{"imageOffset":54119,"symbol":"QApplicationPrivate::notify_helper(QObject*, QEvent*)","symbolLocation":247,"imageIndex":3},{"imageOffset":57740,"symbol":"QApplication::notify(QObject*, QEvent*)","symbolLocation":508,"imageIndex":3},{"imageOffset":452410,"symbol":"QCoreApplication::notifyInternal2(QObject*, QEvent*)","symbolLocation":170,"imageIndex":6},{"imageOffset":456972,"symbol":"QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*)","symbolLocation":1468,"imageIndex":6},{"imageOffset":98662,"imageIndex":11},{"imageOffset":101277,"imageIndex":11},{"imageOffset":511786,"symbol":"__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__","symbolLocation":17,"imageIndex":30},{"imageOffset":511692,"symbol":"__CFRunLoopDoSource0","symbolLocation":157,"imageIndex":30},{"imageOffset":511141,"symbol":"__CFRunLoopDoSources0","symbolLocation":217,"imageIndex":30},{"imageOffset":506159,"symbol":"__CFRunLoopRun","symbolLocation":916,"imageIndex":30},{"imageOffset":503601,"symbol":"CFRunLoopRunSpecific","symbolLocation":560,"imageIndex":30},{"imageOffset":191917,"symbol":"RunCurrentEventLoopInMode","symbolLocation":292,"imageIndex":31},{"imageOffset":191422,"symbol":"ReceiveNextEventCommon","symbolLocation":657,"imageIndex":31},{"imageOffset":190744,"symbol":"_BlockUntilNextEventMatchingListInModeWithFilter","symbolLocation":64,"imageIndex":31},{"imageOffset":255440,"symbol":"_DPSNextEvent","symbolLocation":858,"imageIndex":32},{"imageOffset":251002,"symbol":"-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]","symbolLocation":1214,"imageIndex":32},{"imageOffset":195304,"symbol":"-[NSApplication run]","symbolLocation":586,"imageIndex":32},{"imageOffset":95671,"imageIndex":11},{"imageOffset":491318,"symbol":"QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)","symbolLocation":486,"imageIndex":6},{"imageOffset":453927,"symbol":"QCoreApplication::exec()","symbolLocation":119,"imageIndex":6},{"imageOffset":207263,"symbol":"main","symbolLocation":63,"imageIndex":0},{"imageOffset":25631,"symbol":"start","symbolLocation":1903,"imageIndex":33}]},{"id":1926151,"frames":[{"imageOffset":7088,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":34}]},{"id":1926169,"frames":[{"imageOffset":7088,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":34}]},{"id":1926187,"frames":[{"imageOffset":7088,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":34}]},{"id":1926188,"frames":[{"imageOffset":7088,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":34}]},{"id":1926189,"frames":[{"imageOffset":7088,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":34}]},{"id":1926207,"name":"Thread (pooled)","frames":[{"imageOffset":16622,"symbol":"__psynch_cvwait","symbolLocation":10,"imageIndex":35},{"imageOffset":26456,"symbol":"_pthread_cond_wait","symbolLocation":1242,"imageIndex":34},{"imageOffset":2150316,"imageIndex":6},{"imageOffset":2149550,"imageIndex":6},{"imageOffset":2149374,"symbol":"QWaitCondition::wait(QMutex*, QDeadlineTimer)","symbolLocation":94,"imageIndex":6},{"imageOffset":2125781,"imageIndex":6},{"imageOffset":2108083,"imageIndex":6},{"imageOffset":25043,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":34},{"imageOffset":7123,"symbol":"thread_start","symbolLocation":15,"imageIndex":34}]},{"id":1926208,"name":"Thread (pooled)","frames":[{"imageOffset":16622,"symbol":"__psynch_cvwait","symbolLocation":10,"imageIndex":35},{"imageOffset":26456,"symbol":"_pthread_cond_wait","symbolLocation":1242,"imageIndex":34},{"imageOffset":2150316,"imageIndex":6},{"imageOffset":2149550,"imageIndex":6},{"imageOffset":2149374,"symbol":"QWaitCondition::wait(QMutex*, QDeadlineTimer)","symbolLocation":94,"imageIndex":6},{"imageOffset":2125781,"imageIndex":6},{"imageOffset":2108083,"imageIndex":6},{"imageOffset":25043,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":34},{"imageOffset":7123,"symbol":"thread_start","symbolLocation":15,"imageIndex":34}]},{"id":1926209,"name":"Thread (pooled)","frames":[{"imageOffset":16622,"symbol":"__psynch_cvwait","symbolLocation":10,"imageIndex":35},{"imageOffset":26456,"symbol":"_pthread_cond_wait","symbolLocation":1242,"imageIndex":34},{"imageOffset":2150316,"imageIndex":6},{"imageOffset":2149550,"imageIndex":6},{"imageOffset":2149374,"symbol":"QWaitCondition::wait(QMutex*, QDeadlineTimer)","symbolLocation":94,"imageIndex":6},{"imageOffset":2125781,"imageIndex":6},{"imageOffset":2108083,"imageIndex":6},{"imageOffset":25043,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":34},{"imageOffset":7123,"symbol":"thread_start","symbolLocation":15,"imageIndex":34}]},{"id":1926210,"name":"Thread (pooled)","frames":[{"imageOffset":16622,"symbol":"__psynch_cvwait","symbolLocation":10,"imageIndex":35},{"imageOffset":26456,"symbol":"_pthread_cond_wait","symbolLocation":1242,"imageIndex":34},{"imageOffset":2150316,"imageIndex":6},{"imageOffset":2149550,"imageIndex":6},{"imageOffset":2149374,"symbol":"QWaitCondition::wait(QMutex*, QDeadlineTimer)","symbolLocation":94,"imageIndex":6},{"imageOffset":2125781,"imageIndex":6},{"imageOffset":2108083,"imageIndex":6},{"imageOffset":25043,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":34},{"imageOffset":7123,"symbol":"thread_start","symbolLocation":15,"imageIndex":34}]},{"id":1926214,"name":"com.apple.NSEventThread","frames":[{"imageOffset":5554,"symbol":"mach_msg2_trap","symbolLocation":10,"imageIndex":35},{"imageOffset":63277,"symbol":"mach_msg2_internal","symbolLocation":78,"imageIndex":35},{"imageOffset":34276,"symbol":"mach_msg_overwrite","symbolLocation":692,"imageIndex":35},{"imageOffset":6298,"symbol":"mach_msg","symbolLocation":19,"imageIndex":35},{"imageOffset":512111,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":145,"imageIndex":30},{"imageOffset":506608,"symbol":"__CFRunLoopRun","symbolLocation":1365,"imageIndex":30},{"imageOffset":503601,"symbol":"CFRunLoopRunSpecific","symbolLocation":560,"imageIndex":30},{"imageOffset":1697673,"symbol":"_NSEventThread","symbolLocation":132,"imageIndex":32},{"imageOffset":25043,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":34},{"imageOffset":7123,"symbol":"thread_start","symbolLocation":15,"imageIndex":34}]}], 
    ...
    ],
      "sharedCache" : {
      "base" : 140703601885184,
      "size" : 21474836480,
      "uuid" : "867bf49e-1375-3009-9693-a1621961928a"
    },
      "vmSummary" : "ReadOnly portion of Libraries: Total=470.6M resident=0K(0%) swapped_out_or_unallocated=470.6M(100%)\nWritable regions: Total=6.1G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=6.1G(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nAccelerate framework               128K        1 \nActivity Tracing                   256K        1 \nCG backing stores                  528K        4 \nCG image                            60K        3 \nColorSync                          260K       29 \nCoreAnimation                       52K        9 \nCoreGraphics                        12K        2 \nCoreImage                            4K        1 \nCoreServices                         4K        1 \nCoreUI image data                  828K       11 \nFoundation                          16K        1 \nKernel Alloc Once                    8K        1 \nMALLOC                           184.8M       56 \nMALLOC guard page                   32K        8 \nMALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)\nSTACK GUARD                       56.0M       11 \nStack                             13.1M       12 \nVM_ALLOCATE                       79.8M       14 \nVM_ALLOCATE (reserved)             5.5G        7         reserved VM address space (unallocated)\n__CTF                               824        1 \n__DATA                            19.1M      378 \n__DATA_CONST                      15.6M      230 \n__DATA_DIRTY                       653K      108 \n__FONT_DATA                        2352        1 \n__LINKEDIT                       177.9M       29 \n__OBJC_RO                         66.3M        1 \n__OBJC_RW                         2013K        2 \n__TEXT                           292.7M      396 \ndyld private memory                260K        2 \nmapped file                      191.9M       41 \nshared memory                      780K       17 \n===========                     =======  ======= \nTOTAL                              6.9G     1379 \nTOTAL, minus reserved VM space     1.1G     1379 \n",
      "legacyInfo" : {
      "threadTriggered" : {
        "queue" : "com.apple.main-thread"
      }
    },
      "logWritingSignature" : "9ae1518ab207e03ca2d129fa731c88abd87e2e97",
      "trialInfo" : {
      "rollouts" : [
        {
          "rolloutId" : "63582c5f8a53461413999550",
          "factorPackIds" : {
    
          },
          "deploymentId" : 240000002
        },
        {
          "rolloutId" : "62c73fd17cce0d1b0bcb8a02",
          "factorPackIds" : {
            "SIRI_DIALOG_ASSETS" : "645e39c59e69a025b0a37ea1"
          },
          "deploymentId" : 240000115
        }
      ],
      "experiments" : [
    
      ]
    }
    }
    
    Model: MacBookAir6,1, BootROM 478.0.0.0.0, 2 processors, Dual-Core Intel Core i5, 1.3 GHz, 4 GB, SMC 2.12f143
    Graphics: Intel HD Graphics 5000, Intel HD Graphics 5000, Built-In
    Display: Color LCD, 1366 x 768 (WSGA - Wide eXtended Graphics Array), Main, MirrorOff, Online
    Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1600 MHz, 0x80AD, 0x483943434E4E4E384A544D4C41522D4E544D
    Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1600 MHz, 0x80AD, 0x483943434E4E4E384A544D4C41522D4E544D
    AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x117), Broadcom BCM43xx 1.0 (7.77.111.1 AirPortDriverBrcmNIC-1771)
    AirPort: 
    Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
    Network Service: Wi-Fi, AirPort, en0
    Serial ATA Device: APPLE SSD TS0128F, 121.33 GB
    USB Device: USB30Bus
    USB Device: BRCM20702 Hub
    USB Device: Bluetooth USB Host Controller
    Thunderbolt Bus: MacBook Air, Apple Inc., 23.6
    

    As you can see, I am running my macOS Ventura 13.4 on Qt 6.5.1 and QScintilla 2.14.0. When the Scintilla component reaches its isModified thread, the application has crashed. This was all happened after I had closed the app's window.

    What is the solution for this problem? Any help and comments would be greatly appreciate and thanks!

    Thank you!

    jsulmJ 1 Reply Last reply 28 Jun 2023, 12:16
    0
    • J JackMyson
      28 Jun 2023, 11:42

      I'm currently using QScintilla to develop my own text editor. However, after the application is closed as in the normal way (clicking the top-left corner of the window in macOS), the apple debugger has reported the application as crashes, as follow:

      -------------------------------------
      Translated Report (Full Report Below)
      -------------------------------------
      
      Process:               StormText [96334]
      Path:                  /Users/USER/*/StormText.app/Contents/MacOS/StormText
      Identifier:            org.BrightSoftwareFoundation.StormText
      Version:               ???
      Code Type:             X86-64 (Native)
      Parent Process:        qtcreator_processlauncher [95102]
      User ID:               501
      
      Date/Time:             2023-06-28 19:34:16.7778 +0800
      OS Version:            macOS 13.4 (22F66)
      Report Version:        12
      Anonymous UUID:        4566117B-6536-0C74-6A7F-07A965E31605
      
      Sleep/Wake UUID:       8587F755-37EC-46D9-A3B9-918C8F2D72A7
      
      Time Awake Since Boot: 220000 seconds
      Time Since Wake:       6638 seconds
      
      System Integrity Protection: enabled
      
      Crashed Thread:        0  Dispatch queue: com.apple.main-thread
      
      Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
      Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000180
      Exception Codes:       0x0000000000000001, 0x0000000000000180
      
      Termination Reason:    Namespace SIGNAL, Code 11 Segmentation fault: 11
      Terminating Process:   exc handler [96334]
      
      VM Region Info: 0x180 is not in any region.  Bytes before following region: 140737488346752
            REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
            UNUSED SPACE AT START
      --->  
            shared memory            7fffffffe000-7ffffffff000 [    4K] r-x/r-x SM=SHM  
      
      Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
      0   libqscintilla2_qt6.15.2.0.dylib	       0x10529a894 QsciDocument::isModified() const + 4
      1   StormText                     	       0x104d21a0f BrStormTextMainWindow::handleTabChanged(int) + 223
      2   QtCore                        	       0x107cb275a 0x107bf5000 + 776026
      3   QtWidgets                     	       0x1062dbac0 0x1060b1000 + 2271936
      4   QtCore                        	       0x107cb275a 0x107bf5000 + 776026
      5   QtWidgets                     	       0x1062bc251 QTabBar::removeTab(int) + 913
      6   QtWidgets                     	       0x1062dbb01 0x1060b1000 + 2272001
      7   QtCore                        	       0x107cb275a 0x107bf5000 + 776026
      8   QtWidgets                     	       0x1062b6847 0x1060b1000 + 2119751
      9   QtCore                        	       0x107cb275a 0x107bf5000 + 776026
      10  QtWidgets                     	       0x1060f44de QStackedLayout::takeAt(int) + 446
      11  QtWidgets                     	       0x1060f04e5 QLayout::removeWidget(QWidget*) + 85
      12  StormText                     	       0x104d21b2b BrStormTextMainWindow::closeFile(bool) + 75
      13  QtCore                        	       0x107cb275a 0x107bf5000 + 776026
      14  QtGui                         	       0x1058ddb2d QAction::activate(QAction::ActionEvent) + 397
      15  QtCore                        	       0x107caa906 QObject::event(QEvent*) + 598
      16  QtWidgets                     	       0x1060be367 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 247
      17  QtWidgets                     	       0x1060bf18c QApplication::notify(QObject*, QEvent*) + 508
      18  QtCore                        	       0x107c6373a QCoreApplication::notifyInternal2(QObject*, QEvent*) + 170
      19  QtCore                        	       0x107c6490c QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) + 1468
      20  libqcocoa.dylib               	       0x105d11166 0x105cf9000 + 98662
      21  libqcocoa.dylib               	       0x105d11b9d 0x105cf9000 + 101277
      22  CoreFoundation                	    0x7ff81c82bf2a __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
      23  CoreFoundation                	    0x7ff81c82becc __CFRunLoopDoSource0 + 157
      24  CoreFoundation                	    0x7ff81c82bca5 __CFRunLoopDoSources0 + 217
      25  CoreFoundation                	    0x7ff81c82a92f __CFRunLoopRun + 916
      26  CoreFoundation                	    0x7ff81c829f31 CFRunLoopRunSpecific + 560
      27  HIToolbox                     	    0x7ff8262a5dad RunCurrentEventLoopInMode + 292
      28  HIToolbox                     	    0x7ff8262a5bbe ReceiveNextEventCommon + 657
      29  HIToolbox                     	    0x7ff8262a5918 _BlockUntilNextEventMatchingListInModeWithFilter + 64
      30  AppKit                        	    0x7ff81f8be5d0 _DPSNextEvent + 858
      31  AppKit                        	    0x7ff81f8bd47a -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1214
      32  AppKit                        	    0x7ff81f8afae8 -[NSApplication run] + 586
      33  libqcocoa.dylib               	       0x105d105b7 0x105cf9000 + 95671
      34  QtCore                        	       0x107c6cf36 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 486
      35  QtCore                        	       0x107c63d27 QCoreApplication::exec() + 119
      36  StormText                     	       0x104d2299f main + 63
      37  dyld                          	    0x7ff81c3f641f start + 1903
      
                                      VIRTUAL   REGION 
      REGION TYPE                        SIZE    COUNT (non-coalesced) 
      ===========                     =======  ======= 
      Accelerate framework               128K        1 
      Activity Tracing                   256K        1 
      CG backing stores                  528K        4 
      CG image                            60K        3 
      ColorSync                          260K       29 
      CoreAnimation                       52K        9 
      CoreGraphics                        12K        2 
      CoreImage                            4K        1 
      CoreServices                         4K        1 
      CoreUI image data                  828K       11 
      Foundation                          16K        1 
      Kernel Alloc Once                    8K        1 
      MALLOC                           184.8M       56 
      MALLOC guard page                   32K        8 
      MALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)
      STACK GUARD                       56.0M       11 
      Stack                             13.1M       12 
      VM_ALLOCATE                       79.8M       14 
      VM_ALLOCATE (reserved)             5.5G        7         reserved VM address space (unallocated)
      __CTF                               824        1 
      __DATA                            19.1M      378 
      __DATA_CONST                      15.6M      230 
      __DATA_DIRTY                       653K      108 
      __FONT_DATA                        2352        1 
      __LINKEDIT                       177.9M       29 
      __OBJC_RO                         66.3M        1 
      __OBJC_RW                         2013K        2 
      __TEXT                           292.7M      396 
      dyld private memory                260K        2 
      mapped file                      191.9M       41 
      shared memory                      780K       17 
      ===========                     =======  ======= 
      TOTAL                              6.9G     1379 
      TOTAL, minus reserved VM space     1.1G     1379 
      
      
      
      -----------
      Full Report
      -----------
      
      {"app_name":"StormText","timestamp":"2023-06-28 19:34:17.00 +0800","app_version":"","slice_uuid":"473fc644-f133-35f0-b0f3-7c7246ad4fde","build_version":"","platform":1,"bundleID":"org.BrightSoftwareFoundation.StormText","share_with_app_devs":1,"is_first_party":0,"bug_type":"309","os_version":"macOS 13.4 (22F66)","roots_installed":0,"name":"StormText","incident_id":"BA706EBC-2E9A-4BB7-83A2-683E7B1394A7"}
      {
        "uptime" : 220000,
        "procRole" : "Foreground",
        "version" : 2,
        "userID" : 501,
        "deployVersion" : 210,
        "modelCode" : "MacBookAir6,1",
        "coalitionID" : 3167,
        "osVersion" : {
          "train" : "macOS 13.4",
          "build" : "22F66",
          "releaseType" : "User"
        },
        "captureTime" : "2023-06-28 19:34:16.7778 +0800",
        "incident" : "BA706EBC-2E9A-4BB7-83A2-683E7B1394A7",
        "pid" : 96334,
        "cpuType" : "X86-64",
        "roots_installed" : 0,
        "bug_type" : "309",
        "procLaunch" : "2023-06-28 19:34:06.0880 +0800",
        "procStartAbsTime" : 226592503462034,
        "procExitAbsTime" : 226603161853910,
        "procName" : "StormText",
        "procPath" : "\/Users\/USER\/*\/StormText.app\/Contents\/MacOS\/StormText",
        "bundleInfo" : {"CFBundleIdentifier":"org.BrightSoftwareFoundation.StormText"},
        "storeInfo" : {"deviceIdentifierForVendor":"3AF01067-5158-5C8F-9FB0-05F8F401B1DD","thirdParty":true},
        "parentProc" : "qtcreator_processlauncher",
        "parentPid" : 95102,
        "coalitionName" : "org.qt-project.qtcreator",
        "crashReporterKey" : "4566117B-6536-0C74-6A7F-07A965E31605",
        "codeSigningID" : "",
        "codeSigningTeamID" : "",
        "codeSigningValidationCategory" : 0,
        "codeSigningTrustLevel" : 0,
        "wakeTime" : 6638,
        "sleepWakeUUID" : "8587F755-37EC-46D9-A3B9-918C8F2D72A7",
        "sip" : "enabled",
        "vmRegionInfo" : "0x180 is not in any region.  Bytes before following region: 140737488346752\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      UNUSED SPACE AT START\n--->  \n      shared memory            7fffffffe000-7ffffffff000 [    4K] r-x\/r-x SM=SHM  ",
        "exception" : {"codes":"0x0000000000000001, 0x0000000000000180","rawCodes":[1,384],"type":"EXC_BAD_ACCESS","signal":"SIGSEGV","subtype":"KERN_INVALID_ADDRESS at 0x0000000000000180"},
        "termination" : {"flags":0,"code":11,"namespace":"SIGNAL","indicator":"Segmentation fault: 11","byProc":"exc handler","byPid":96334},
        "vmregioninfo" : "0x180 is not in any region.  Bytes before following region: 140737488346752\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      UNUSED SPACE AT START\n--->  \n      shared memory            7fffffffe000-7ffffffff000 [    4K] r-x\/r-x SM=SHM  ",
        "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":18,"task_for_pid":3},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
        "faultingThread" : 0,
        "threads" : [{"triggered":true,"id":1926146,"instructionState":{"instructionStream":{"bytes":[223,190,238,7,0,0,49,210,49,201,232,109,71,255,255,73,137,196,72,137,223,190,54,9,0,0,49,210,76,137,249,232,120,71,255,255,72,137,223,190,53,9,0,0,232,171,73,255,255,73,137,199,72,137,223,190,239,7,0,0,68,137,226,232,248,68,255,255,73,139,70,8,76,137,56,255,64,8,91,65,92,65,94,65,95,93,195,15,31,68,0,0,85,72,137,229,72,139,71,8,138,64,16,93,195,15,31,0,85,72,137,229,72,139,71,8,64,136,112,16,93,195,144,144,85,72,137,229,65,87,65,86,83,72,131,236,72,72,137,251,232,43,80,28,0,72,141,5,92,184,32,0,72,131,192,16,72,137,3,199,67,24,255,255,255,255,76,141,115,32,76,137,247,232,252,78,28,0,199,67,48,0,0,0,0,102,199,67,52,255,255,72],"offset":96}},"threadState":{"r13":{"value":140701973148472},"rax":{"value":0},"rflags":{"value":66054},"cpu":{"value":3},"r14":{"value":4294967295},"rsi":{"value":0},"r8":{"value":1024},"cr2":{"value":384},"rdx":{"value":140704737432384,"symbolLocation":0,"symbol":"_NSAPCache"},"r10":{"value":1072},"r9":{"value":1023},"r15":{"value":140701973148472},"rbx":{"value":140701973139712},"trap":{"value":14,"description":"(no mapping for user data read)"},"err":{"value":4},"r11":{"value":105553176835556},"rip":{"value":4381583508,"matchesCrashFrame":1},"rbp":{"value":140701973139664},"rsp":{"value":140701973139664},"r12":{"value":140704737314368,"symbolLocation":0,"symbol":"_main_thread"},"rcx":{"value":4294967295},"flavor":"x86_THREAD_STATE","rdi":{"value":376}},"queue":"com.apple.main-thread","frames":[{"imageOffset":133268,"symbol":"QsciDocument::isModified() const","symbolLocation":4,"imageIndex":1},{"imageOffset":203279,"symbol":"BrStormTextMainWindow::handleTabChanged(int)","symbolLocation":223,"imageIndex":0},{"imageOffset":776026,"imageIndex":6},{"imageOffset":2271936,"imageIndex":3},{"imageOffset":776026,"imageIndex":6},{"imageOffset":2142801,"symbol":"QTabBar::removeTab(int)","symbolLocation":913,"imageIndex":3},{"imageOffset":2272001,"imageIndex":3},{"imageOffset":776026,"imageIndex":6},{"imageOffset":2119751,"imageIndex":3},{"imageOffset":776026,"imageIndex":6},{"imageOffset":275678,"symbol":"QStackedLayout::takeAt(int)","symbolLocation":446,"imageIndex":3},{"imageOffset":259301,"symbol":"QLayout::removeWidget(QWidget*)","symbolLocation":85,"imageIndex":3},{"imageOffset":203563,"symbol":"BrStormTextMainWindow::closeFile(bool)","symbolLocation":75,"imageIndex":0},{"imageOffset":776026,"imageIndex":6},{"imageOffset":4107053,"symbol":"QAction::activate(QAction::ActionEvent)","symbolLocation":397,"imageIndex":4},{"imageOffset":743686,"symbol":"QObject::event(QEvent*)","symbolLocation":598,"imageIndex":6},{"imageOffset":54119,"symbol":"QApplicationPrivate::notify_helper(QObject*, QEvent*)","symbolLocation":247,"imageIndex":3},{"imageOffset":57740,"symbol":"QApplication::notify(QObject*, QEvent*)","symbolLocation":508,"imageIndex":3},{"imageOffset":452410,"symbol":"QCoreApplication::notifyInternal2(QObject*, QEvent*)","symbolLocation":170,"imageIndex":6},{"imageOffset":456972,"symbol":"QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*)","symbolLocation":1468,"imageIndex":6},{"imageOffset":98662,"imageIndex":11},{"imageOffset":101277,"imageIndex":11},{"imageOffset":511786,"symbol":"__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__","symbolLocation":17,"imageIndex":30},{"imageOffset":511692,"symbol":"__CFRunLoopDoSource0","symbolLocation":157,"imageIndex":30},{"imageOffset":511141,"symbol":"__CFRunLoopDoSources0","symbolLocation":217,"imageIndex":30},{"imageOffset":506159,"symbol":"__CFRunLoopRun","symbolLocation":916,"imageIndex":30},{"imageOffset":503601,"symbol":"CFRunLoopRunSpecific","symbolLocation":560,"imageIndex":30},{"imageOffset":191917,"symbol":"RunCurrentEventLoopInMode","symbolLocation":292,"imageIndex":31},{"imageOffset":191422,"symbol":"ReceiveNextEventCommon","symbolLocation":657,"imageIndex":31},{"imageOffset":190744,"symbol":"_BlockUntilNextEventMatchingListInModeWithFilter","symbolLocation":64,"imageIndex":31},{"imageOffset":255440,"symbol":"_DPSNextEvent","symbolLocation":858,"imageIndex":32},{"imageOffset":251002,"symbol":"-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]","symbolLocation":1214,"imageIndex":32},{"imageOffset":195304,"symbol":"-[NSApplication run]","symbolLocation":586,"imageIndex":32},{"imageOffset":95671,"imageIndex":11},{"imageOffset":491318,"symbol":"QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)","symbolLocation":486,"imageIndex":6},{"imageOffset":453927,"symbol":"QCoreApplication::exec()","symbolLocation":119,"imageIndex":6},{"imageOffset":207263,"symbol":"main","symbolLocation":63,"imageIndex":0},{"imageOffset":25631,"symbol":"start","symbolLocation":1903,"imageIndex":33}]},{"id":1926151,"frames":[{"imageOffset":7088,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":34}]},{"id":1926169,"frames":[{"imageOffset":7088,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":34}]},{"id":1926187,"frames":[{"imageOffset":7088,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":34}]},{"id":1926188,"frames":[{"imageOffset":7088,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":34}]},{"id":1926189,"frames":[{"imageOffset":7088,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":34}]},{"id":1926207,"name":"Thread (pooled)","frames":[{"imageOffset":16622,"symbol":"__psynch_cvwait","symbolLocation":10,"imageIndex":35},{"imageOffset":26456,"symbol":"_pthread_cond_wait","symbolLocation":1242,"imageIndex":34},{"imageOffset":2150316,"imageIndex":6},{"imageOffset":2149550,"imageIndex":6},{"imageOffset":2149374,"symbol":"QWaitCondition::wait(QMutex*, QDeadlineTimer)","symbolLocation":94,"imageIndex":6},{"imageOffset":2125781,"imageIndex":6},{"imageOffset":2108083,"imageIndex":6},{"imageOffset":25043,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":34},{"imageOffset":7123,"symbol":"thread_start","symbolLocation":15,"imageIndex":34}]},{"id":1926208,"name":"Thread (pooled)","frames":[{"imageOffset":16622,"symbol":"__psynch_cvwait","symbolLocation":10,"imageIndex":35},{"imageOffset":26456,"symbol":"_pthread_cond_wait","symbolLocation":1242,"imageIndex":34},{"imageOffset":2150316,"imageIndex":6},{"imageOffset":2149550,"imageIndex":6},{"imageOffset":2149374,"symbol":"QWaitCondition::wait(QMutex*, QDeadlineTimer)","symbolLocation":94,"imageIndex":6},{"imageOffset":2125781,"imageIndex":6},{"imageOffset":2108083,"imageIndex":6},{"imageOffset":25043,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":34},{"imageOffset":7123,"symbol":"thread_start","symbolLocation":15,"imageIndex":34}]},{"id":1926209,"name":"Thread (pooled)","frames":[{"imageOffset":16622,"symbol":"__psynch_cvwait","symbolLocation":10,"imageIndex":35},{"imageOffset":26456,"symbol":"_pthread_cond_wait","symbolLocation":1242,"imageIndex":34},{"imageOffset":2150316,"imageIndex":6},{"imageOffset":2149550,"imageIndex":6},{"imageOffset":2149374,"symbol":"QWaitCondition::wait(QMutex*, QDeadlineTimer)","symbolLocation":94,"imageIndex":6},{"imageOffset":2125781,"imageIndex":6},{"imageOffset":2108083,"imageIndex":6},{"imageOffset":25043,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":34},{"imageOffset":7123,"symbol":"thread_start","symbolLocation":15,"imageIndex":34}]},{"id":1926210,"name":"Thread (pooled)","frames":[{"imageOffset":16622,"symbol":"__psynch_cvwait","symbolLocation":10,"imageIndex":35},{"imageOffset":26456,"symbol":"_pthread_cond_wait","symbolLocation":1242,"imageIndex":34},{"imageOffset":2150316,"imageIndex":6},{"imageOffset":2149550,"imageIndex":6},{"imageOffset":2149374,"symbol":"QWaitCondition::wait(QMutex*, QDeadlineTimer)","symbolLocation":94,"imageIndex":6},{"imageOffset":2125781,"imageIndex":6},{"imageOffset":2108083,"imageIndex":6},{"imageOffset":25043,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":34},{"imageOffset":7123,"symbol":"thread_start","symbolLocation":15,"imageIndex":34}]},{"id":1926214,"name":"com.apple.NSEventThread","frames":[{"imageOffset":5554,"symbol":"mach_msg2_trap","symbolLocation":10,"imageIndex":35},{"imageOffset":63277,"symbol":"mach_msg2_internal","symbolLocation":78,"imageIndex":35},{"imageOffset":34276,"symbol":"mach_msg_overwrite","symbolLocation":692,"imageIndex":35},{"imageOffset":6298,"symbol":"mach_msg","symbolLocation":19,"imageIndex":35},{"imageOffset":512111,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":145,"imageIndex":30},{"imageOffset":506608,"symbol":"__CFRunLoopRun","symbolLocation":1365,"imageIndex":30},{"imageOffset":503601,"symbol":"CFRunLoopRunSpecific","symbolLocation":560,"imageIndex":30},{"imageOffset":1697673,"symbol":"_NSEventThread","symbolLocation":132,"imageIndex":32},{"imageOffset":25043,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":34},{"imageOffset":7123,"symbol":"thread_start","symbolLocation":15,"imageIndex":34}]}], 
      ...
      ],
        "sharedCache" : {
        "base" : 140703601885184,
        "size" : 21474836480,
        "uuid" : "867bf49e-1375-3009-9693-a1621961928a"
      },
        "vmSummary" : "ReadOnly portion of Libraries: Total=470.6M resident=0K(0%) swapped_out_or_unallocated=470.6M(100%)\nWritable regions: Total=6.1G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=6.1G(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nAccelerate framework               128K        1 \nActivity Tracing                   256K        1 \nCG backing stores                  528K        4 \nCG image                            60K        3 \nColorSync                          260K       29 \nCoreAnimation                       52K        9 \nCoreGraphics                        12K        2 \nCoreImage                            4K        1 \nCoreServices                         4K        1 \nCoreUI image data                  828K       11 \nFoundation                          16K        1 \nKernel Alloc Once                    8K        1 \nMALLOC                           184.8M       56 \nMALLOC guard page                   32K        8 \nMALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)\nSTACK GUARD                       56.0M       11 \nStack                             13.1M       12 \nVM_ALLOCATE                       79.8M       14 \nVM_ALLOCATE (reserved)             5.5G        7         reserved VM address space (unallocated)\n__CTF                               824        1 \n__DATA                            19.1M      378 \n__DATA_CONST                      15.6M      230 \n__DATA_DIRTY                       653K      108 \n__FONT_DATA                        2352        1 \n__LINKEDIT                       177.9M       29 \n__OBJC_RO                         66.3M        1 \n__OBJC_RW                         2013K        2 \n__TEXT                           292.7M      396 \ndyld private memory                260K        2 \nmapped file                      191.9M       41 \nshared memory                      780K       17 \n===========                     =======  ======= \nTOTAL                              6.9G     1379 \nTOTAL, minus reserved VM space     1.1G     1379 \n",
        "legacyInfo" : {
        "threadTriggered" : {
          "queue" : "com.apple.main-thread"
        }
      },
        "logWritingSignature" : "9ae1518ab207e03ca2d129fa731c88abd87e2e97",
        "trialInfo" : {
        "rollouts" : [
          {
            "rolloutId" : "63582c5f8a53461413999550",
            "factorPackIds" : {
      
            },
            "deploymentId" : 240000002
          },
          {
            "rolloutId" : "62c73fd17cce0d1b0bcb8a02",
            "factorPackIds" : {
              "SIRI_DIALOG_ASSETS" : "645e39c59e69a025b0a37ea1"
            },
            "deploymentId" : 240000115
          }
        ],
        "experiments" : [
      
        ]
      }
      }
      
      Model: MacBookAir6,1, BootROM 478.0.0.0.0, 2 processors, Dual-Core Intel Core i5, 1.3 GHz, 4 GB, SMC 2.12f143
      Graphics: Intel HD Graphics 5000, Intel HD Graphics 5000, Built-In
      Display: Color LCD, 1366 x 768 (WSGA - Wide eXtended Graphics Array), Main, MirrorOff, Online
      Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1600 MHz, 0x80AD, 0x483943434E4E4E384A544D4C41522D4E544D
      Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1600 MHz, 0x80AD, 0x483943434E4E4E384A544D4C41522D4E544D
      AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x117), Broadcom BCM43xx 1.0 (7.77.111.1 AirPortDriverBrcmNIC-1771)
      AirPort: 
      Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
      Network Service: Wi-Fi, AirPort, en0
      Serial ATA Device: APPLE SSD TS0128F, 121.33 GB
      USB Device: USB30Bus
      USB Device: BRCM20702 Hub
      USB Device: Bluetooth USB Host Controller
      Thunderbolt Bus: MacBook Air, Apple Inc., 23.6
      

      As you can see, I am running my macOS Ventura 13.4 on Qt 6.5.1 and QScintilla 2.14.0. When the Scintilla component reaches its isModified thread, the application has crashed. This was all happened after I had closed the app's window.

      What is the solution for this problem? Any help and comments would be greatly appreciate and thanks!

      Thank you!

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on 28 Jun 2023, 12:16 last edited by
      #2

      @JackMyson said in Developing QScintilla based application then crashes:

      BrStormTextMainWindow::handleTabChanged(int)

      I guess this is something you implemented? What are you doing there?
      According to the stack trace a tab is removed (QTabBar::removeTab(int)) and then BrStormTextMainWindow::handleTabChanged(int) is called - I guess you are trying to access something already deleted.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      1/2

      28 Jun 2023, 11:42

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved