sublimehq / sublime_merge

Issue tracker for Sublime Merge
https://www.sublimemerge.com
272 stars 14 forks source link

Immediate crash of Sublime Merge 2096 #1907

Open JuanCab opened 2 months ago

JuanCab commented 2 months ago

Version info

Description

I was test driving Sublime Merge 2091 and tried to update to 2096. After the update, Sublime Merge immediately exits on launch (one bounce). I am running macOS 14.2.1 on a Mid-2012 Mac Pro using OpenCoreLegacyPatcher to patch the OS to support the older Mac. I can confirm reverting to Sublime Merge 2091 does allow me to launch the app with this configuration.

I thought this might be an issue with the updated Sublime Merge not recognizing my Mac does have an updated GPU and so I tried overriding the preferences via Edit Settings to contain:

// Settings in here override those in "Default/Preferences.sublime-settings",
// and are overridden in turn by syntax-specific settings.
{
    "gpu_window_buffer": false
}

but that did not change my ability to run Sublime Merge 2096.

Steps to reproduce

Steps to reproduce the behavior:

  1. Click on Sublime Merge (2096) icon...

Expected behavior

Program should launch.

Debug Information

I can't generate this.

dpjohnst commented 1 month ago

Hi @JuanCab,

Thanks for reaching out!

Could you try disabling OpenGL hardware acceleration in the settings by adding the following line to the file:

"hardware_acceleration": "none",

Once saved, could you confirm if this resolves the issue?

Kind regards, - Dylan from Sublime HQ

JuanCab commented 1 month ago

Hi @dpjohnst! I can confirm it does NOT resolve the issue to have that line in my settings file. The newer version of Sublime Merge still crashes after a single bounce on the Dock. Reverting to the older version mentioned above allows me to run Sublime Merge. Would it help to have the crash log, I've grabbed it and posted it below after reviewing it for potentially private information:

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               sublime_merge [11041]
Path:                  /Applications/Sublime Merge.app/Contents/MacOS/sublime_merge
Identifier:            com.sublimemerge
Version:               Build 2096 (2096)
Code Type:             X86-64 (Native)
Parent Process:        launchd [1]
User ID:               502

Date/Time:             2024-05-07 08:59:55.1977 -0500
OS Version:            macOS 14.2.1 (23C71)
Report Version:        12
Anonymous UUID:        5B30F009-735C-300B-6987-F3B562B0598C

Time Awake Since Boot: 570000 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes:       0x0000000000000001, 0x0000000000000000

Termination Reason:    Namespace SIGNAL, Code 4 Illegal instruction: 4
Terminating Process:   exc handler [11041]

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   sublime_merge                          0x102ac5c13 ahash_hash_bytes(void const*, unsigned long) + 271
1   sublime_merge                          0x102b1927c add_property(basic_hash_map<substring, property*, default_hash_traits<substring>>*, property*) + 62
2   sublime_merge                          0x102b48aed register_texture_box_initializer() + 112
3   sublime_merge                          0x102b52575 void create_sub_properties<themed_control, texture_box>(substring, texture_box const& (themed_control::*)() const, texture_box& (themed_control::*)(), basic_hash_map<substring, property*, default_hash_traits<substring>>*) + 56
4   sublime_merge                          0x102b522d2 register_themed_control_initializer() + 68
5   sublime_merge                          0x102b51b68 register_themed_container_control_initializer() + 29
6   sublime_merge                          0x102915da1 register_about_window_initializer() + 29
7   sublime_merge                          0x10293dbe7 main + 77
8   dyld                                0x7ff8081ec386 start + 1942

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000074786574  rbx: 0x0000000103061250  rcx: 0x0000000065727574  rdx: 0x0000000102fad980
  rdi: 0x0000000102fad979  rsi: 0x0000000000000007  rbp: 0x00007ff7bd5ebf60  rsp: 0x00007ff7bd5ebf60
   r8: 0x0000000000000000   r9: 0x0000000000000008  r10: 0x0000000000000050  r11: 0x0000000000000280
  r12: 0x0000000102fb1f7e  r13: 0x0000000000000000  r14: 0x0000000103060b50  r15: 0x0000000103061250
  rip: 0x0000000102ac5c13  rfl: 0x0000000000010206  cr2: 0x0000000000000000

