checkra1n / BugTracker

checkra1n bug tracker
729 stars 104 forks source link

Substrate crashing (kernel panics / tweaks stop working) #533

Closed xorpix closed 4 years ago

xorpix commented 4 years ago
  1. What iDevice are you using? iPhone 8 Plus
  2. On what version of iOS is it? iOS 13.2.3
  3. What version of checkra1n are you using? GUI or CLI? GUI 0.9.5
  4. What is your host system (OS version? Hackintosh? VM? etc.)? macOS 10.15.1
  5. How are you connecting to the device (USB-A? USB-C? Apple/3rd party cable? Through a USB hub?)? USB-A

What are the steps to reproduce the issue?

  1. Just simply using the device
  2. Suddenly everything begins to lag until the screen completely freezes
  3. After about 2 minutes it falls into something like ldrestart loop (dimmed respring wheel) and reboots in few minutes in unjailbroken state

What do you expect, and what is happening instead?

Does the issue also occur if you enable Safe Mode?

Any other info, error logs, screenshots, ...? Here are panic logs:

https://we.tl/t-FbbkOvqwWw https://we.tl/t-s2WeX36UgP

Siguza commented 4 years ago

Your logs show a lot of xpcproxy and some other processes in suspended state, which is certainly not standard behaviour. I'm fairly certain this is a tweak that is either restarting processes en masse, or hooking and stalling them on restart.
The best advice I can give you is to use iCleaner to disable half of your tweaks, see if the bug still occurs, then disable half of those still enabled, etc. until you identify the one causing it. :/

xorpix commented 4 years ago

Thank You for your reply. Also, I will attach my tweak list here.

7-zip (POSIX): 16.02-1
AppList: 1.5.15~beta1
APT (apt-key): 1.8.2-1
APT (libapt-pkg): 1.8.2-1
APT 0.7 Transitional (apt-key): 1:0
APT 1.4 Transitional: 1:0
APT Strict (lib): 1.8.2-1
APT: 1.8.2-3
Assuan: 2.5.1-1
Base Structure: 1-5
Berkeley DB: 6.2.32-1
BetterCCXI: 1.6.0
BigBoss Icon Set: 1.0
Bourne-Again SHell: 5.0.3-2
bzip2: 1.0.6-1
CA Certs: 0.0.2
CCSupport: 1.2.2
Cephei: 1.13.1-2
Cercube for YouTube: 5.1.2
CopyLog: 1.2.6
Core Utilities (/bin): 8.31-1
Core Utilities: 8.31-1
Cydia Installer: 1.1.32~b23
Cydia Substrate: 0.9.7100~b3
Cydia Translations: 1.1.32~b1
Dark: 1.5
Darwin Tools: 1.1-1
Debian Packager: 1.19.7-1
Debian Utilities: 4.8.6-1
Diff Utilities: 3.6-1
diskdev-cmds: 593.221.1-1
EmojiKey: 1.4
Essential: 0-1
FDots: 1.0.1
file: 5.35-2
Filza File Manager 64-bit: 3.7.3-16
Find Utilities: 4.6.0-2
Firefly: 2.0.1-1
Flame: 1.3
FoxFort Tools: 1.0.9
gettext: 0.19.8-1
GNU Cryptography: 1.8.3-1
GNU Multiple Precision Arithmetic Library: 6.1.2-1
GnuPG Errors: 1.32-1
GnuPG: 2.2.11-2
GnuTLS: 3.5.19-1
grep: 3.1-1
gzip: 1.9-1
iCleaner Pro: 7.7.5
iOS Firmware: 13.2.3
iPhone Firmware (/sbin): 0-1
Jellyfish: 1.3.3
Kal Theme Pack 2: 2.4
KSBA: 1.3.5-1
Launch Daemon Controller: 22-1
libcolorpicker: 1.6.6
libCSColorPicker: 1.0.3
libfoxfortutils: 1.0.11
libidn2: 6.1.2-1
libpackageinfo (cokepokes): 1.1.0.1-3
libplist: 2.0.0-2
libSparkAppList: 1.0.4
libswift (stable): 5.0
libtasn1: 4.13-1
libunistring: 0.9.10-1
Link Identity Editor: 2:2.1.2+24497ae-1
Locale Profiles in UTF-8: 1.0-1
LocalIAPStore: 1.4-2
Lotus Dark: 1.0.9
LZ4: 1.7.5-1
LZMA Utils: 2:4.32.7-2
Magma Pro: 1.4.1
MDausch Utils: 0.0.4
Nettle: 3.4.1-1
New Curses: 5.9-1
New Curses: 6.1-1
New GNU Portable Threads: 1.6-1
NewTerm (iOS 10 – 13): 2.3
NoDNDBanner: 0.0.1
OpenSSH: 7.9p1-3
OpenSSL 1.0 Libraries: 1.0.2s-1
p11-kit: 0.23.12-1
PortraitXI: 1.0.5
powerlogHelperdFix: 1.0
PowerModule: 1.2.6
PreferenceLoader: 2.2.4~beta1
Profile Directory: 0-1
readline: 8.0-1
RocketBootstrap: 1.0.7~beta3
Safari Plus: 1.7.8-2
sed: 4.5-1
shell-cmds: 118-8
Snappy: 1.3.0
SnowBoard Settings Icons Extension: 1.0.17~Beta1
SnowBoard: 1.2.74~Beta1
Soda Repo Icons: 1.2
star vpn: 0.0.1-1+debug
Substrate Safe Mode: 0.9.6003
Switches: 2.1
Sylph: 1.3~Beta.1
System Info: 2.3.2-6+debug
system-cmds: 790.30.1-2
Tape Archive: 1.30-2
TechSupport Framework (cokepokes): 1.5.0.1-2
TFDidThatSay?: 1.2.7
UIKit Tools: 1.1.15-2
unrar: 5.6.4-1
unzip: 6.0+deb9u1-1
wget: 1.19.5-2
XZ Utils: 5.2.4-4
zip: 2.32-1
foxfortmobile commented 4 years ago

