Skip to content

Garbage collection #1

@Toralion

Description

@Toralion

Hi there,

first... thx for that great peace of code! Well done!

But... ;-)

Have you tried to load more than one soundfile at once? Say:
context.loadSound("depeche_mode_-a_photograph_of_you1.mp3", "One");
context.loadSound("depeche_mode
-a_question_of_lust1.mp3", "two");
context.loadSound("depeche_mode
-a_question_of_time1.mp3", "three");
context.loadSound("depeche_mode
-agent_orange1.mp3", "four");
context.loadSound("depeche_mode
-and_then...1.mp3", "five");
context.loadSound("depeche_mode
-black_celebration1.mp3", "six");
context.loadSound("depeche_mode
-blasphemous_rumours-12_b1.mp3", "seven");
context.loadSound("depeche_mode_-breathe1.mp3", "eight");
context.loadSound("depeche_mode
-but_not_tonight-extended1.mp3", "nine");
context.loadSound("depeche_mode_-_dream_on1.mp3", "ten");

That are about 60MB of mp3 files. Seems not so much, but look into the Task-Manager what happens with your Memory used by the Chrome-Task ... long story short... Chrome crashes around the seventh or eighth sound.

Don't know if it's a problem of that js code, or if it's a memory leak in the browser.

Btw. I'm using Google Chrome 23.0.1271.91 m on WIndows 7(64bit).
Hardware: Intel i7 -2600k @3.4GHz, 16 GB RAM

So long,
Toralion

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions