Codelite Crashes from Missing Library

CodeLite installation/troubleshooting forum
mike
CodeLite Curious
Posts: 1
Joined: Fri Nov 25, 2022 9:31 am
Genuine User: Yes
IDE Question: C++
Contact:

Codelite Crashes from Missing Library

Post by mike »

Hey guys, I'm trying to take an online class about C++ and the instructions for installing Codelite from the video is a bite dated. I have followed the instructions to install using Brew and all installed without error. Problem is when I start Codelite I get an error saying I'm missing libpcre2-32.0.dylib. I have ran

Brew update
and
Brew upgrade

one package was updated and that was it, I still get the error. Where can I get this dylib file and how to install it in the correct location

My computer is a Macbook Pro M1, Pro processor (2022 model 14"), MacOS X Ventura 13..0.1

Here is the full error log:


Translated Report (Full Report Below)

Process: codelite [5094]
Path: /Applications/codelite.app/Contents/MacOS/CodeLite
Identifier: codelite
Version: ???
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
User ID: 501

Date/Time: 2022-11-24 20:54:15.3975 -0800
OS Version: macOS 13.0.1 (22A400)
Report Version: 12
Anonymous UUID: 9F6B0323-494F-2F4D-0B69-7E1209014267

Sleep/Wake UUID: 6C897542-644A-4D02-82BB-1EFFF3BFABC9

Time Awake Since Boot: 5100 seconds

System Integrity Protection: enabled

Crashed Thread: 0

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

Termination Reason: Namespace DYLD, Code 1 Library missing
Library not loaded: /opt/homebrew//libpcre2-32.0.dylib
Referenced from: <6AB17E22-F9CD-3741-B50A-08185674310B> /Applications/codelite.app/Contents/MacOS/libwx_osx_cocoau-3.2.0.1.0.dylib
Reason: tried: '/opt/homebrew/
/libpcre2-32.0.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew//libpcre2-32.0.dylib' (no such file), '/opt/homebrew//libpcre2-32.0.dylib' (no such file), '/usr/local/lib/libpcre2-32.0.dylib' (no such file), '/usr/lib/libpcre2-32.0.dylib' (no such file, not in dyld cache)
(terminated at launch; ignore backtrace)

Thread 0 Crashed:
0 dyld 0x19e6aae58 __abort_with_payload + 8
1 dyld 0x19e6b56c0 abort_with_payload_wrapper_internal + 104
2 dyld 0x19e6b56f4 abort_with_payload + 16
3 dyld 0x19e6440a4 dyld4::halt(char const) + 328
4 dyld 0x19e641098 dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const
) + 4204
5 dyld 0x19e63fdc4 start + 2404

Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000006 x1: 0x0000000000000001 x2: 0x000000016b931fd0 x3: 0x000000000000008f
x4: 0x000000016b931bd0 x5: 0x0000000000000000 x6: 0x0062696c79642e30 x7: 0x0000000000000000
x8: 0x0000000000000020 x9: 0x0000000000000009 x10: 0x0000000000000001 x11: 0x000000000000000a
x12: 0x0000000000000000 x13: 0x0000000000000035 x14: 0x0000000000000003 x15: 0xffffffffffffffff
x16: 0x0000000000000209 x17: 0x000000019e63d344 x18: 0x0000000000000000 x19: 0x0000000000000000
x20: 0x000000016b931bd0 x21: 0x000000000000008f x22: 0x000000016b931fd0 x23: 0x0000000000000001
x24: 0x0000000000000006 x25: 0x00000001fa53c3c0 x26: 0x000000016b9333d0 x27: 0x000000016b933238
x28: 0x0000000000000000 fp: 0x000000016b931ba0 lr: 0x000000019e6b56c0
sp: 0x000000016b931b60 pc: 0x000000019e6aae58 cpsr: 0x00001000
far: 0x0000000104acc010 esr: 0x56000080 Address size fault