I have been having same issue. got 3 random freeze with exact behaviour as @xorpix mentioned. Here is my panic log: https://pastebin.com/4Kc356QU

my tweak list:

7-zip (POSIX): 16.02-1
Aperturize: 1.1.0-45+debug
AppList: 1.5.15~beta1
APT (apt-key): 1.8.2-1
APT (libapt-pkg): 1.8.2-1
APT 0.7 Transitional (apt-key): 1:0
APT 1.4 Transitional: 1:0
APT Strict (lib): 1.8.2-1
APT: 1.8.2-3
Assuan: 2.5.1-1
Barmoji: 1.7
Base Structure: 1-5
Berkeley DB: 6.2.32-1
BigBoss Icon Set: 1.0
Bourne-Again SHell: 5.0.3-2
bzip2: 1.0.6-1
CA Certs: 0.0.2
CCModules: 1.4-3
CCSupport: 1.2.2
Cephei: 1.13.1-2
CocoaTop: 2.0.2
Core Utilities (/bin): 8.31-1
Core Utilities: 8.31-1
CrashReporter (SparkDev): 1.17.2
Cydia Installer: 1.1.32~b22
Cydia Substrate: 0.9.7100~b3
Cydia Translations: 1.1.32~b1
DarkSounds: 1.5.2-1+debug
Darwin Tools: 1.1-1
Debian Packager: 1.19.7-1
Debian Utilities: 4.8.6-1
Deluminator: 2.2.12-59+debug
Diff Utilities: 3.6-1
Dimage: 1.2.1-1+debug
diskdev-cmds: 593.221.1-1
Eclipse Dark Mode (iOS 12): 6.1.2-2
Essential: 0-1
FacebookDarkMode: 2.5.1-5+debug
file: 5.35-2
Filza File Manager 64-bit: 3.7.2-24
Find Utilities: 4.6.0-2
Flame: 1.3
Flex 3: 3~EarlyAccess4
FLEXing: 0.0.12-4
FoxFort Tools: 1.0.9
gettext: 0.19.8-1
Gmail Midnight: 1.2.0-23+debug
GNU Cryptography: 1.8.3-1
GNU Multiple Precision Arithmetic Library: 6.1.2-1
GnuPG Errors: 1.32-1
GnuPG: 2.2.11-2
GnuTLS: 3.5.19-1
Graphite Library: 1.0~beta1
grep: 3.1-1
gzip: 1.9-1
iCleaner Pro: 7.7.5
InspectiveC: 1.2.0
iOS Firmware: 13.2.2
iPhone Firmware (/sbin): 0-1
KSBA: 1.3.5-1
libbulletin: 0.1-153
libcolorpicker: 1.6.6
libcrashreport (SparkDev): 1.1.2
libCSColorPicker: 1.0.3
Liberty Lite (Beta): 0.2.12
libfoxfortsplash: 1.1.0
libfoxfortutils: 1.0.10-91+debug
libidn2: 6.1.2-1
libnotifications: 0.2-2
libpackageinfo (SparkDev): 1.1.4
libplist: 2.0.0-2
libSparkAppList: 1.0.3
libswift (stable): 5.0
libsymbolicate (SparkDev): 1.9.2
libtasn1: 4.13-1
libunistring: 0.9.10-1
Link Identity Editor: 2:2.1.1+elucubratus2
Locale Profiles in UTF-8: 1.0-1
LookinLoader: 1.0.5
LZ4: 1.7.5-1
LZMA Utils: 2:4.32.7-2
Nettle: 3.4.1-1
New Curses: 5.9-1
New Curses: 6.1-1
New GNU Portable Threads: 1.6-1
NewTerm 2 (iOS 10 – 12): 2.2.1
OpenSSH: 7.9p1-3
OpenSSL 1.0 Libraries: 1.0.2s-1
p11-kit: 0.23.12-1
PortraitXI: 2.0.0-24+debug
powerlogHelperdFix: 1.0
PreferenceLoader: 2.2.4~beta1
Profile Directory: 0-1
readline: 8.0-1
RocketBootstrap: 1.0.7~beta3
sed: 4.5-1
shell-cmds: 118-8
Snappy: 1.2
Substrate Safe Mode: 0.9.6003
system-cmds: 790.30.1-2
Tape Archive: 1.30-2
TechSupport Framework (SparkDev): 1.5.2
TFDidThatSay?: 1.2.7
Translomatic: 1.3.0
TSSSaver 2: 1.0-beta-4
TweakRestrictor: 1.0.1
UIKit Tools: 1.1.15-2
unrar: 5.6.4-1
unzip: 6.0+deb9u1-1
webinspect: 0.0.1-6+debug
wget: 1.19.5-2
XZ Utils: 5.2.4-4
Zebra (BETA): 1.0~beta23-1
zip: 2.32-1

