Logo

dev-resources.site

for different kinds of informations.

What Building💻 a WebGL App Taught Me About Debugging

Published at
12/12/2024
Categories
debugging
browser
webgl
webdev
Author
israelrotimi
Categories
4 categories in total
debugging
open
browser
open
webgl
open
webdev
open
Author
12 person written this
israelrotimi
open
What Building💻 a WebGL App Taught Me About Debugging

Painful Insights from a more than a month-long journey

Hi there 👋,
I'm Israel Rotimi and I'm a JavaScript developer, I specialize in all things JavaScript from frontend to backend, feel free to reach out to me.

So, I was building a website for myself. It's a portfolio website that incorporates animations into the design. So I was actually following a tutorial on youtube on the same project, then I ran into an error I couldn't seem to solve when I added a 3d object to the scene.

The object was rendered using three.js and the stack was Next.js.
Everything worked fine until I added the object.
It would compile successfully in the terminal and will start rendering in the browser, then all of a sudden throw this screen.

Unhandled runtime error: Error creating webgl context

My heart stopped💔. I thought does my computer not support webgl!
I can't afford another right now, then I thought webgl was said to be supported a variety of systems why shouldn't mine support it. I was using chrome updated to the latest version, so I tried to see if there was anything in the code I could do to solve it.
I then searched through all the settings looking for webgl, all I saw was this setting: "Use graphics acceleration where possible" and it was turned on. So I abandoned the project for the next few weeks.

After being motivated again, I decided to take a look at the project. I asked claude ai for help and it suggested isolating the suspected cause. I did that and same error then I used firefox dev instead of chrome and it worked without the error. I later tried it on edge but it gave the same error as in chrome.

I continued development with firefox dev but was worried my project couldn't run on other browsers. I searched through the settings on edge and found the same setting I saw on chrome: "Use graphics acceleration where possible" and it was enabled. I disabled the setting to see what would happen.

To my greatest surprise, the app ran without the error. I did the same on chrome and same result.

Here's what I learned from this journey

  • Be systematic in your debugging approach: Isolate the problem, test different browsers (where that applies), test across multiple use cases

  • Don't just give up too easily; It's not the end of the world

  • When you feel stuck, take a break, then come back refreshed

  • Lastly, be curious, experiment. I wouldn't have known why my app wasn't working if I didn't change the setting

BTW, I'm still working on that project but you can check it out here: https://github.com/israelrotimi/my-3d-nextjs-portfolio If you do please leave a ⭐ and leave your thought's about that in this thread as well. Thanks

Please share your thoughts and takeaways. I'd like to know if anyone has been in a similar situation. Kindly share

browser Article's
30 articles in total
Favicon
Paypal honey browser extension's coupon scam
Favicon
What is Browser Fingerprinting And How does it Identity Fingerprint?
Favicon
How to Clear Cookies in Flutter Custom Tabs?
Favicon
Browser Quest: Finding the Perfect Alternative to Arc Browser
Favicon
Ensuring Smooth User Experiences: A Comprehensive Guide to Browser Compatibility
Favicon
What Building💻 a WebGL App Taught Me About Debugging
Favicon
Wakaruyo - Japanese Text Translation Browser Extension 🌐
Favicon
Quick Guide to Cookies, Local Storage, Session Storage, and Other Web Storage Mechanisms
Favicon
Chrome Extension Development - Develop minimal app with TypeScript, React, Tailwind CSS and Webpack
Favicon
Downloading the same file 102+ times
Favicon
Working on a browser extension
Favicon
What happens when you type a URL into the browser
Favicon
Kako rešiti probleme sa specifičnim stilovima za različite pretraživače
Favicon
Update 100 of the more than 2024 top Google Chrome extensions: improve your browsing!
Favicon
setTimeout - max timeout footgun
Favicon
Step Into Chrome Extension Development: Easy Setup with TypeScript and Webpack
Favicon
How to install Ferdium on Linux
Favicon
How to Clear Browser Cache on Android
Favicon
Browser Extensions: A Frontend Developer's Guide to Building and Deploying Custom Extensions
Favicon
🚀 How a Browser Renders a Web Page
Favicon
How Do I Turn JavaScript Off Across Multiple Browsers
Favicon
Free Cross Browser Testing Tools to pick in 2025
Favicon
Parallel Programming in Web Browsers
Favicon
Por Que o Arc é o Melhor Navegador para Mac
Favicon
idk but webkit sucks
Favicon
What is this browser?
Favicon
在浏览器中进行文件操作
Favicon
How Does Proxy in Browser Work with Swiftproxy
Favicon
Swiftproxy Proxy in Browser Solution for Safe and Anonymous Browsing
Favicon
How to get rid of fake followers on X (Twitter)

Featured ones: