thebarbican19 / BatteryBoi

The battery app your Mac's been dreaming about behind your back.
https://batteryboi.ovatar.io/
GNU General Public License v3.0
846 stars 20 forks source link

Crash on Monterey 12.6, M1 Max #3

Closed mihado closed 1 year ago

mihado commented 1 year ago

👋

JoeBattery 1.0.2 crashes at launch. Please see stack trace

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

Process:               BatteryBoi [3333]
Path:                  /Applications/JoeBattery.app/Contents/MacOS/BatteryBoi
Identifier:            com.ovatar.batteryapp
Version:               1.04 (6)
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2023-08-11 16:24:09.8093 +1200
OS Version:            macOS 12.6 (21G115)
Report Version:        12
Anonymous UUID:        2DB789F9-CA56-B1CA-EB9A-EDC4CFCF672D

Sleep/Wake UUID:       D94426B4-7500-4977-8C22-CEE99F34E18B

Time Awake Since Boot: 2300000 seconds
Time Since Wake:       434 seconds

System Integrity Protection: enabled

Crashed Thread:        0

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    Namespace DYLD, Code 4 Symbol missing
Symbol not found: (_OBJC_CLASS_$_SMAppService)
Referenced from: '/Applications/JoeBattery.app/Contents/MacOS/BatteryBoi'
Expected in: '/System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement'
(terminated at launch; ignore backtrace)

Thread 0 Crashed:
0   dyld                                   0x105053e98 __abort_with_payload + 8
1   dyld                                   0x10505b024 abort_with_payload_wrapper_internal + 104
2   dyld                                   0x10505b058 abort_with_payload + 16
3   dyld                                   0x105012a28 dyld4::halt(char const*) + 580
4   dyld                                   0x10500dfb8 dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 3644
5   dyld                                   0x10500d06c start + 488

Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000006   x1: 0x0000000000000004   x2: 0x000000016b269bc8   x3: 0x00000000000000ba
    x4: 0x000000016b2697c8   x5: 0x0000000000000000   x6: 0x0000000000000000   x7: 0x000000016b269240
    x8: 0x0000000000000020   x9: 0x0000000000000009  x10: 0x000000016b269853  x11: 0x00000000000000de
   x12: 0x0000000000000000  x13: 0x0000000000000033  x14: 0x0000000238eb235e  x15: 0x000000016b268d98
   x16: 0x0000000000000209  x17: 0x000000010500b14c  x18: 0x0000000000000000  x19: 0x0000000000000000
   x20: 0x000000016b2697c8  x21: 0x00000000000000ba  x22: 0x000000016b269bc8  x23: 0x0000000000000004
   x24: 0x0000000000000006  x25: 0x000000016b2697c8  x26: 0x0000000000000400  x27: 0x0000000000000400
   x28: 0x000000000000008b   fp: 0x000000016b269790   lr: 0x000000010505b024
    sp: 0x000000016b269750   pc: 0x0000000105053e98 cpsr: 0x00001000
   far: 0x0000000104d24000  esr: 0x56000080  Address size fault

Binary Images:
       0x105008000 -        0x105067fff dyld (*) <38ee9fe9-b66d-3066-8c5c-6ddf0d6944c6> /usr/lib/dyld

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

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
STACK GUARD                       56.0M        1 
Stack                             8176K        1 
VM_ALLOCATE                         16K        1 
__AUTH                            2416K      246 
__AUTH_CONST                      18.4M      428 
__CTF                               756        1 
__DATA                            12.0M      417 
__DATA_CONST                      15.4M      434 
__DATA_DIRTY                      1528K      161 
__FONT_DATA                          4K        1 
__LINKEDIT                       577.7M        4 
__OBJC_CONST                      2591K      204 
__OBJC_RO                         83.0M        1 
__OBJC_RW                         3168K        1 
__TEXT                           443.3M      450 
__UNICODE                          592K        1 
dyld private memory               1024K        1 
===========                     =======  ======= 
TOTAL                              1.2G     2353 

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

