CodeMirror crashes web browser

Hello,

I just very recently upgraded the version of the CodeMirror editor that we use. We were previously using a very early beta version circa 2022 or so. (I got very sick in early 2023 with a terminal illness which is the reason for the long delay in upgrading).

One of the members of my forum (where I use CodeMirror) is now saying that any time they try to type a longer message when using the Chrome browser on their Android phone, their web browser crashes (with that Aw, Snap! error message).

Are there any follow up questions I can ask them to help to diagnose this? I am unsure of their technical capability.

CodeMirror on its own should handle huge document without trouble. If it is only a single person reporting this, I’d ask them to try disabling all their browser plugins, and what kind of phone they are using, and whether they can get the same crash to happen on the demo editor on codemirror.net. I think that error message indicates either the machine running out of RAM, or the tab thread crashing entirely.

Hello,

So far, it is just the single person reporting this, but in my experience, for every one person that reports, there are a ton of people who see the same thing but, instead of reporting, just leave the site.

I was incorrect when I stated it only applied to long posts. Their browser crashes anytime they try to post more than a few words. They have stated:

What I’ve noticed is that it seems to be clutching with keyboard auto-correct/auto-complete.

If I type a full word without pressing it from my keyboard suggestion options that shows while typing it doesn’t seem to crash, but once I choose or select one auto-complete and proceed typing it freezes and crash.

Yes, they were able to reproduce the crash on the codemiror.net demo editor, per below image:

They are using Android v9 with 4GB of ram and Chrome v128.0.6613.146, and have stated they have no browser plugins or extensions.

Here is more information: daniweb-bug - Editor crashes browser | DaniWeb

Thank you for any assistance you’re able to provide! :slight_smile:

Note that, per my first post, they did not experience this problem with a beta version of Codemirror. This particular member has nearly 1,000 posts in my forum and they just reported this bug less than a week after we upgraded Codemirror to the latest version.

Hi,

Sorry to bump this. I don’t know if it was still on your radar. I was just wondering if you had any thoughts? I asked the member to please not update their Chrome in the meantime, in case it would help to debug. Otherwise, I can ask them to just update their Chrome and see if the problem resolves itself.

That sounds like a very old device and an out of date Chrome. This isn’t an issue we’ve had any other reports of, so to be honest, I would tell the person to absolutely update Chrome and hope that fixes the issue.