CodingTrain / website-archive

Archive of the Coding Train website (first version)
https://codingtrain.github.io/website-archive/
MIT License
5.72k stars 5.67k forks source link

“Teachable Machine:Snake” - Browser freezes, restarts: Too much memory used via html5 "canvas" objects? #3078

Closed git-marc closed 2 years ago

git-marc commented 3 years ago

“Teachable Machine:Snake” - Browser window freezes., restarts Too much memory used via html5 "canvas" objects?


THANKS FOR THE GREAT TUTORIAL(S)!!!

First of all: Thanks a lot for "Coding train's" brilliant tutorials – they are extremely helpful and perfectly structured to provide a "machine-learning" as well as "ml5 js", "p5 js" beginner such as me with footage & the knowledge behind it!


MY PROBLEM (APPLE MACBOOK PRO & IPHONE)

“Teachable Machine:Snake” https://editor.p5js.org/codingtrain/sketches/tqoOkW_ai

Whilst running the tutorial: Browser window ... MacBook Pro/Safari Browser • automatically reloads • message "This web page was reloaded because it was using significant memory" IPhone XS/Safari Browser • freezes


"BUG-TRACKING TRIES"

Tracking some of the Webpage's elements (Apple Macbook Pro / Safari's Webdeveloper tool)

high amount of canvas objects

Searching for the "canvas-object-creator" : I am not sure, probably "snake.js / function classifyVideo()" called ... • several times per frame • via "function gotResults(error, results) {"


"BUG-FIXES"?

Just assuming that this might help –

How can i

I tried to find more "bug-related" information but did not succeed in fixing the problem yet



Please help a digital noob (me!): Any hint is greatly appreciated!

Best Regards Marc

KobeLiesenborgs commented 2 years ago

Hi Marc!

Unfortunately with the big amount of videos it is near impossible to keep everything up to date that deprecates. That being said you can always add a community contribution that has an updated version!

In this case specifically the issue is out of scope I fear.

P.S. you should join our community discord for questions and remarks you might have in the future!