Matchstic / Xen-HTML

Unified and simplified HTML rendering
GNU General Public License v2.0
109 stars 16 forks source link

Phone freezes after reboot or ldrestart #328

Closed djoma99 closed 3 years ago

djoma99 commented 3 years ago

When XenHTML is enabled and I reboot my phone and jailbreak again or when I do ldrestart my phone freezes for about 60 seconds and then resprings.If I have widget on lockscreen it happens once but if I have widget on both lockscreen and homescreen it happens twice (in a row).I can confirm that this is happening because of XenHTML because when I disable it with iCleanerPro problem is not occurring.

And all that happend all of a sudden it was working fine until beta 7.1 got released,and now even if I downgrade problem is still occurring. I tried disabling XenInfo too but that didn’t fix the problem.

System Info

There’s no crash log in Cr4shed.

PS: This is not happening after normal respring.

Matchstic commented 3 years ago

I’ve been speaking to another user about this, and they narrowed the problem down to an incompatibility with Genesis 2. Please can you confirm if this is a tweak you are using?

On 4 Mar 2021, at 23:50, djoma99 notifications@github.com wrote:

 When XenHTML is enabled and I reboot my phone and jailbreak again or when I do ldrestart my phone freezes for about 60 seconds and then resprings.If I have widget on lockscreen it happens once but if I have widget on both lockscreen and homescreen it happens twice (in a row).I can confirm that this is happening because of XenHTML because when I disable it with iCleanerPro problem is not occurring.

And all that happend all of a sudden it was working fine until beta 7.1 got released and now even if I downgrade problem is still occurring I tried disabling XenInfo too but that didn’t fix the problem.

System Info

Device: [iPhone Xr] OS: [e.g. iOS 14.3] Xen HTML version: [e.g. 2.0~beta7.1] There’s no crash log in Cr4shed.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

PortalRex commented 3 years ago

I am also having the exact same problem, disabling XenHTML through iCleaner fixes the problem. I do not have Genesis 2 downloaded.

Matchstic commented 3 years ago

@PortalRex Its very likely to be a tweak conflict in this case. Please can you try disabling all other tweaks except the XenHTML dylibs, and gradually re-enable them until the issue occurs.

Matchstic commented 3 years ago

For my own sanity, I'm linking this to ticket: https://github.com/Matchstic/Xen-HTML/issues/216

A year or so ago, there was an issue where if another tweak is injecting into ANY UIKit-loading process, this lead to freezes similar to this. On iOS 14, I have disabled my workaround to the problem, with the understanding that Substitute etc now apply the workaround to this automatically.

This works fine on checkra1n, but after seeing comments from other developers, this mechanism might not be working under unc0ver. Could be related.

My initial investigation showed that tweaks exhibiting this problem were also reliant on libcephei. Its not a bug in libcephei, but an unfortunate side effect. So far, I'm aware that Genesis 2 also has this setup.

I'm very interested to see if other tweaks lead to this problem.

PortalRex commented 3 years ago

Ok so I have narrowed the problem down to Boardy

Matchstic commented 3 years ago

@PortalRex thanks, that also fits my post above. It looks like Boardy relies on libcephei too, and likely injects into all UIKit processes.

Matchstic commented 3 years ago

@PortalRex Please can you try this build of Xen HTML, and re-enable Boardy.

https://www.dropbox.com/s/g4xmuqncvw0r6sl/com.matchstic.xenhtml_2.0~beta8.4_iphoneos-arm.deb?dl=0

I have re-enabled my workaround, but only to block injection into processes that contain "com.apple.WebKit" in their name. It should be specific enough to not cause any problems.

PortalRex commented 3 years ago

Sadly the problem persists.

Matchstic commented 3 years ago

@PortalRex Another one to test please: https://www.dropbox.com/s/h2m0slieb5r3ox7/com.matchstic.xenhtml_2.0~beta8.18_iphoneos-arm.deb?dl=0

PortalRex commented 3 years ago

This one works! ldrestart does not cause a freeze anymore!

Matchstic commented 3 years ago

Excellent news!

I’m going to leave this ticket open until the final v2.0 is released to the public. If any else has this problem, please feel free to install the build I posted in my previous comment.

On 8 Mar 2021, at 16:25, PortalRex notifications@github.com wrote:

 This one works! ldrestart does not cause a freeze anymore!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

djoma99 commented 3 years ago

@Matchstic Sorry I wasn’t replying I wasn’t getting notifications from github.Thank you for replying though and for this deb file.It fixed it!!

Matchstic commented 3 years ago

Closing this now because beta 9 is available, which includes the relevant fix