I have been trying to disable tweaks to find out who might be causing it but till now still not figured it out

foxfortmobile commented 4 years ago

@xorpix portraixi is not compatible with ios 13 anyways. remove it along with foxforttools and libfoxfortutils, you probably don't need those.

opa334 commented 4 years ago

Same issue here! iPhone X 13.2.3, checkra1n 0.9.5, High Sierra 10.3.6 on Hackintosh.

I scrolled through Instagram and suddenly pictures stopped loading, then after a while Instagram crashed, I tried to open Cr4shed but it wouldn‘t open, then after some time SpringBoard froze up and would no longer respond to touches, after some more time the screen went black and after some more time the kernel panicked

Tweak list:

7-zip (POSIX): 16.02-1
AppList: 1.5.15~beta1
Apps Manager: 1.5.1-10
AppStore++: 0.9.7
APT (apt-key): 1.8.2-1
APT (libapt-pkg): 1.8.2-1
APT 0.7 Transitional (apt-key): 1:0
APT 1.4 Transitional: 1:0
APT Strict (lib): 1.8.2-1
APT: 1.8.2-3
Assuan: 2.5.1-1
Base Structure: 1-5
Berkeley DB: 6.2.32-1
BetterCCXI: 1.6.0
BigBoss Icon Set: 1.0
Bourne-Again SHell: 5.0.3-2
bzip2: 1.0.6-1
CA Certs: 0.0.2
CCModules Pro: 1.1.0
CCModules: 1.4-3
CCSupport: 1.2.2
Cephei: 1.13.1-2
Choicy: 1.0.2
CocoaTop: 2.0.2
ColorBanners 3: 1.0.0
Core Utilities (/bin): 8.31-1
Core Utilities: 8.31-1
CrashReporter (SparkDev): 1.17.2
Cydia Installer: 1.1.32~b23
Cydia Substrate: 0.9.7100~b3
Cydia Translations: 1.1.32~b1
Darwin Tools: 1.1-1
Debian Packager: 1.19.7-1
Debian Utilities: 4.8.6-1
Diff Utilities: 3.6-1
diskdev-cmds: 593.221.1-1
Essential: 0-1
Felicity: 5.0
file: 5.35-2
Filza File Manager 64-bit: 3.7.3-16
Find Utilities: 4.6.0-2
Flame: 1.3
FLEXall: 0.0.1-11
gettext: 0.19.8-1
GNU Cryptography: 1.8.3-1
GNU Multiple Precision Arithmetic Library: 6.1.2-1
GnuPG Errors: 1.32-1
GnuPG: 2.2.11-2
GnuTLS: 3.5.19-1
grep: 3.1-1
gzip: 1.9-1
IconSupport: 1.11.1
IconSupportFix: 1.0.0
iOS Firmware: 13.2.3
iPhone Firmware (/sbin): 0-1
KSBA: 1.3.5-1
Launch Daemon Controller: 22-1
libcolorpicker: 1.6.6
libcrashreport (SparkDev): 1.1.2
libCSColorPicker: 1.0.3
libidn2: 6.1.2-1
libnotifications: 0.2-3
libpackageinfo (SparkDev): 1.1.4
libplist: 2.0.0-2
libsymbolicate (SparkDev): 1.9.2
libtasn1: 4.13-1
libunistring: 0.9.10-1
Link Identity Editor: 2:2.1.2+24497ae-1
Locale Profiles in UTF-8: 1.0-1
LZ4: 1.7.5-1
LZMA Utils: 2:4.32.7-2
Nettle: 3.4.1-1
New Curses: 5.9-1
New Curses: 6.1-1
New GNU Portable Threads: 1.6-1
NewTerm (iOS 10 – 13): 2.3
OpenSSH: 7.9p1-3
OpenSSL 1.0 Libraries: 1.0.2s-1
p11-kit: 0.23.12-1
PreferenceLoader: 2.2.4~beta1
Profile Directory: 0-1
readline: 8.0-1
Rocket for Instagram: 3.6.6
RocketBootstrap: 1.0.7~beta3
Safari Plus: 1.7.9
sed: 4.5-1
shell-cmds: 118-8
Snapper 2: 2.2.4
Snappy: 1.3.0
SnowBoard: 1.2.74~Beta1
Stalky: 4.0.9
Substrate Safe Mode: 0.9.6003
System Info: 2.3.2-6+debug
system-cmds: 790.30.1-2
Tape Archive: 1.30-2
TechSupport Framework (SparkDev): 1.5.2
TFDidThatSay?: 1.2.7
UIKit Tools: 1.1.15-2
unrar: 5.6.4-1
unzip: 6.0+deb9u1-1
Watusi 2 for WhatsApp: 1.2.21
WatusiTools: 2.1.10
wget: 1.19.5-2
White Point Module: 1.2.1
Wraith: 0.0.3
XZ Utils: 5.2.4-4
Zenith: 1.2.2
zip: 2.32-1

