New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device freezing after installing new substrate #165

Open
atifchy opened this Issue Dec 18, 2018 · 256 comments

Comments

Projects
None yet
@atifchy
Copy link

atifchy commented Dec 18, 2018

After installing new cydia substrate i reboot and rejailbroke my device. After sometimes my device got frozen and i was forced to hard reboot my device. After reboot, i rejailbroke my device and after sometimes my device froze again. I used restore rootfs but the freezing issue is still not fixed.

I am using iPhone 6, iOS 11.3.1
Unc0ver v2.1.0 (latest one)

I also found some users with same issue. It mostly happening with older devices.

@soum91

This comment has been minimized.

Copy link

soum91 commented Dec 18, 2018

This a severe issue but I doubt it’s related to unc0ver. Affecting more and more people if you see the subreddit. Because this all caused by new Substrate update. I guess only @saurik can solve this. I have downgraded substrate to dummy version and resorted back to substitute. I have tried and failed to communicate with Saurik. Just hope @pwn20wndstuff will talk to Saurik about this.

@Cryptiiiic

This comment has been minimized.

Copy link
Collaborator

Cryptiiiic commented Dec 18, 2018

@atifchy Please export your diagnostics from the unc0ver app settings tab. Then post it here. The freezing is most likely caused by a tweak.
image
As shown here.

@soum91

This comment has been minimized.

Copy link

soum91 commented Dec 18, 2018

@Cryptiiiic, people are reporting freezing on freshly restored RootFS no tweaks installed! It’s substrate’s own problem, I guess. Whenever I switch back to substitute, everything works perfect. No freeze at all with same tweaks!

@Ultra03

This comment has been minimized.

Copy link

Ultra03 commented Dec 18, 2018

This seems to be a Substrate problem on A7/A8 devices, even with no tweaks installed. @soum91 Which device do you have?

@Chasewhip8

This comment has been minimized.

Copy link

Chasewhip8 commented Dec 19, 2018

Problem seen on Iphone X 11.3.1 Unc0ver v2.1.0 (latest one).
Browsing and created a new tab, safari froze at first so I exited and killed it and attempted to open safari again to see just a black screen. Exiting safari landed me on the springboard and at the attempt to launch twitter the device fully froze and needed a hard reset.
Tweaks are installed so this could be unrelated. Just mentioning it here if anyone else experiences it we can cross reference tweaks to hopefully locate a culprit.

@soum91

This comment has been minimized.

Copy link

soum91 commented Dec 19, 2018

I can confirm that since I’m on i6+ @Ultra03. And thought probably I’m only one to encounter this first. I had freezing within the 30mins of Saurik’s releasing substrate.
@Chasewhip8, saw few other people complaining about it being on iPhone X.

@atifchy atifchy closed this Dec 19, 2018

@atifchy atifchy reopened this Dec 19, 2018

@BiasShadow

This comment has been minimized.

Copy link

BiasShadow commented Dec 20, 2018

@Cryptiiiic, people are reporting freezing on freshly restored RootFS no tweaks installed! It’s substrate’s own problem, I guess. Whenever I switch back to substitute, everything works perfect. No freeze at all with same tweaks!

How are you going back to Substitute? I tried removing substrate (previous version) but its a dependency for Substitute.

@Chasewhip8

This comment has been minimized.

Copy link

Chasewhip8 commented Dec 21, 2018

Downgrade it to the dummy version

@atifchy

This comment has been minimized.

Copy link

atifchy commented Dec 22, 2018

@BiasShadow downgrade cydia substrate

@BiasShadow

This comment has been minimized.

Copy link

BiasShadow commented Dec 22, 2018

@atifchy I tried that but it kills my tweaks when I downgrade and try to go back to substitute.

@KMamedoff

This comment has been minimized.

Copy link

KMamedoff commented Dec 23, 2018

Anything new?

@Chasewhip8

This comment has been minimized.

Copy link

Chasewhip8 commented Dec 23, 2018

Queue a downgrade of substrate to the dummy version and install substitute in one action. Is there a way we could give Saurik a better diagnostic of this problem

@Chasewhip8