{"app_name":"BatteryBoi","timestamp":"2023-08-11 16:24:09.00 +1200","app_version":"1.04","slice_uuid":"757c4dd6-0062-3a74-b231-14021cb7266c","build_version":"6","platform":1,"bundleID":"com.ovatar.batteryapp","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 12.6 (21G115)","incident_id":"A6CC2C4A-8568-4C1E-9054-1186FF164CDB","name":"BatteryBoi"}
{
  "uptime" : 2300000,
  "procLaunch" : "2023-08-11 16:24:09.7650 +1200",
  "procRole" : "Default",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "MacBookPro18,2",
  "procStartAbsTime" : 56874218579467,
  "coalitionID" : 320519,
  "osVersion" : {
    "train" : "macOS 12.6",
    "build" : "21G115",
    "releaseType" : "User"
  },
  "captureTime" : "2023-08-11 16:24:09.8093 +1200",
  "incident" : "A6CC2C4A-8568-4C1E-9054-1186FF164CDB",
  "bug_type" : "309",
  "pid" : 3333,
  "procExitAbsTime" : 56874219602028,
  "translated" : false,
  "cpuType" : "ARM-64",
  "procName" : "BatteryBoi",
  "procPath" : "\/Applications\/JoeBattery.app\/Contents\/MacOS\/BatteryBoi",
  "bundleInfo" : {"CFBundleShortVersionString":"1.04","CFBundleVersion":"6","CFBundleIdentifier":"com.ovatar.batteryapp"},
  "storeInfo" : {"deviceIdentifierForVendor":"2D682649-2C8F-5BE3-BB60-7BE8FF6FB2C1","thirdParty":true},
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "com.ovatar.batteryapp",
  "crashReporterKey" : "2DB789F9-CA56-B1CA-EB9A-EDC4CFCF672D",
  "wakeTime" : 434,
  "sleepWakeUUID" : "D94426B4-7500-4977-8C22-CEE99F34E18B",
  "sip" : "enabled",
  "isCorpse" : 1,
  "exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"},
  "termination" : {"code":4,"flags":518,"namespace":"DYLD","indicator":"Symbol missing","details":["(terminated at launch; ignore backtrace)"],"reasons":["Symbol not found: (_OBJC_CLASS_$_SMAppService)","Referenced from: '\/Applications\/JoeBattery.app\/Contents\/MacOS\/BatteryBoi'","Expected in: '\/System\/Library\/Frameworks\/ServiceManagement.framework\/Versions\/A\/ServiceManagement'"]},
  "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":28012797,"threadState":{"x":[{"value":6},{"value":4},{"value":6092659656},{"value":186},{"value":6092658632},{"value":0},{"value":0},{"value":6092657216},{"value":32},{"value":9},{"value":6092658771},{"value":222},{"value":0},{"value":51},{"value":9544868702},{"value":6092656024},{"value":521},{"value":4378898764,"symbolLocation":392,"symbol":"__simple_bprintf"},{"value":0},{"value":0},{"value":6092658632},{"value":186},{"value":6092659656},{"value":4},{"value":6},{"value":6092658632},{"value":1024},{"value":1024},{"value":139}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4379226148},"cpsr":{"value":4096},"fp":{"value":6092658576},"sp":{"value":6092658512},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":4379197080,"matchesCrashFrame":1},"far":{"value":4375855104}},"frames":[{"imageOffset":310936,"symbol":"__abort_with_payload","symbolLocation":8,"imageIndex":0},{"imageOffset":340004,"symbol":"abort_with_payload_wrapper_internal","symbolLocation":104,"imageIndex":0},{"imageOffset":340056,"symbol":"abort_with_payload","symbolLocation":16,"imageIndex":0},{"imageOffset":43560,"symbol":"dyld4::halt(char const*)","symbolLocation":580,"imageIndex":0},{"imageOffset":24504,"symbol":"dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*)","symbolLocation":3644,"imageIndex":0},{"imageOffset":20588,"symbol":"start","symbolLocation":488,"imageIndex":0}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 4378886144,
    "size" : 393216,
    "uuid" : "38ee9fe9-b66d-3066-8c5c-6ddf0d6944c6",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  }
],
  "sharedCache" : {
  "base" : 7061798912,
  "size" : 3144744960,
  "uuid" : "049b583e-d4dc-3b2b-88da-e52d6e18313d"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=1.0G resident=0K(0%) swapped_out_or_unallocated=1.0G(100%)\nWritable regions: Total=9232K written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=9232K(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nSTACK GUARD                       56.0M        1 \nStack                             8176K        1 \nVM_ALLOCATE                         16K        1 \n__AUTH                            2416K      246 \n__AUTH_CONST                      18.4M      428 \n__CTF                               756        1 \n__DATA                            12.0M      417 \n__DATA_CONST                      15.4M      434 \n__DATA_DIRTY                      1528K      161 \n__FONT_DATA                          4K        1 \n__LINKEDIT                       577.7M        4 \n__OBJC_CONST                      2591K      204 \n__OBJC_RO                         83.0M        1 \n__OBJC_RW                         3168K        1 \n__TEXT                           443.3M      450 \n__UNICODE                          592K        1 \ndyld private memory               1024K        1 \n===========                     =======  ======= \nTOTAL                              1.2G     2353 \n",
  "legacyInfo" : {
  "threadTriggered" : {

  }
},
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "63582c5f8a53461413999550",
      "factorPackIds" : {

      },
      "deploymentId" : 240000002
    },
    {
      "rolloutId" : "61301e3a61217b3110231469",
      "factorPackIds" : {
        "SIRI_FIND_MY_CONFIGURATION_FILES" : "6348493aa52bb16adc4e4d06"
      },
      "deploymentId" : 240000021
    }
  ],
  "experiments" : [
    {
      "treatmentId" : "6dd670af-0633-45e4-ae5f-122ae4df02be",
      "experimentId" : "64406ba83deb637ac8a04419",
      "deploymentId" : 900000017
    }
  ]
}
}
thebarbican19 commented 1 year ago

Hi @mihado, I have just added a new release which should hopefully resolve this issue.

I do not have a machine running Monterey, so if you can test this and let me know I would be grateful. Thanks.

thebarbican19 commented 1 year ago

Hi @mihado, I have had reports from other users this has been resolved so I am closing it out. If the problem persists, please just open this up again but I am fairly certain that should be all.

thebarbican19 commented 1 year ago

Hey @mihado & @kannicht , completely unrelated, but BatteryBoi is on Product Hunt today. Please vote for your favorite battery app 🙏🏻