Help! My script destroy Blender data and I don't see why

Hi, I’m working on a MusicPlayer add-on based on the module “aud”
and I got a big awful bug :mad:

when changing a lot the playing song, at a moment, some data (, context.edit_object and so more) are delete :(:no:

I really don’t see why, I need a clue

Using del in bpy scripts isn’t such a good idea, most things have a remove/delete function you can call.

Why is it not such a good idea?

In fact, I have added the “try del” in the play function to resolve my bug, so with or with out it’s the same joke.

I think it’s an overflow in memory somewhere, but I can’t see where.
Perhaps “aud” is not the right module to make a integrated music player…