This comment has been minimized.

Copy link

Chasewhip8 commented Dec 23, 2018

This issue appears to only affect me with heavy safari (most likely webkit) usage. Completely stable when not using it a lot I’m one sitting

@Chasewhip8

This comment has been minimized.

Copy link

Chasewhip8 commented Dec 23, 2018

Can now 100% confirm the issue is related to webkit and the same steps found to overload jailbreakd on electra found by Jake will reproduce the issue. Music still continues to play in the background however phone calls do not come through along with any user input.

@BiasShadow

This comment has been minimized.

Copy link

BiasShadow commented Dec 23, 2018

Downgrading substrate auto installs substitute, but substitute doesn’t work after that. It just goes into a safe mode like state but not actually in safe mode. As far as the issue, it’s not only related to safari. This freezing issue has happened to other apps (at least for me). I’ve also seen this when I’m trying to do anything like copy, pasting, selecting, etc...

@KMamedoff

This comment has been minimized.

Copy link

KMamedoff commented Dec 23, 2018

Downgrading substrate auto installs substitute, but substitute doesn’t work after that. It just goes into a safe mode like state but not actually in safe mode. As far as the issue, it’s not only related to safari. This freezing issue has happened to other apps (at least for me). I’ve also seen this when I’m trying to do anything like copy, pasting, selecting, etc...

I cannot figure out how to remove Substrate after ending up with both substrate and Substitute.

@BiasShadow

This comment has been minimized.

Copy link

BiasShadow commented Dec 24, 2018

You can just remove substrate like you would any other tweak, but doing that ends up removing all tweaks including substitute. I’ve been asking this and no one has been able to give a straight answer on it.

@KMamedoff

This comment has been minimized.

Copy link

KMamedoff commented Dec 24, 2018

So there is no way of removing Substrate without removing all of your tweaks. It would be really nice to hear something from pwn20wnd about Substrate update.

@bhupendpatil

This comment has been minimized.

Copy link

bhupendpatil commented Dec 25, 2018

@KMamedoff There is a way

  • Just to go your newly installed substrate modify>downgrade to the dummy one(which just automatically downloads substitute);
  • then reboot your device and re jailbreak it.

none tweak is removed.

@BiasShadow

This comment has been minimized.

Copy link

BiasShadow commented Dec 25, 2018

@bhupendpatil I don’t think you read up. Downgrading substrate to dummy and installing substitute doesn’t work. It kills tweaks. I’ve done the same instructions you posted and it doesn’t fix anything.

@soum91

This comment has been minimized.

Copy link

soum91 commented Dec 25, 2018

@BiasShadow, you don’t have any idea what you did wrong I guess. Tweaks only get removed if you REMOVE it! This happens when you remove one those basic dependency of the tweaks like Substrate, Substrate Safe Mode.

I downgraded Substrate like 10-12 times while trying to find out the reason of substrate freeze fix. Never had a single tweak removed!

@KMamedoff

This comment has been minimized.

Copy link

KMamedoff commented Dec 25, 2018

@KMamedoff There is a way

  • Just to go your newly installed substrate modify>downgrade to the dummy one(which just automatically downloads substitute);
  • then reboot your device and re jailbreak it.

none tweak is removed.

Thank you.

@BiasShadow

This comment has been minimized.

Copy link

BiasShadow commented Dec 25, 2018

I never removed any tweaks. That’s why I’ve been explaining the issue with downgrading and such. Downgrading Substrate to dummy installs substitute. In this state (even after rebooting and rejailbreaking) tweaks do not work. Removing substrate removes all tweaks including substitute. You can’t have just substitute like before because substrate is a dependency of substitute. No one has been able to provide any information on this except giving the same information that is already been stated. If there is a different, missed action, then that’s what I have been asking for. Like I said, I’ve done exactly what has been instructed multiple times in this thread.

@KMamedoff

This comment has been minimized.

Copy link

KMamedoff commented Dec 25, 2018