Logical CPU:     0
Error Code:      0x00000000 
Trap Number:     6

Thread 0 instruction stream:
  66 0f 6f 1d 45 6f 59 00-66 0f 6f 0d 8d fc 3c 00  f.o.EoY.f.o...<.
  66 0f 38 00 cb 66 0f d4-ca f3 0f 6f 54 37 f0 66  f.8..f.....oT7.f
  0f 38 de c2 66 0f 38 00-cb eb 4b f3 0f 6f 10 66  .8..f.8...K..o.f
  0f 38 de c2 eb 40 0f b7-07 0f b7 4c 37 fe 66 48  .8...@.....L7.fH
  0f 6e d1 66 48 0f 6e c0-eb 0a f3 0f 7e 54 37 f8  .n.fH.n.....~T7.
  f3 0f 7e 07 66 0f 6c d0-66 0f 6f 05 2d fc 3c 00  ..~.f.l.f.o.-.<.
 [66]0f 38 de c2 66 0f 6f-0d 30 fc 3c 00 66 0f 38  f.8..f.o.0.<.f.8 <==
  00 0d d7 6e 59 00 66 0f-d4 ca 66 0f 38 dc c8 66  ...nY.f...f.8..f
  0f 6f c1 66 0f 38 de 05-21 fc 3c 00 66 0f 38 de  .o.f.8..!.<.f.8.
  c1 66 48 0f 7e c0 5d c3-66 0f ef c9 66 0f 6f 05  .fH.~.].f...f.o.
  e9 fb 3c 00 66 0f 38 de-c1 66 0f 6f 0d ec fb 3c  ..<.f.8..f.o...<
  00 66 0f 38 00 0d 93 6e-59 00 eb be 55 48 89 e5  .f.8...nY...UH..