Binary Images:
0x19e63a000 - 0x19e6c44bf dyld (*) <de46dd52-4994-3fd8-b4b4-e352a1a19354> /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=990.4M resident=0K(0%) swapped_out_or_unallocated=990.4M(100%)
Writable regions: Total=9.8M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=9.8M(100%)

Code: Select all

                            VIRTUAL   REGION 

REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
STACK GUARD 56.0M 1
Stack 8176K 1
VM_ALLOCATE 16K 1
__AUTH 572K 132
__AUTH_CONST 10.3M 275
__DATA 4457K 271
__DATA_CONST 15.6M 283
__DATA_DIRTY 678K 97
__FONT_DATA 2352 1
__LINKEDIT 771.1M 8
__OBJC_CONST 1160K 107
__OBJC_RO 65.1M 1
__OBJC_RW 1981K 1
__TEXT 219.3M 298
dyld private memory 512K 2
=========== ======= =======
TOTAL 1.1G 1479


Full Report

{"app_name":"codelite","timestamp":"2022-11-24 20:54:15.00 -0800","app_version":"","slice_uuid":"03dcdd74-45ed-37c8-88ea-067e1e1ec4bc","build_version":"","platform":1,"share_with_app_devs":0,"is_first_party":1,"bug_type":"309","os_version":"macOS 13.0.1 (22A400)","roots_installed":0,"incident_id":"91DC3140-63C4-434D-911F-83C2538C6244","name":"codelite"}
{
"uptime" : 5100,
"procRole" : "Default",
"version" : 2,
"userID" : 501,
"deployVersion" : 210,
"modelCode" : "MacBookPro18,3",
"coalitionID" : 1378,
"osVersion" : {
"train" : "macOS 13.0.1",
"build" : "22A400",
"releaseType" : "User"
},
"captureTime" : "2022-11-24 20:54:15.3975 -0800",
"incident" : "91DC3140-63C4-434D-911F-83C2538C6244",
"pid" : 5094,
"translated" : false,
"cpuType" : "ARM-64",
"roots_installed" : 0,
"bug_type" : "309",
"procLaunch" : "2022-11-24 20:54:15.3705 -0800",
"procStartAbsTime" : 124362437534,
"procExitAbsTime" : 124362993307,
"procName" : "codelite",
"procPath" : "\/Applications\/codelite.app\/Contents\/MacOS\/CodeLite",
"parentProc" : "launchd",
"parentPid" : 1,
"coalitionName" : "com.eranif.CodeLite",
"crashReporterKey" : "9F6B0323-494F-2F4D-0B69-7E1209014267",
"sleepWakeUUID" : "6C897542-644A-4D02-82BB-1EFFF3BFABC9",
"sip" : "enabled",
"exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"},
"termination" : {"code":1,"flags":518,"namespace":"DYLD","indicator":"Library missing","details":["(terminated at launch; ignore backtrace)"],"reasons":["Library not loaded: \/opt\/homebrew\/\/libpcre2-32.0.dylib","Referenced from: <6AB17E22-F9CD-3741-B50A-08185674310B> \/Applications\/codelite.app\/Contents\/MacOS\/libwx_osx_cocoau-3.2.0.1.0.dylib","Reason: tried: '\/opt\/homebrew\/\/libpcre2-32.0.dylib' (no such file), '\/System\/Volumes\/Preboot\/Cryptexes\/OS\/opt\/homebrew\/\/libpcre2-32.0.dylib' (no such file), '\/opt\/homebrew\/\/libpcre2-32.0.dylib' (no such file), '\/usr\/local\/lib\/libpcre2-32.0.dylib' (no such file), '\/usr\/lib\/libpcre2-32.0.dylib' (no such file, not in dyld cache)"]},
"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":55752,"threadState":{"x":[{"value":6},{"value":1},{"value":6099771344},{"value":143},{"value":6099770320},{"value":0},{"value":27700462331637296},{"value":0},{"value":32},{"value":9},{"value":1},{"value":10},{"value":0},{"value":53},{"value":3},{"value":18446744073709551615},{"value":521},{"value":6952309572,"symbolLocation":392,"symbol":"simple_bprintf"},{"value":0},{"value":0},{"value":6099770320},{"value":143},{"value":6099771344},{"value":1},{"value":6},{"value":8494760896,"symbolLocation":0,"symbol":"gProcessInfo"},{"value":6099776464},{"value":6099776056},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":6952801984},"cpsr":{"value":4096},"fp":{"value":6099770272},"sp":{"value":6099770208},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6952758872,"matchesCrashFrame":1},"far":{"value":4373397520}},"frames":[{"imageOffset":462424,"symbol":"abort_with_payload","symbolLocation":8,"imageIndex":0},{"imageOffset":505536,"symbol":"abort_with_payload_wrapper_internal","symbolLocation":104,"imageIndex":0},{"imageOffset":505588,"symbol":"abort_with_payload","symbolLocation":16,"imageIndex":0},{"imageOffset":41124,"symbol":"dyld4::halt(char const)","symbolLocation":328,"imageIndex":0},{"imageOffset":28824,"symbol":"dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const)","symbolLocation":4204,"imageIndex":0},{"imageOffset":24004,"symbol":"start","symbolLocation":2404,"imageIndex":0}]}],
"usedImages" : [
{
"source" : "P",
"arch" : "arm64e",
"base" : 6952296448,
"size" : 566464,
"uuid" : "de46dd52-4994-3fd8-b4b4-e352a1a19354",
"path" : "\/usr\/lib\/dyld",
"name" : "dyld"
}
],
"sharedCache" : {
"base" : 6951649280,
"size" : 3403612160,
"uuid" : "2d053604-1cb6-3821-a8df-360eb2eb519b"
},
"vmSummary" : "ReadOnly portion of Libraries: Total=990.4M resident=0K(0%) swapped_out_or_unallocated=990.4M(100%)\nWritable regions: Total=9.8M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=9.8M(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nSTACK GUARD 56.0M 1 \nStack 8176K 1 \nVM_ALLOCATE 16K 1 \nAUTH 572K 132 \nAUTH_CONST 10.3M 275 \nDATA 4457K 271 \nDATA_CONST 15.6M 283 \nDATA_DIRTY 678K 97 \nFONT_DATA 2352 1 \nLINKEDIT 771.1M 8 \nOBJC_CONST 1160K 107 \nOBJC_RO 65.1M 1 \nOBJC_RW 1981K 1 \n__TEXT 219.3M 298 \ndyld private memory 512K 2 \n=========== ======= ======= \nTOTAL 1.1G 1479 \n",
"legacyInfo" : {
"threadTriggered" : {

}
},
"trialInfo" : {
"rollouts" : [
{
"rolloutId" : "60f8ddccefea4203d95cbeef",
"factorPackIds" : {

Code: Select all

  },
  "deploymentId" : 240000021
},
{
  "rolloutId" : "62cdf63ddb3b7109d6d765cc",
  "factorPackIds" : {
    "SIRI_UNDERSTANDING_TMDC" : "62cdf6dddb3b7109d6d765cd"
  },
  "deploymentId" : 240000007
}

],
"experiments" : [

]
}
}

Model: MacBookPro18,3, BootROM 8419.41.10, proc 8:6:2 processors, 16 GB, SMC
Graphics: Apple M1 Pro, Apple M1 Pro, Built-In
Display: Color LCD, 3024 x 1964 Retina, Main, MirrorOff, Online
Memory Module: LPDDR5, Samsung
AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x4387), wl0: Sep 3 2022 02:35:52 version 20.10.965.9.8.7.129 FWID 01-b0e84a9b
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
USB Device: USB31Bus
USB Device: USB31Bus
USB Device: USB31Bus
Thunderbolt Bus: Laptop, Apple Inc.
Thunderbolt Bus: Laptop, Apple Inc.
Thunderbolt Bus: Laptop, Apple Inc.

User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Codelite Crashes from Missing Library

Post by eranif »

Can you submit a bug report? this kind of posts are often get lost in the forum

Make sure you have read the HOW TO POST thread
Post Reply