learn-gdscript icon indicating copy to clipboard operation
learn-gdscript copied to clipboard

Crashes: 3. We stand on shoulders of giants

Open famgam opened this issue 1 year ago • 7 comments

Describe the bug A clear and concise description of what the bug is.

It's not consistently reproducible. But when scrolling down this page, it freezes the tab in Firefox, in Chrome the entire OS freezes. (ie, no mouse movement)

Eventually (sometimes) the error "WebGL context lost, please reload the page"

https://gdquest.github.io/learn-gdscript/#course/lesson-3-standing-on-shoulders-of-giants/lesson.tres

To Reproduce Steps to reproduce the bug:

  1. Go to https://gdquest.github.io/learn-gdscript/#course/lesson-3-standing-on-shoulders-of-giants/lesson.tres
  2. Scroll down. (first few times this triggered it hit when I clicked a tool tip over the words "arguments", but also just scrolling down, before hitting bottom of scrollable area)
  3. See error "WebGL context lost, please reload the page"

If that doesn't do it, try this.

  1. Go to https://gdquest.github.io/learn-gdscript/#course/lesson-3-standing-on-shoulders-of-giants/lesson.tres
  2. Grab the scrollbar with the mouse.
  3. Violently scroll to the top then to the bottom of the view (full scroll) maybe 3-5 times and this error will trigger regularly. (both browsers)

Expected behavior Scrolling to bottom of page and clicking any of the tooltips should not freeze the screen.

Screenshots 2024-12-11_10-08

Information about your device (please complete the following information):

  • Operating System: Linux Mint 21.3 Cinnamon
  • Browser: Firefox 133, Chrome 131.0.6778.108 (Official Build) (64-bit)

Additional context I rebooted and it worked fine in both browsers. But then I scrolled up and down heavily in Chrome, and in Firefox and I can get it to trigger the error most of the time.

famgam avatar Dec 11 '24 16:12 famgam

Adding some info to this. I am not able to finish section "3" in the course. (I am going to try to continue on section "4" now)

Firefox crashes have progressed even worse, where the error message occurs even after a page reload. I do a hard refresh and even the slightest scrolling can cause this. I restart the browser, and if I don't scroll, I am able to have it not crash. Firefox now causes the entire system to freeze as well until the error message displays.

Edit: (a few minutes after above note) I am successfully able to continue through section 4, and I am starting 5. It seems 3 is the only one with this issue so far. But I had to use the content button to navigate the next sections, as I was unable to from section 3.

famgam avatar Dec 11 '24 16:12 famgam

This might be system-specific, perhaps a driver issue? If someone else manages to reproduce this, I'd love to know; here, I cannot reproduce the issue with the same versions of Firefox and Chrome. I tried scrolling with the mouse or pressing Home and End rapidly dozens of times in a row. On Linux Pop OS 22.04 LTS and macOS Sequoia (using Safari on mac)

NathanLovato avatar Dec 11 '24 16:12 NathanLovato

It's very likely a system or driver issue. I am running on a Lenovo laptop (Flex i7) with Linux kernel 6.8.0-49-generic.

After I get done with the course, I will consider trying different graphics drivers or kernels and see if it makes a difference.

Do you have any other suggestions for me to try?

famgam avatar Dec 11 '24 16:12 famgam

A similar bug is observed in Safari / Chrome on macOS (MBP 20). Each time I open a new lesson, the page freezes in 2-3 minutes or after some scrolling. Closing and opening the lid fixes the issues temporarily. If I do nothing, the whole system soft reboots, I'm kicked to the login screen and must type my password again to log in. The bug is never seen in the Practice screens. Updates from High Sierra to Sequoia did not help.

aleksimo avatar Dec 15 '24 15:12 aleksimo

The same bug happened to me. I'm running a fully updated Kubuntu 24.04. I have Intel Corporation Alder Lake-P GT2 [Iris Xe Graphics] and NVIDIA Corporation GA107M [GeForce RTX 3050 Ti Mobile]. I'm using Google Chrome 131.0.6778.264 (Official Build) (64-bit) running on an integrated (Intel) GPU using an X11 session.

I've managed to finish the 3. session by forcing the software renderer. All other lesions are working well so far.

srdjantot avatar Jan 11 '25 10:01 srdjantot

Thanks for the reports. The main potential fix I have in mind for this is upgrading the Godot version used by the app from 3.4.4 to 3.6 in hope that the cause of this or these crashes is addressed. It's not something I'll have time to work on soon.

It can be quite involved as you need to make sure that nothing breaks with the version upgrade, check back every lesson, every practice, every settings... on different platforms ideally. Help there would be much appreciated if anyone would like to give a hand.

NathanLovato avatar Jan 11 '25 12:01 NathanLovato

I have the same issue. I'm including my system info attached. I'm on Linux Mint 22 Cinnamon, 6.2.9

During the freeze, before the error shows and the system is back to normal, System Monitor registers no peaks on processor or memory. Even though, the other windows freeze as well.

Help there would be much appreciated if anyone would like to give a hand.

I'll gladly help, feel free to contact me and I'll do my best.

System.txt

WalkerWilder avatar Jan 15 '25 21:01 WalkerWilder