Kernel panic: https://pastebin.com/SRN3Bxfg

xorpix commented 4 years ago

@xorpix portraixi is not compatible with ios 13 anyways. remove it along with foxforttools and libfoxfortutils, you probably don't need those.

Already deleted. And btw, spotted 2.0.0 version ;) I actually disabled all of my tweaks and will see if it still occurs.

Well, you guys seem to have kernel panic log with the same panicString as me..

Siguza commented 4 years ago

So out of the packages you have in common, I think only these have a real chance of being the root cause:

CCSupport
Cephei
Essential
RocketBootstrap
TFDidThatSay?

Both Cephei and RocketBootstrap state that iOS 13 is not supported. Additionally, I can't seem to find a package called Essential anywhere, and the same goes for Filza File Manager 64-bit actually (the official source doesn't say "64-bit"). Could you:

  1. Try to disable the tweaks listed above and see if the issue persists?
  2. Post your sources list?
xorpix commented 4 years ago

Here’s my sources list:

https://apt.bingner.com/ 
http://repo.lonestarx.net/ 
https://skitty.xyz/repo/ 
http://beta.unlimapps.com/ 
https://repo.twickd.com/ 
http://cydia.f0u4d.com/
http://rpetri.ch/repo/ 
http://repo.kritanta.me/ 
https://sparkdev.me/ 
http://apt.thebigboss.org/repofiles/cydia/ 
http://skylerk99.github.io/ 
http://cokepokes.github.io/ 
https://apt.noisyflake.com/ 
http://akusio.github.io/ 
https://revulate.dev/ 
http://cemck.github.io/repo/ 
http://dpkg9510.github.io/ 
https://soda-ldz.yourepo.com/ 
https://c1d3r.com/repo/ 
http://junesiphone.com/supersecret/ 
https://gmoran.me/repo/ 
https://zyan910.yourepo.com/ 
https://repo.rpgfarm.com/ 
http://aquawu.github.io/igg/ 
https://creaturecoding.com/repo/ 
https://repo.chariz.io/ 
https://ib-soft.net/cydia/ 
http://cydia.wuffs.org/ 
https://repo.dynastic.co/ 
http://cydia.ichitaso.com/ 
https://ib-soft.net/cydia/beta/ 
https://opa334.github.io/ 
https://chr0nict.github.io/Nepeta 
https://castyte.js.org/repo/ 
https://repo.daus.ch/ 
https://repo.pixelomer.com/ 
https://apt.alfhaily.me/ 
https://cydia.akemi.ai/ 
https://repo.linusyang.com/ 
https://calicocat.yourepo.com/ 
https://shepgoba.me/repo/ 
http://tigisoftware.com/cydia/ 
http://limneos.net/repo/ 
https://apt.geometricsoftware.se/ 
https://carbondevstudio.github.io/ 
https://skylarmccauley.xyz/hacked 
http://apt.modmyi.com/ 
https://yaypixxo.com/ 
http://julioverne.github.io/ 
https://repo.packix.com/ 
http://xenpublic.incendo.ws/ 
http://repo.incendo.ws/ 
http://cydia.kemmis.info/ 
http://cydia.zodttd.com/repo/cydia/ 
http://cydiageek.yourepo.com/ 
https://apt.arx8x.net/ 
http://getdelta.co/ 
https://nbonaparte.github.io/cydia 
https://checkra.in/assets/mobilesubstrate/
xorpix commented 4 years ago