Binary Images:
       0x103ce6000 -        0x103ce9fff com.apple.IO80211 (1.0) <dec7b4cb-e298-31f2-989f-d7410e39ea5b> /System/Library/PrivateFrameworks/IO80211.framework/Versions/A/IO80211
       0x104241000 -        0x1042a8fff IO80211Old.dylib (*) <d5ce0007-a406-3d75-8974-bf11b386d6b8> /System/Library/PrivateFrameworks/IO80211.framework/Versions/A/IO80211Old.dylib
       0x104101000 -        0x104104fff com.apple.framework.CoreWLAN (16.0) <e36ac964-7982-3a95-8def-7bfa8ddbd246> /System/Library/Frameworks/CoreWLAN.framework/Versions/A/CoreWLAN
       0x16f8c5000 -        0x16f99dfff CoreWLANOld.dylib (*) <d5ce0007-484b-3dc7-beca-abd7b9c1817e> /System/Library/Frameworks/CoreWLAN.framework/Versions/A/CoreWLANOld.dylib
       0x104135000 -        0x104140fff com.apple.CoreWiFi (kCoreWiFiMarketingVersion) <cdc9d45b-e14e-3111-a474-fdcd97f10164> /System/Library/PrivateFrameworks/CoreWiFi.framework/Versions/A/CoreWiFi
       0x1e5470000 -        0x1e55f2fff CoreWiFiOld.dylib (*) <d5ce0007-911a-3036-a41a-11d94a5e3410> /System/Library/PrivateFrameworks/CoreWiFi.framework/Versions/A/CoreWiFiOld.dylib
       0x102913000 -        0x102fdffff com.sublimemerge (Build 2096) <291fa408-57bb-34c6-b3fe-3bb60133e8f6> /Applications/Sublime Merge.app/Contents/MacOS/sublime_merge
    0x7ff8081e6000 -     0x7ff8082823bf dyld (*) <ab17bf63-259b-3b48-8d70-863166a2191c> /usr/lib/dyld
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???

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=453.6M resident=0K(0%) swapped_out_or_unallocated=453.6M(100%)
Writable regions: Total=5.7G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=5.7G(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Activity Tracing                   256K        1 
Kernel Alloc Once                    8K        1 
MALLOC                           557.1M       18 
MALLOC guard page                   16K        4 
STACK GUARD                       56.0M        1 
Stack                             8192K        1 
VM_ALLOCATE                          4K        1 
VM_ALLOCATE (reserved)             5.2G        7         reserved VM address space (unallocated)
__DATA                            17.1M      314 
__DATA_CONST                      14.9M      198 
__DATA_DIRTY                       641K      102 
__FONT_DATA                        2352        1 
__LINKEDIT                       191.8M        9 
__OBJC_RO                         71.1M        1 
__OBJC_RW                         2166K        2 
__TEXT                           261.8M      332 
dyld private memory                260K        2 
mapped file                         56K        1 
shared memory                       24K        3 
===========                     =======  ======= 
TOTAL                              6.3G      999 
TOTAL, minus reserved VM space     1.2G      999 

-----------
Full Report
-----------

{"app_name":"sublime_merge","timestamp":"2024-05-07 08:59:55.00 -0500","app_version":"Build 2096","slice_uuid":"291fa408-57bb-34c6-b3fe-3bb60133e8f6","build_version":"2096","platform":1,"bundleID":"com.sublimemerge","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 14.2.1 (23C71)","roots_installed":0,"name":"sublime_merge","incident_id":"BD40A368-C255-4ACF-9F22-406CFE8381BA"}
{
  "uptime" : 570000,
  "procRole" : "Default",
  "version" : 2,
  "userID" : 502,
  "deployVersion" : 210,
  "modelCode" : "MacPro5,1",
  "coalitionID" : 65378,
  "osVersion" : {
    "train" : "macOS 14.2.1",
    "build" : "23C71",
    "releaseType" : "User"
  },
  "captureTime" : "2024-05-07 08:59:55.1977 -0500",
  "codeSigningMonitor" : 0,
  "incident" : "BD40A368-C255-4ACF-9F22-406CFE8381BA",
  "pid" : 11041,
  "cpuType" : "X86-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2024-05-07 08:59:55.1091 -0500",
  "procStartAbsTime" : 576734857324711,
  "procExitAbsTime" : 576734945315082,
  "procName" : "sublime_merge",
  "procPath" : "\/Applications\/Sublime Merge.app\/Contents\/MacOS\/sublime_merge",
  "bundleInfo" : {"CFBundleShortVersionString":"Build 2096","CFBundleVersion":"2096","CFBundleIdentifier":"com.sublimemerge"},
  "storeInfo" : {"deviceIdentifierForVendor":"33A59268-12E4-5300-AB77-B6A004EB8C9A","thirdParty":true},
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "com.sublimemerge",
  "crashReporterKey" : "5B30F009-735C-300B-6987-F3B562B0598C",
  "codeSigningID" : "com.sublimemerge",
  "codeSigningTeamID" : "Z6D26JE4Y4",
  "codeSigningFlags" : 570490881,
  "codeSigningValidationCategory" : 6,
  "codeSigningTrustLevel" : 4294967295,
  "sip" : "enabled",
  "exception" : {"codes":"0x0000000000000001, 0x0000000000000000","rawCodes":[1,0],"type":"EXC_BAD_INSTRUCTION","signal":"SIGILL"},
  "termination" : {"flags":0,"code":4,"namespace":"SIGNAL","indicator":"Illegal instruction: 4","byProc":"exc handler","byPid":11041},
  "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":6112181,"instructionState":{"instructionStream":{"bytes":[102,15,111,29,69,111,89,0,102,15,111,13,141,252,60,0,102,15,56,0,203,102,15,212,202,243,15,111,84,55,240,102,15,56,222,194,102,15,56,0,203,235,75,243,15,111,16,102,15,56,222,194,235,64,15,183,7,15,183,76,55,254,102,72,15,110,209,102,72,15,110,192,235,10,243,15,126,84,55,248,243,15,126,7,102,15,108,208,102,15,111,5,45,252,60,0,102,15,56,222,194,102,15,111,13,48,252,60,0,102,15,56,0,13,215,110,89,0,102,15,212,202,102,15,56,220,200,102,15,111,193,102,15,56,222,5,33,252,60,0,102,15,56,222,193,102,72,15,126,192,93,195,102,15,239,201,102,15,111,5,233,251,60,0,102,15,56,222,193,102,15,111,13,236,251,60,0,102,15,56,0,13,147,110,89,0,235,190,85,72,137,229],"offset":96}},"threadState":{"r13":{"value":0},"rax":{"value":1954047348},"rflags":{"value":66054},"cpu":{"value":0},"r14":{"value":4345695056,"symbolLocation":0,"symbol":"meta_class_initializers"},"rsi":{"value":7},"r8":{"value":0},"cr2":{"value":0},"rdx":{"value":4344961408},"r10":{"value":80},"r9":{"value":8},"r15":{"value":4345696848,"symbolLocation":24,"symbol":"texture_box::s_meta_class"},"rbx":{"value":4345696848,"symbolLocation":24,"symbol":"texture_box::s_meta_class"},"trap":{"value":6},"err":{"value":0},"r11":{"value":640},"rip":{"value":4339817491,"matchesCrashFrame":1},"rbp":{"value":140702010752864},"rsp":{"value":140702010752864},"r12":{"value":4344979326},"rcx":{"value":1701999988},"flavor":"x86_THREAD_STATE","rdi":{"value":4344961401}},"queue":"com.apple.main-thread","frames":[{"imageOffset":1780755,"symbol":"ahash_hash_bytes(void const*, unsigned long)","symbolLocation":271,"imageIndex":6},{"imageOffset":2122364,"symbol":"add_property(basic_hash_map<substring, property*, default_hash_traits<substring>>*, property*)","symbolLocation":62,"imageIndex":6},{"imageOffset":2317037,"symbol":"register_texture_box_initializer()","symbolLocation":112,"imageIndex":6},{"imageOffset":2356597,"symbol":"void create_sub_properties<themed_control, texture_box>(substring, texture_box const& (themed_control::*)() const, texture_box& (themed_control::*)(), basic_hash_map<substring, property*, default_hash_traits<substring>>*)","symbolLocation":56,"imageIndex":6},{"imageOffset":2355922,"symbol":"register_themed_control_initializer()","symbolLocation":68,"imageIndex":6},{"imageOffset":2354024,"symbol":"register_themed_container_control_initializer()","symbolLocation":29,"imageIndex":6},{"imageOffset":11681,"symbol":"register_about_window_initializer()","symbolLocation":29,"imageIndex":6},{"imageOffset":175079,"symbol":"main","symbolLocation":77,"imageIndex":6},{"imageOffset":25478,"symbol":"start","symbolLocation":1942,"imageIndex":7}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4358823936,
    "CFBundleShortVersionString" : "1.0",
    "CFBundleIdentifier" : "com.apple.IO80211",
    "size" : 16384,
    "uuid" : "dec7b4cb-e298-31f2-989f-d7410e39ea5b",
    "path" : "\/System\/Library\/PrivateFrameworks\/IO80211.framework\/Versions\/A\/IO80211",
    "name" : "IO80211",
    "CFBundleVersion" : "1"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4364439552,
    "size" : 425984,
    "uuid" : "d5ce0007-a406-3d75-8974-bf11b386d6b8",
    "path" : "\/System\/Library\/PrivateFrameworks\/IO80211.framework\/Versions\/A\/IO80211Old.dylib",
    "name" : "IO80211Old.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4363128832,
    "CFBundleShortVersionString" : "16.0",
    "CFBundleIdentifier" : "com.apple.framework.CoreWLAN",
    "size" : 16384,
    "uuid" : "e36ac964-7982-3a95-8def-7bfa8ddbd246",
    "path" : "\/System\/Library\/Frameworks\/CoreWLAN.framework\/Versions\/A\/CoreWLAN",
    "name" : "CoreWLAN",
    "CFBundleVersion" : "1657"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 6166433792,
    "size" : 888832,
    "uuid" : "d5ce0007-484b-3dc7-beca-abd7b9c1817e",
    "path" : "\/System\/Library\/Frameworks\/CoreWLAN.framework\/Versions\/A\/CoreWLANOld.dylib",
    "name" : "CoreWLANOld.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4363341824,
    "CFBundleShortVersionString" : "kCoreWiFiMarketingVersion",
    "CFBundleIdentifier" : "com.apple.CoreWiFi",
    "size" : 49152,
    "uuid" : "cdc9d45b-e14e-3111-a474-fdcd97f10164",
    "path" : "\/System\/Library\/PrivateFrameworks\/CoreWiFi.framework\/Versions\/A\/CoreWiFi",
    "name" : "CoreWiFi",
    "CFBundleVersion" : "kCoreWiFiProjectVersion"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 8141602816,
    "size" : 1585152,
    "uuid" : "d5ce0007-911a-3036-a41a-11d94a5e3410",
    "path" : "\/System\/Library\/PrivateFrameworks\/CoreWiFi.framework\/Versions\/A\/CoreWiFiOld.dylib",
    "name" : "CoreWiFiOld.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4338036736,
    "CFBundleShortVersionString" : "Build 2096",
    "CFBundleIdentifier" : "com.sublimemerge",
    "size" : 7131136,
    "uuid" : "291fa408-57bb-34c6-b3fe-3bb60133e8f6",
    "path" : "\/Applications\/Sublime Merge.app\/Contents\/MacOS\/sublime_merge",
    "name" : "sublime_merge",
    "CFBundleVersion" : "2096"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703264825344,
    "size" : 639936,
    "uuid" : "ab17bf63-259b-3b48-8d70-863166a2191c",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "size" : 0,
    "source" : "A",
    "base" : 0,
    "uuid" : "00000000-0000-0000-0000-000000000000"
  }
],
  "sharedCache" : {
  "base" : 140703264129024,
  "size" : 21474836480,
  "uuid" : "aa32606f-3f8a-36dc-89ab-9c1bd7bf3104"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=453.6M resident=0K(0%) swapped_out_or_unallocated=453.6M(100%)\nWritable regions: Total=5.7G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=5.7G(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nActivity Tracing                   256K        1 \nKernel Alloc Once                    8K        1 \nMALLOC                           557.1M       18 \nMALLOC guard page                   16K        4 \nSTACK GUARD                       56.0M        1 \nStack                             8192K        1 \nVM_ALLOCATE                          4K        1 \nVM_ALLOCATE (reserved)             5.2G        7         reserved VM address space (unallocated)\n__DATA                            17.1M      314 \n__DATA_CONST                      14.9M      198 \n__DATA_DIRTY                       641K      102 \n__FONT_DATA                        2352        1 \n__LINKEDIT                       191.8M        9 \n__OBJC_RO                         71.1M        1 \n__OBJC_RW                         2166K        2 \n__TEXT                           261.8M      332 \ndyld private memory                260K        2 \nmapped file                         56K        1 \nshared memory                       24K        3 \n===========                     =======  ======= \nTOTAL                              6.3G      999 \nTOTAL, minus reserved VM space     1.2G      999 \n",
  "legacyInfo" : {
  "threadTriggered" : {
    "queue" : "com.apple.main-thread"
  }
},
  "logWritingSignature" : "196b4e74c04999c839d42e09b23fb389dd30405b",
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "632e3df958740028737bffc0",
      "factorPackIds" : {
        "SIRI_UNDERSTANDING_NL_OVERRIDES" : "661e78a3b714bf7f73d2b29e"
      },
      "deploymentId" : 240000670
    },
    {
      "rolloutId" : "652eff3d1bce5442b8d753c9",
      "factorPackIds" : {

      },
      "deploymentId" : 240000009
    }
  ],
  "experiments" : [

  ]
}
}