I never removed any tweaks. That’s why I’ve been explaining the issue with downgrading and such. Downgrading Substrate to dummy installs substitute. In this state (even after rebooting and rejailbreaking) tweaks do not work. Removing substrate removes all tweaks including substitute. You can’t have just substitute like before because substrate is a dependency of substitute. No one has been able to provide any information on this except giving the same information that is already been stated. If there is a different, missed action, then that’s what I have been asking for. Like I said, I’ve done exactly what has been instructed multiple times in this thread.

Tweaks are working as shey should after downgrading to dummy version of Substrate.

@BiasShadow

This comment has been minimized.

Copy link

BiasShadow commented Dec 25, 2018

Then yea I don’t know what’s going on my end.

@soum91

This comment has been minimized.

Copy link

soum91 commented Jan 4, 2019

@Ali122 have you tried removing CallbarX?

@Ali122

This comment has been minimized.

Copy link

Ali122 commented Jan 4, 2019

@Ali122

This comment has been minimized.

Copy link

Ali122 commented Jan 4, 2019

@soum91

This comment has been minimized.

Copy link

soum91 commented Jan 4, 2019

@pwn20wndstuff I just experienced the same issue where it froze and rebooted while refreshing sources in Cydia. Let me know if I can be any help in troubleshooting.

@saurik, are you aware of this? I had 5 days uptime and was really glad that I was not experiencing any of the issues people stating here. But I was just hit with a kernel panic that was caused by freeze when I tried to add repo from safari. The my kernel panic also mentions ‘WDT timeout’.
Should I attach the panic log?

@saurik

This comment has been minimized.

Copy link

saurik commented Jan 4, 2019

Yes I did and I disabled all of my tweaks from icleaner...

@Ali122 I seriously doubt that iCleaner disables the extension in a way that causes it to not be picked up by this parsing step: you need to actually remove the extension (and should really never use iCleaner). (And again, please give me the file or tell me precisely where I can find the file when you figure out what file is causing this behavior.)

@saurik

This comment has been minimized.

Copy link

saurik commented Jan 4, 2019

are you aware of this?

@soum91 Yes... and I wrote this giant comment, specifically referencing the WDT.

#165 (comment)

@gnawh

This comment has been minimized.

Copy link

gnawh commented Jan 5, 2019

Is it a known issue, that after awhile, SpringBoard crashes and resprings when opening a new app? This will create a JetSamEvent log, and I can tell right before it's about to happen.. Opening folders becomes super laggy and I know that an app opening will make a respring imminent. This issue started with Electra.

@wujila

This comment has been minimized.

Copy link

wujila commented Jan 5, 2019

I installed the latest version of unc0ver 2.1, and the latest Cydia Substrate, often restarted, replaced with unc0ver 2.0.2 and the latest Cydia Substrate, no problem, crashreport did not get the log

@Ali122

This comment has been minimized.

Copy link

Ali122 commented Jan 5, 2019

@colereynolds

This comment has been minimized.

Copy link

colereynolds commented Jan 5, 2019

This isn’t a general support thread guys... Please read the thread and comment if your issue applies.

@pwn20wndstuff

This comment has been minimized.

Copy link
Owner

pwn20wndstuff commented Jan 5, 2019

This thread isn't for reporting random issues, this thread is for Substrate freezing/rebooting issues. If you don't listen to this, you will get blocked.

Repository owner deleted a comment from Aldeab Jan 5, 2019

@saurik

This comment has been minimized.

Copy link

saurik commented Jan 5, 2019

I am interested in seeing more panic logs from the WDT timeout. I am not sure I will learn more from mere panic logs (like, it would be better if I could get logs from that build of Substrate with logs I posted here), but there are some patterns I am looking at and feel like I am getting value from.

@KMamedoff

This comment has been minimized.

Copy link

KMamedoff commented Jan 5, 2019

I am interested in seeing more panic logs from the WDT timeout. I am not sure I will learn more from mere panic logs (like, it would be better if I could get logs from that build of Substrate with logs I posted here), but there are some patterns I am looking at and feel like I am getting value from.

My device froze while building an app with Xcode. Here are the crash logs. Freezing happened some time between Jan 6 00:59-01:01.

@pwn20wndstuff

This comment has been minimized.

Copy link
Owner

