I created a tweak for twitter, but when I sideloaded the deb with sideloady, and opened the twitter app it crashes straight away.
recoveryawareness opened this issue · 6 comments
Translated Report (Full Report Below)
Incident Identifier: 97CA4804-864F-4A41-A2DA-8BE9064F3390
CrashReporter Key: bc826f5c5240088c490a5873aa91b937bca01f84
Hardware Model: iPhone14,3
Process: Twitter [17456]
Path: /private/var/containers/Bundle/Application/41789020-881C-417E-A71A-13A62F66A070/Twitter.app/Twitter
Identifier: com.atebits.Tweetie2.GR2XCKHLAR
Version: 9.42 (9.42)
AppStoreTools: 14C17
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.atebits.Tweetie2.GR2XCKHLAR [842]
Date/Time: 2023-02-07 14:13:31.3207 +0000
Launch Time: 2023-02-07 14:13:30.2757 +0000
OS Version: iPhone OS 16.2 (20C65)
Release Type: User
Baseband Version: 2.21.00
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Codes: 0x0000000000000001, 0x0000000000000000
VM Region Info: 0 is not in any region. Bytes before following region: 4367171584
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
__TEXT 1044dc000-104860000 [ 3600K] r-x/r-x SM=COW ...r.app/Twitter
Termination Reason: SIGNAL 11 Segmentation fault: 11
Terminating Process: exc handler [17456]
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 ??? 0x0 ???
1 Orion 0x10581084c 0x1057f0000 + 133196
2 Orion 0x10581068c 0x1057f0000 + 132748
3 Orion 0x1057f91e8 0x1057f0000 + 37352
4 Orion 0x105802224 0x1057f0000 + 74276
5 TweakSwift.dylib 0x104e61084 0x104e58000 + 36996
6 dyld 0x1a5a08280 invocation function for block in dyld4::Loader::findAndRunAllInitializers(dyld4::RuntimeState&) const + 156
7 dyld 0x1a5a5e360 invocation function for block in dyld3::MachOAnalyzer::forEachInitializer(Diagnostics&, dyld3::MachOAnalyzer::VMAddrConverter const&, void (unsigned int) block_pointer, void const*) const + 340
8 dyld 0x1a5a06968 invocation function for block in dyld3::MachOFile::forEachSection(void (dyld3::MachOFile::SectionInfo const&, bool, bool&) block_pointer) const + 524
9 dyld 0x1a5a05cd8 dyld3::MachOFile::forEachLoadCommand(Diagnostics&, void (load_command const*, bool&) block_pointer) const + 296
10 dyld 0x1a5a0517c dyld3::MachOFile::forEachSection(void (dyld3::MachOFile::SectionInfo const&, bool, bool&) block_pointer) const + 192
11 dyld 0x1a5a10d5c dyld3::MachOAnalyzer::forEachInitializer(Diagnostics&, dyld3::MachOAnalyzer::VMAddrConverter const&, void (unsigned int) block_pointer, void const*) const + 516
12 dyld 0x1a5a0d788 dyld4::Loader::findAndRunAllInitializers(dyld4::RuntimeState&) const + 176
13 dyld 0x1a5a09ccc dyld4::Loader::runInitializersBottomUp(dyld4::RuntimeState&, dyld3::Array<dyld4::Loader const*>&) const + 216
14 dyld 0x1a5a09ca8 dyld4::Loader::runInitializersBottomUp(dyld4::RuntimeState&, dyld3::Array<dyld4::Loader const*>&) const + 180
15 dyld 0x1a5a0f33c dyld4::Loader::runInitializersBottomUpPlusUpwardLinks(dyld4::RuntimeState&) const + 328
16 dyld 0x1a5a43244 dyld4::APIs::runAllInitializersForMain() + 360
17 dyld 0x1a5a1866c dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 3388
18 dyld 0x1a5a168d4 start + 2388
Thread 1:
0 libsystem_pthread.dylib 0x1d5205b90 start_wqthread + 0
Thread 2:
0 libsystem_pthread.dylib 0x1d5205b90 start_wqthread + 0
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x00000001dd732250 x1: 0x000000018356b6b8 x2: 0x0000000104e60c80 x3: 0x000000016b91b898
x4: 0x0000000000000039 x5: 0x00000000000000fe x6: 0x000000018132acdc x7: 0x0000000000000100
x8: 0x0000000000000305 x9: 0x0000000000000000 x10: 0x0000000000000002 x11: 0x00000000fffffffe
x12: 0x00000000ffffffff x13: 0x00000001dd6e5e90 x14: 0x00000000cfe6080e x15: 0x00000000cfc607fb
x16: 0x0000000000000000 x17: 0x0000000105818200 x18: 0x0000000000000000 x19: 0x000000018356b6b8
x20: 0x0000000283e2f6b0 x21: 0x000000016b91b850 x22: 0x0000000104e60c80 x23: 0x000000010580726c
x24: 0x0000000000000001 x25: 0x0000000000000001 x26: 0x2e3f00010581c898 x27: 0x000000028392c5a0
x28: 0x0000000000000001 fp: 0x000000016b91b8d0 lr: 0x0000000105810d9c
sp: 0x000000016b91b850 pc: 0x0000000000000000 cpsr: 0x60001400
far: 0x0000000000000000 esr: 0x82000006 (Instruction Abort) Translation fault
Binary Images:
0x0 - 0xffffffffffffffff ??? unknown-arch <00000000000000000000000000000000> ???
0x1057f0000 - 0x105817fff Orion arm64e <57899eccb4393d92b8fc3087966fbb3d> /private/var/containers/Bundle/Application/41789020-881C-417E-A71A-13A62F66A070/Twitter.app/Frameworks/Orion.framework/Orion
0x104e58000 - 0x104e63fff TweakSwift.dylib arm64e /private/var/containers/Bundle/Application/41789020-881C-417E-A71A-13A62F66A070/Twitter.app/Frameworks/TweakSwift.dylib
0x1a5a01000 - 0x1a5a8408f dyld arm64e <7b63c57361613b33a3a29944ba59722f> /usr/lib/dyld
0x1d5205000 - 0x1d5210fff libsystem_pthread.dylib arm64e /usr/lib/system/libsystem_pthread.dylib
EOF
Full Report
{"app_name":"Twitter","timestamp":"2023-02-07 14:13:32.00 +0000","app_version":"9.42","slice_uuid":"a7d5e5fe-d02d-3a8f-a190-52aeac5f407e","build_version":"9.42","platform":2,"bundleID":"com.atebits.Tweetie2.GR2XCKHLAR","share_with_app_devs":1,"is_first_party":0,"bug_type":"309","os_version":"iPhone OS 16.2 (20C65)","roots_installed":0,"name":"Twitter","incident_id":"97CA4804-864F-4A41-A2DA-8BE9064F3390"}
{
"uptime" : 350000,
"procRole" : "Foreground",
"version" : 2,
"userID" : 501,
"deployVersion" : 210,
"modelCode" : "iPhone14,3",
"coalitionID" : 842,
"osVersion" : {
"isEmbedded" : true,
"train" : "iPhone OS 16.2",
"releaseType" : "User",
"build" : "20C65"
},
"captureTime" : "2023-02-07 14:13:31.3207 +0000",
"incident" : "97CA4804-864F-4A41-A2DA-8BE9064F3390",
"pid" : 17456,
"cpuType" : "ARM-64",
"roots_installed" : 0,
"bug_type" : "309",
"procLaunch" : "2023-02-07 14:13:30.2757 +0000",
"procStartAbsTime" : 8487072358630,
"procExitAbsTime" : 8487097388579,
"procName" : "Twitter",
"procPath" : "/private/var/containers/Bundle/Application/41789020-881C-417E-A71A-13A62F66A070/Twitter.app/Twitter",
"bundleInfo" : {"CFBundleShortVersionString":"9.42","CFBundleVersion":"9.42","CFBundleIdentifier":"com.atebits.Tweetie2.GR2XCKHLAR","DTAppStoreToolsBuild":"14C17"},
"storeInfo" : {"deviceIdentifierForVendor":"1083B4BB-68C1-4E26-8B6A-0309351BDEC4","thirdParty":true},
"parentProc" : "launchd",
"parentPid" : 1,
"coalitionName" : "com.atebits.Tweetie2.GR2XCKHLAR",
"crashReporterKey" : "bc826f5c5240088c490a5873aa91b937bca01f84",
"wasUnlockedSinceBoot" : 1,
"isLocked" : 0,
"throttleTimeout" : 2147483647,
"basebandVersion" : "2.21.00",
"vmRegionInfo" : "0 is not in any region. Bytes before following region: 4367171584\n REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL\n UNUSED SPACE AT START\n---> \n __TEXT 1044dc000-104860000 [ 3600K] r-x/r-x SM=COW ...r.app/Twitter",
"exception" : {"codes":"0x0000000000000001, 0x0000000000000000","rawCodes":[1,0],"type":"EXC_BAD_ACCESS","signal":"SIGSEGV","subtype":"KERN_INVALID_ADDRESS at 0x0000000000000000"},
"termination" : {"flags":0,"code":11,"namespace":"SIGNAL","indicator":"Segmentation fault: 11","byProc":"exc handler","byPid":17456},
"vmregioninfo" : "0 is not in any region. Bytes before following region: 4367171584\n REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL\n UNUSED SPACE AT START\n---> \n _TEXT 1044dc000-104860000 [ 3600K] r-x/r-x SM=COW ...r.app/Twitter",
"faultingThread" : 0,
"threads" : [{"triggered":true,"id":4206549,"threadState":{"x":[{"value":8010277456,"symbolLocation":0,"symbol":"OBJC_CLASS$_UILabel"},{"value":6498465464,"objc-selector":"setText:"},{"value":4377152640},{"value":6099679384},{"value":57},{"value":254},{"value":6462549212,"symbolLocation":0,"symbol":"storeMultiPayloadExtraInhabitantTag(swift::OpaqueValue*, unsigned int, unsigned int, swift::TargetMetadataswift::InProcess const*)"},{"value":256},{"value":773},{"value":0},{"value":2},{"value":4294967294},{"value":4294967295},{"value":8009965200,"symbolLocation":10296,"symbol":"InitialAllocationPool"},{"value":3487959054},{"value":3485861883},{"value":0},{"value":4387340800},{"value":0},{"value":6498465464,"objc-selector":"setText:"},{"value":10802624176},{"value":6099679312},{"value":4377152640},{"value":4387271276},{"value":1},{"value":1},{"value":3332382253664815256,"symbolLocation":3332382249277456560,"symbol":"globalinit_33_D4D48D3957AE82012DC17C0359322878_token4"},{"value":10797368736},{"value":1}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4387311004},"cpsr":{"value":1610617856},"fp":{"value":6099679440},"sp":{"value":6099679312},"esr":{"value":2181038086,"description":"(Instruction Abort) Translation fault"},"pc":{"value":0},"far":{"value":0}},"queue":"com.apple.main-thread","frames":[{"imageOffset":0,"imageIndex":0},{"imageOffset":133196,"imageIndex":1},{"imageOffset":132748,"imageIndex":1},{"imageOffset":37352,"imageIndex":1},{"imageOffset":74276,"imageIndex":1},{"imageOffset":36996,"imageIndex":2},{"imageOffset":29312,"symbol":"invocation function for block in dyld4::Loader::findAndRunAllInitializers(dyld4::RuntimeState&) const","symbolLocation":156,"imageIndex":3},{"imageOffset":381792,"symbol":"invocation function for block in dyld3::MachOAnalyzer::forEachInitializer(Diagnostics&, dyld3::MachOAnalyzer::VMAddrConverter const&, void (unsigned int) block_pointer, void const*) const","symbolLocation":340,"imageIndex":3},{"imageOffset":22888,"symbol":"invocation function for block in dyld3::MachOFile::forEachSection(void (dyld3::MachOFile::SectionInfo const&, bool, bool&) block_pointer) const","symbolLocation":524,"imageIndex":3},{"imageOffset":19672,"symbol":"dyld3::MachOFile::forEachLoadCommand(Diagnostics&, void (load_command const*, bool&) block_pointer) const","symbolLocation":296,"imageIndex":3},{"imageOffset":16764,"symbol":"dyld3::MachOFile::forEachSection(void (dyld3::MachOFile::SectionInfo const&, bool, bool&) block_pointer) const","symbolLocation":192,"imageIndex":3},{"imageOffset":64860,"symbol":"dyld3::MachOAnalyzer::forEachInitializer(Diagnostics&, dyld3::MachOAnalyzer::VMAddrConverter const&, void (unsigned int) block_pointer, void const*) const","symbolLocation":516,"imageIndex":3},{"imageOffset":51080,"symbol":"dyld4::Loader::findAndRunAllInitializers(dyld4::RuntimeState&) const","symbolLocation":176,"imageIndex":3},{"imageOffset":36044,"symbol":"dyld4::Loader::runInitializersBottomUp(dyld4::RuntimeState&, dyld3::Array<dyld4::Loader const*>&) const","symbolLocation":216,"imageIndex":3},{"imageOffset":36008,"symbol":"dyld4::Loader::runInitializersBottomUp(dyld4::RuntimeState&, dyld3::Array<dyld4::Loader const*>&) const","symbolLocation":180,"imageIndex":3},{"imageOffset":58172,"symbol":"dyld4::Loader::runInitializersBottomUpPlusUpwardLinks(dyld4::RuntimeState&) const","symbolLocation":328,"imageIndex":3},{"imageOffset":270916,"symbol":"dyld4::APIs::runAllInitializersForMain()","symbolLocation":360,"imageIndex":3},{"imageOffset":95852,"symbol":"dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*)","symbolLocation":3388,"imageIndex":3},{"imageOffset":88276,"symbol":"start","symbolLocation":2388,"imageIndex":3}]},{"id":4206564,"frames":[{"imageOffset":2960,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":4}]},{"id":4206565,"frames":[{"imageOffset":2960,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":4}]}],
"usedImages" : [
{
"size" : 0,
"source" : "A",
"base" : 0,
"uuid" : "00000000-0000-0000-0000-000000000000"
},
{
"source" : "P",
"arch" : "arm64e",
"base" : 4387176448,
"size" : 163840,
"uuid" : "57899ecc-b439-3d92-b8fc-3087966fbb3d",
"path" : "/private/var/containers/Bundle/Application/41789020-881C-417E-A71A-13A62F66A070/Twitter.app/Frameworks/Orion.framework/Orion",
"name" : "Orion"
},
{
"source" : "P",
"arch" : "arm64e",
"base" : 4377116672,
"size" : 49152,
"uuid" : "ac9cbcf5-9ec0-3bba-93c1-4031109cdd10",
"path" : "/private/var/containers/Bundle/Application/41789020-881C-417E-A71A-13A62F66A070/Twitter.app/Frameworks/TweakSwift.dylib",
"name" : "TweakSwift.dylib"
},
{
"source" : "P",
"arch" : "arm64e",
"base" : 7073697792,
"size" : 536720,
"uuid" : "7b63c573-6161-3b33-a3a2-9944ba59722f",
"path" : "/usr/lib/dyld",
"name" : "dyld"
},
{
"source" : "P",
"arch" : "arm64e",
"base" : 7870631936,
"size" : 49152,
"uuid" : "f2ba7ec0-f75a-3345-b4f6-f7da4979b902",
"path" : "/usr/lib/system/libsystem_pthread.dylib",
"name" : "libsystem_pthread.dylib"
}
],
"sharedCache" : {
"base" : 6446088192,
"size" : 2938519552,
"uuid" : "e58b2fdc-9ef9-3d75-81de-5a1634729dd9"
},
"vmSummary" : "ReadOnly portion of Libraries: Total=1.1G resident=0K(0%) swapped_out_or_unallocated=1.1G(100%)\nWritable regions: Total=540.5M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=540.5M(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nActivity Tracing 256K 1 \nColorSync 16K 1 \nKernel Alloc Once 32K 1 \nMALLOC 531.7M 19 \nMALLOC guard page 64K 4 \nSTACK GUARD 48K 3 \nStack 2096K 3 \n__AUTH 3514K 448 \n__AUTH_CONST 27.6M 701 \n__CTF 756 1 \n__DATA 27.3M 710 \n__DATA_CONST 38.2M 719 \n__DATA_DIRTY 3485K 591 \n__FONT_DATA 2352 1 \n__LINKEDIT 347.8M 18 \n__LLVM 1072K 1 \n__OBJC_CONST 6674K 474 \n__OBJC_RO 78.8M 1 \n__OBJC_RW 2436K 1 \n__TEXT 802.7M 733 \ndyld private memory 1536K 3 \nmapped file 29.1M 2 \nshared memory 48K 3 \n=========== ======= ======= \nTOTAL 1.9G 4439 \n",
"legacyInfo" : {
"threadTriggered" : {
"queue" : "com.apple.main-thread"
}
},
"trialInfo" : {
"rollouts" : [
{
"rolloutId" : "610d52e1fc54bc3389840408",
"factorPackIds" : {
"SIRI_UNDERSTANDING_ATTENTION_ASSETS" : "633634554ccc894afe59e7be",
"SIRI_UNDERSTANDING_ASR_ASSISTANT" : "6376d7fe99e1ff5d8f0dcc3d",
"SIRI_UNDERSTANDING_NL" : "6365b2b2bce21e387fd2011f",
"SIRI_EXPERIENCE_CAM" : "6351dd0be4c9db3c7c8f48ae",
"SIRI_UNDERSTANDING_MORPHUN" : "62ec7220c682040ba94e6a20"
},
"deploymentId" : 250000565
},
{
"rolloutId" : "601074e4af9bef000c169ea8",
"factorPackIds" : {
"BIFROST_DEV_1" : "63de6213685f771218845097"
},
"deploymentId" : 250003514
}
],
"experiments" : [
]
}
}
Still not able to get it to work :( and keep getting "OrionCLI: No such file or directory, and nothing will compile." so I can't even compile to test and see if the 5.7 version works
I don't think you need the 5.7 branch, because that's already been merged into main. @ExTBH is right about Substrate, it seems you're trying to use the Substrate backend but CydiaSubstrate isn't injected into the ipa. Either inject Substrate (and ensure that you're loading it correctly) or use the Internal backend instead by setting tweakname_ORION_DEFAULT_BACKEND = Internal
.
I managed to get this working
@recoveryawareness how did you get this working? Im having the same issue