Open asm0dey opened 4 years ago
Probably iOS browser, that has less memories, is making crash by marpit-svg-polyfill. https://stackoverflow.com/questions/11831429/mobile-safari-on-ios-crashes-on-big-pages
Marp Core is depending on Marpit's inline SVG slide: https://marpit.marp.app/inline-svg. Due to a long-standing Webkit bug, iOS support in Marp is unstable while a long time.
In many cases, it brings crash in the big HTML slide deck as you shown. However, just rendering a few Marp slides like marp.app seems to make crash in sometimes too.
Apple denies 3rd-party rendering engine in iOS app so all rendering engines are the same WebKit in any iOS browsers (Safari, Firefox, Chrome, Edge, Brave, etc...). For using Marp slides in iOS stably, you have to convert into the stable format like PDF, or raise your voice to Webkit bug tracker.
Additional: In my iPhone 7 Plus, too zooming-in into Marp slide on https://marp.app/ by pinch gesture will make crashes. ðŸ˜
It shows this issue is not limited to large presentation.
UPDATE: This issue will be fixed in an upcoming WebKit improvement. See a document of the awesome work by Nikolas: https://blogs.igalia.com/nzimmermann/posts/2021-10-29-layer-based-svg-engine/
Hi,
I just tried to open up my marp presentation in Firefox on my iPad, which is a pretty new one on iOS 16.4.1 I believe. The latest update of the OS anyway. And it tries to open up, but then crashes. So it is not just Safari. it is a general incompatibility with mobile I believe. This is kind of a deal breaker. reveal.js/reveal-md work beautifully on iPad/iPhone, mobile in general, right out of the box. FYI. This is too bad, because I love working with it! Is there anything that needs to be done in order to be able to view it in iPad? Thanks!
Not with mobile, with iOS. It's overly cautious about the memory consumption
On Tue, 25 Apr 2023, 15:58 Maria Campbell, @.***> wrote:
Hi,
I just tried to open up my marp presentation in Firefox on my iPad, which is a pretty new one on iOS 16.4.1 I believe. The latest update of the OS anyway. And it tries to open up, but then crashes. So it is not just Safari. it is a general incompatibility with mobile I believe. This is kind of a deal breaker. reveal.js/reveal-md work beautifully on iPad/iPhone, mobile in general, right out of the box. FYI. This is too bad, because I love working with it! Is there anything that needs to be done in order to be able to view it in iPad? Thanks!
— Reply to this email directly, view it on GitHub https://github.com/marp-team/marp-core/issues/195#issuecomment-1521839334, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ4XAXYQPWKLOXOGDR2D6TXC7KB5ANCNFSM4SARSDBA . You are receiving this because you authored the thread.Message ID: @.***>
Thanks anyway!
This issue is iOS specific, including iPhone and iPad. It should not apply to Android mobile/tablet devices. Currently, there are 2 possibilities:
Wait for an improvement of iOS browser. WebKit, the open-sourced browser engine in iOS, has slow but steady progress to fix this problem so Marp is holding on to fix this for now.
A progress report of improvement in early 2023: https://wpewebkit.org/blog/05-new-svg-engine.html
If Apple stopped forcing to use the same WebKit browser engine to all browser apps in iOS, you should see Marp slide without crash when using the browser that has a different engine (e.g. Chrome's Blink, Firefox's Gecko)
This option was a pipe dream previously, but a new EU law may bring the iOS browser with different engine in early.
I'll keep on checking in for that. But I have an immediate need on iPad, so will have to opt elsewhere for the time being. Thanks so much for the information!
PDF of also your friend in this kind of situations. They work perfectly fine on iOS
On Wed, 26 Apr 2023, 04:14 Maria Campbell, @.***> wrote:
I'll keep on checking in for that. But I have an immediate need on iPad, so will have to opt elsewhere for the time being. Thanks so much for the information!
— Reply to this email directly, view it on GitHub https://github.com/marp-team/marp-core/issues/195#issuecomment-1522664233, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ4XARKZCZ65PCJIZNAPD3XDCAJ3ANCNFSM4SARSDBA . You are receiving this because you authored the thread.Message ID: @.***>
Thanks for letting me know, but that is not what I need for my current use case. Thanks!
I think Apple (or Mark) just pushed a fix for this. I was having issues last week and looked up the bug today but am not experiencing the problem now. Thoughts?
At least the crash is still occuring in originally reported slide, so I think that is not yet fixed completely. Layer-based SVG engine (for resolving an rendering issue of inline SVG slides) is still working in progress, and is not yet coming to WebKit 18.1.
For example this presentation https://github.com/asm0dey/kotlin-spark (rendered version is here: https://asm0dey.ru/p/kotlin-spark/) won't open in any browser on iOS, but opens in any other OS/browser combination.