pwn20wndstuff commented Jan 5, 2019

@KMamedoff can you also send the panic log if you got it?

@KMamedoff

This comment has been minimized.

Copy link

KMamedoff commented Jan 5, 2019

@KMamedoff can you also send the panic log if you got it?

I have only two log files but none of them between 00:59-01:01.

@KMamedoff

This comment has been minimized.

Copy link

KMamedoff commented Jan 5, 2019

I am interested in seeing more panic logs from the WDT timeout. I am not sure I will learn more from mere panic logs (like, it would be better if I could get logs from that build of Substrate with logs I posted here), but there are some patterns I am looking at and feel like I am getting value from.

Another crash during Xcode app development between Jan 6 3:46-3:48.

@Ali122

This comment has been minimized.

Copy link

Ali122 commented Jan 6, 2019

so I used restore rootfs and deamons are still freaking out. I have no tweaks installed only substrate and cocoatop. Here are the logs with the special build of susbtrate, and I was wondering if I can install more tweaks @saurik
substrated-0-280.log

substrated-0-1150.log

substrated-0-215.log
substrated-0-217.log

substrated-0-254.log

@soum91

This comment has been minimized.

Copy link

soum91 commented Jan 6, 2019

@saurik, I found the reason of my kernel panics! As I said I had 5 days uptime. Later I installed Safari Plus and I forgot. Then I had 2 kernel panics. This tweaks also caused issue with substitute. It caused infinite respring loop or made sb to fail to load. And now kernel panic with Substrate. I removed it and dont have any panics so far. So you may want to install Safari Plus, Saurik.

Below are my two panic logs:

https://pastebin.com/K9XbHXgb
https://pastebin.com/y38njT4t

@Ali122

This comment has been minimized.

Copy link

Ali122 commented Jan 7, 2019

ok so I got freeze with the new build of susbtrate, nothing in crashreporter.
e29338b0-6ee2-4b40-acee-2b90e114379c
Here are the logs from /library/substrate
substrated-0-248.log
substrated-0-289.log
substrated-0-333.log

@Cryptiiiic Cryptiiiic added pinned bug and removed wontfix labels Jan 7, 2019

@FamousHerself

This comment has been minimized.

Copy link

FamousHerself commented Jan 8, 2019