And one more interesting thing... I can’t see Essential in Cydia.. 81F7C051-5F49-4ADD-9073-B48136A3BE94

opa334 commented 4 years ago

@Siguza

@foxfortmobile told me in private that he has both Cephei dylibs disabled, so I don‘t think it could be the issue. I‘m the developer of CCSupport actually and would be surprised if it causes this issue as I don‘t do any stuff with processes (source code is on https://github.com/opa334/CCSupport tho).

Filza File Manager 64-bit is a special version of Filza without the armv7 slice to save space, it is available on http://tigisoftware.com/cydia/.

Essential does not show up in Cydia for me, so I assume it is some sort of internal thing of the jailbreak maybe?

Sources list:

https://apt.bingner.com/
https://repo.pixelomer.com/
https://poomsmart.github.io/repo/
http://limneos.net/repo/
http://apt.thebigboss.org/repofiles/cydia/
https://opa334.github.io/
https://cokepokes.github.io/
http://system.in-appstore.com/repo/
https://lint.github.io/repo/
https://apt.fouadraheb.com/
http://apt.modmyi.com/
http://apt.golddavid.com/
https://revulate.dev/
http://tigisoftware.com/cydia/
https://chr0nict.github.io/Nepeta
https://repo.dynastic.co/
https://sparkdev.me/
http://repo.kritanta.me/
http://cydia.zodttd.com/repo/cydia/
https://dgh0st.github.io/
https://repo.chariz.io/
https://cydia.akemi.ai/
https://rpetri.ch/repo/
https://apt.alfhaily.me/
https://ib-soft.net/cydia/beta/
https://gilesgc.github.io/repo/
https://repo.packix.com/
https://apptapp.me/repo/
https://creaturecoding.com/repo/
https://apt.arx8x.net/
https://checkra.in/assets/mobilesubstrate/
Siguza commented 4 years ago

My bad, turns out Essential is a Cydia thing that just seems to be hidden from the Cydia UI itself.

foxfortmobile commented 4 years ago

As @opa334 mentioned, i had cephei disabled when i installed it since i have some trust issues with it. TFDidThatSay runs only in reddit and apollo app, so shouldn't cause any issue like this. Maybe its rocketbootstrap since it has not been updated for ios 13

rpendleton commented 4 years ago

For what it's worth, I think I've been seeing something similar and I don't have any invasive tweaks installed. The last occurrence I just experienced wasn't as bad as previous times, but I figured I'd document it anyway.

The last time it happened, I was in Chrome and then the app froze. I restarted the app, but it was hanging on launch for about 20 seconds. I tried to launch it again and it showed an error message about how "Some add-ons cause Chrome to crash. Please try uninstalling them." Restarting just led to a cycle between those two states.

Then I was no longer able to type in iMessage. I was able to launch Safari, but tapping the address bar would freeze Safari. I was able type type in Spotlight though, so I used that to search for something in Safari and then website content in Safari worked fine for a few minutes. Eventually, it stopped working as well.

At this point, I opened Cydia and uninstalled Rocket Bootstrap (which forced AppList and FLEXible to be uninstalled), and then did a respring. The same issue with being unable to launch Chrome persisted. I then uninstalled Frida and two tweaks I wrote that targeted specific unaffected apps, but the issue persisted.

At this point, all I had installed was Cydia Substrate and its corresponding Safe Mode. I uninstalled Cydia Substrate, and after a respring, the issues were gone and Chrome worked again.

I was unable to launch Cydia at this point to reinstall Cydia Substrate to see if that reintroduced the issue, but all of the problems I saw earlier were resolved. I tried re-installing Cydia and re-jailbreaking and re-installing Cydia, but neither approach allowed me to launch it. Deleting a metadata file fixed that issue though. I've reinstalled Cydia Substrate and the two tweaks I wrote that target specific apps (just patching jailbreak detection), so I'll see if the issue occurs over a few days now that I don't have Rocket Bootstrap or FLEXible installed.

Is there a specific location I can look for logs that might be of assistance? I'm taking a sysdiagnose in case they'll be in there, but I'm not sure what logs are actually useful for debugging this type of issue. I was unable to find crash reports for any of the affected apps in the Analytics Data section of Settings.

opa334 commented 4 years ago

I just had this issue again. Happened while browsing Safari this time. I have removed tfdidthatsay since then so we can rule that out too.

There were some similar issues with Substrate before (https://github.com/pwn20wndstuff/Undecimus/issues/165), so maybe it is a new bug with it in iOS 13? That or rocketbootstrap is at fault here, I can't test it however cause this is a daily driver and I rely on some tweaks that depend on rocketbootstrap.

xorpix commented 4 years ago

I’m still testing it. Haven’t had reboot yet since updating to checkra1n 0.9.6... But will see.. Usually, it appears on 4th-6th day after jailbreaking.

xorpix commented 4 years ago

https://reddit.com/r/jailbreak/comments/e6473e/discussion_cydia_substrate_dissables_itself/

It appears that all those problems are connected to Cydia Substrate.

xorpix commented 4 years ago

It’s just happened again to me. The panicString in the log is the same: https://we.tl/t-Ngr3ZIZQVR

xorpix commented 4 years ago

I opened Cydia and refreshing sources froze (the wheel was still spinning tho)

foxfortmobile commented 4 years ago

Update: I have removed Eclipse Dark Mode (iOS 12) and have not got the issue again in the past few days. Will keep monitoring.

xorpix commented 4 years ago

An update which I already wrote in discord.

Substrate just stopped working again. Some tweaks stopped working and after I did respring the rest of tweaks stopped working completely. After that I did ldrestart and the phone went into dimmed respring wheel until rebooted unjailbroken.

I was told that devs are already working on a fix.

youngslim commented 4 years ago

#652 was my issue, I have both Cephei and RocketBootstrap installed, But the different thing is I never got freeze when I use my phone like you guys did, It only got into respring loop and reboot when I unlock it or when phone is idle, It just suddenly starts respring and for a couple minutes, It reboots. Very curious why it never got me into safe mode, thought it was supposed to deal with this

opa334 commented 4 years ago

After doing a DFU restore to 13.3 (I restored an iTunes backup and all tweaks using batchomatic afterwards, so the setup is exactly the same), I'm no longer getting this issue.

xorpix commented 4 years ago

I've installed Crash Reporter by Spark. Maybe it will catch something useful. Keeping investigation of this issue.

Siguza commented 4 years ago

At this point I'm fairly confident that this, along with a range of other issues, is caused by Substrate crashing.

xorpix commented 4 years ago

So it needs fix by Saurik?

Siguza commented 4 years ago

Yes. But I also know that he doesn't have much spare time at the moment, and this seems like an issue that might take multiple days, if not weeks, to debug. :/

xorpix commented 4 years ago

Moreover, as i remember he said earlier that he is not interested in maintaining it anymore. I really hope that he will actually do this and will wait for it..

xorpix commented 4 years ago

And also wait for a dongle/arduino battery case solution i guess.. Because when it happens while i don't have the access to a computer, i'm stuck unjailbroken. And this is what sucks the most about it.

foxfortmobile commented 4 years ago

I updated my phone to 13.3 yesterday and jailbroken using checkrain 0.9.7. When using it to edit a photo, it randomly started to lag, then froze and eventually that spinning wheel appeared and stay for 2 minutes. Then the device rebooted. Sadly my CrashReporter itself is crashing and not opening anymore. So can't check any logs from there.

On the other side, there is a user who claims to get this issue more often when using portraitxi to take a picture. He said randomly when he would take pictures, the phone would freeze and reboot. He says this log is closest to the time it happened: https://pastebin.com/WAwHbKnV

Note: PortraitXI is only injected in camera process. So im not sure how it could cause other process to hang too.

vladaad commented 4 years ago

I have the same issue, and have a few crashlogs including a kernel panic. I also have this issue only while using PortraitXI and taking multiple portrait photos and editing them. This however should only be causing the springboard to crash at most and not a kernel panic. I've spoken with foxfortmobile since it's his tweak and it seems as though it's not PortraitXI's fault. Crash logs:

Kernel panic log: https://pastebin.com/VWGy8fuS stacks+backboardd crashlog 1: https://pastebin.com/sTyZx3Au stacks+backboardd crashlog 2: https://pastebin.com/7UNnFagB stacks+thermalmonitord crashlog: https://pastebin.com/JjXwzbWF

Not sure if the "stacks+..." crashlogs are useful but I included them anyway

xorpix commented 4 years ago

Substrate has just unloaded itself after almost 6 days of uptime, but I’ve successfully got it back to work using NewTerm (su; /etc/rc.d/substrate; killall SpringBoard). Luckily, I’ve got no freezes yet.

Unfortunately, CrashReporter hasn’t caught Substrate’s fail.

xorpix commented 4 years ago

Well, it just hang the device again. Everything became slow and laggy until it completely froze. So there are always two scenarios in my case. Unload or freezing. The last one is worse tho.

Will boot back into jailbroken and see if CrashReporter caught something.

xorpix commented 4 years ago

So, CrashReporter didn’t catch anything. I guess its process hang with the whole system, so it was unable to do it

foxfortmobile commented 4 years ago

@Siguza I was using my ip X to develop ios apps and was running some hardcore computer graphics algorithm which take around 1.5gb of memory. Then the app started lagging, so i killed it in xcode. Then i launched Filza and it got stuck on black screen. Tried using my CC respring toggle and the device froze. I encountered the same exact issue during app dev some days ago.

As @vladaad pointed out, he gets it often from portraitxi which uses big neural networks and can consume around 800Mb-1.2Gb of ram, this could explain why he gets it after taking some images.

To me, the app should just crash if it is taking too much memory and should not cause substrate to hang and eventually reboot the device.

My technical details: Iphone X ios 13.3 Checkra1n 0.9.7

xorpix commented 4 years ago

So, Substrate got the update today. Let’s see if it fixes those issues.

vladaad commented 4 years ago

I actually think it did. I took like 5-6 portraits with PortraitXI and so far my phone hasn't crashed. Still, further testing if it fixed the issue is needed. @foxfortmobile maybe try that running that algorithm that takes up 1.5gb ram again just to check if it's fixed with the new substrate update?

xorpix commented 4 years ago

No, unfortunately it didn’t fix it. My device has just started hanging while refreshing sources in Cydia. I tried to install some tweak, but installation screen froze. Then I reached CC for manual respring and when I pressed the button, the phone froze completely. After that standard scenario (dimmed respring wheel and so on).

youngslim commented 4 years ago

Yeah, I still have that suddenly respring loop and then reboot problem, turns out it never survive more than 3 days, So now I have to re-jailbreak every two days. But checkra1n is still the stablest jb during the 2 days, smooth and fast.

By the way, I don't know why my issue been mentioned into this one, I never had that tweaks stop working problem, or freeze after 1 week problem, since my phone never reached that long time, it always randomly reboots after 2 days, never reached the third day.

sorry my english is so fk poor.

xorpix commented 4 years ago

In my current case, it happened only after 1 day and 21 hours of uptime. So, it seems that it even got worse, idk..

youngslim commented 4 years ago

In my current case, it happened only after 1 day and 21 hours of uptime. So, it seems that it even got worse, idk..

yeah, exactly, just 1 day and about 20-24 hours, maybe it will reached to 2 days and a few hours, the reboot happens, cause we can't just stay looking at the uptime, only the about time.

looks like we got the same problem :(

xorpix commented 4 years ago

Everything of this is one problem. It’s related to the issue with Substrate. Hopefully, Saurik will begin investigation of this soon.

youngslim commented 4 years ago

I saw some posts on reddit about this issue, not everyone, just a small group of people have this problem. it's fine, we can just re-jailbreak everyday, stupid solution.

xorpix commented 4 years ago

No, it’s a terrible solution (and honestly not a solution at all), because I don’t have access to my Mac 24/7. And usually it happens, when I don’t have Mac near, so I remain unjailbroken.

youngslim commented 4 years ago

I know, it sucks, I got a machintosh working so everytime before I go out I do a re-jailbreak. it's the only way before we got windows version.....

foxfortmobile commented 4 years ago

i can confirm that this new substrate update did not solve the problem. Was running my app and it hit 1.4gb of RAM, i stopped, made some changes and relaunched via XCode but the app did not re launch. So i swiped down and hit respring cc toggle and whole phone froze. Had to rejailbreak. Apparently high memory usage makes substrate go crazy.

xorpix commented 4 years ago

Substrate has just received the update which should fix all issues related to unloading or freezing. According to Sam, it was happening “due to a mach port name leak that would cause it to no longer be able to modify processes after spawning somewhere around 50,000 processes”. So I hope it actually got fixed.

StateOfInstinct commented 4 years ago

I did update substrate and this still happened yesterday

xorpix commented 4 years ago

It hasn’t crashed for me yet. I’ll write here if it actually crashes

rpendleton commented 4 years ago

I also updated Substrate but still experienced the same freezing and eventual restart crash today. Is there some kind of log on my device that can help?

GlacierIsland commented 4 years ago

My device (iPad 6) also crashes and reboots. For me, it mainly seems to occur under load, such as mobile gaming + multitasking.