OK, I've managed to replicate the issue in that thread: thanks for the clear steps to reproduce the issue! At its core, this behavior happens because amfid and substrated are being killed at the same time (which it would be nice to just avoid as much as possible, but I have so far totally failed to make JetsamPriority protect my process; earlier versions of substrated weren't using launchd: I wonder if that might have helped protect it, but I don't know enough about Jetsam); but like, as what Substrate is doing (and has been for years now) is essentially using amfid to provision executable pages, it fails to initialize itself (because, and this is silly, it accidentally needs executable pages to run at all? this is trivially fixable) and then (theoretically, if it got this far, which it doesn't) fails to hook the xpcproxy for amfid (as I'm doing this using "the full machinery", which needs executable pages). I think I will have some time to fix both of these issues tomorrow night (I can provide a more limited hook for xpcproxy and then special-case amfid).

OK, I've managed to replicate the issue in that thread: thanks for the clear steps to reproduce the issue! At its core, this behavior happens because amfid and substrated are being killed at the same time (which it would be nice to just avoid as much as possible, but I have so far totally failed to make JetsamPriority protect my process; earlier versions of substrated weren't using launchd: I wonder if that might have helped protect it, but I don't know enough about Jetsam); but like, as what Substrate is doing (and has been for years now) is essentially using amfid to provision executable pages, it fails to initialize itself (because, and this is silly, it accidentally needs executable pages to run at all? this is trivially fixable) and then (theoretically, if it got this far, which it doesn't) fails to hook the xpcproxy for amfid (as I'm doing this using "the full machinery", which needs executable pages). I think I will have some time to fix both of these issues tomorrow night (I can provide a more limited hook for xpcproxy and then special-case amfid).

While I was forced to quit Jailbreaking and accepted the day has come that that @saurik have given more than my respect and loyalty. He gave me the opportunity to educate myself more than I realized. It’s so much more than the tweaks who are such huge improvement. But I also figured it out that those tweaks were useless since I’m more in control and can do anything with Trrminal, which also used to fix errors and I figured how the Jailbreak community has getting the improvements to make it easier to people who obviously breaking their iPhones and asking for help. But since I managed it all without getting help. I restored my iOS multiple times a day because I needed that to understand. Debian.

So @saurik I really want to thank you for your dedication and all the things you were sharing and being so generous while you never failed to protect Cydia at all. I’m waiting for you when people are realizing that it was fun about the try (Electra?) but Instead they don’t respect you whle you said there was something to fix and people didn’t appreciate or knowing that you are above the level of ‘fix’. that’s why I think al those those people are thanking you so much are just being fake. They are grateful for you because they actually thinking that you are helping them. But at the end up with unstable fake cydia and you are laughing at them for being so stupid and makes them forever depending on you.

I love you!

PS: I realize more how you are just not deserving this. You are still feeling like to help ppl to give answers on their questions while you don’t own them

@ymmm0

This comment has been minimized.

Copy link

ymmm0 commented Jan 9, 2019

Hello. I was brought here by @Samgisaninja from Discord after discussing an issue I've been having with Safe Mode Substrate. When I leave Safe Mode, my lock screen is still stuck on the black screen that is with Safe Mode when it loads. It takes several resprings to get it back. They predicted that it may be a MobileSafety bug and I should let @saurik know about this.

Edit: I would like to mention that I attempted to go and leave Safe Mode after updating to 2.1.1. At first, I noticed my lock screen wallpaper would pop up as I slide up to unlock my screen. As I left, my lock screen was there. After usage, I tried it again, and this time, my lock screen wallpaper didn't show up at all. As I left, my lock screen wallpaper was gone once again.

This time, I attempted to reboot my phone to see if it would come back, and surprisingly it didn't. I don't know if it's related to MobileSafety or not. Just noting just in case it is.

Edit 2: I had a crashing experience with a tweak and I was testing out what triggered it to crash. As I repeatedly went and left Safe Mode to figure it out, my home screen disappeared as well. After I was done, I tried respringing to get my home screen and lock screen back, but no luck. After I reinstalled RocketBootStrap, my lock screen and home screen worked again.

@arnon85

This comment has been minimized.

Copy link

arnon85 commented Jan 10, 2019

I’ve had a weird problem today, my phone was running normally and then apps started to load without tweaks (it looked like substrate was not being loaded to them). I did a respring and then no tweaks were working (it was literally like my phone was in the safe mode but without this black background and “exit safe mode” popup. I had to reboot and rejailbreak and everything was normal again. It happened only once

@Chasewhip8

This comment has been minimized.

Copy link

Chasewhip8 commented Jan 10, 2019

Just had my first freeze using substrate. Opened Hulu and the screen quickly dimmed and crashed to springboard and then after another app launch a complete freeze and forced to hard reset. I was not running the other substrate build sadly.

@colereynolds

This comment has been minimized.

Copy link

colereynolds commented Jan 12, 2019

@saurik I experienced a freeze and reboot earlier while Cydia was refreshing sources. Attached are the Substrate logs and panic crash dump. I grabbed all of the Substrate logs that were modified today because I don’t know which ones were from before the reboot. Hopefully you can sort it out.😬
Substrate Logs.zip
panic-full-2019-01-11-155651.257.ips.txt

@colereynolds

This comment has been minimized.

Copy link

colereynolds commented Jan 23, 2019

@pwn20wndstuff / @saurik - Any update? I know pwn posted some comments a week or so ago about some findings but they appear to be gone now...

@inhumanargue

This comment has been minimized.

Copy link

inhumanargue commented Jan 23, 2019

iPhone 7 iOS 11.1.2 Unc0ver 2.2.0 b7. The random reboots have become quite more frequent after this update. The phone cannot go through the night without rebooting fully and asking to enter in the passcode. As well as when I am jailbroken if I am listening to YouTube or just audible or put to much load on the phone it reboots without warning. Any help would be greatly appreciated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment