Page 1 of 1

Some Freeframe effects cause resolume to crash on exit

Posted: Mon Jun 29, 2009 02:01
by alphasuede
Sometimes when i exit resolume, the program crashes before it can completely shut down. I think its related to Resolume's unloading of freeframe effect dlls.

I have visual studio installed on my computer so i get a little more info on the crash.

When i exit the program, there is a crash. It is reported from my debugger as an "Unhandled exception thrown" by Resolume. This only happens if i have certain effects enabled for example "Tile" effect.

I downloaded the source code for TILE and recompiled it and if the effect is enabled it will crash on exit, but otherwise it will exit gracefully.

Its a problem for me, because I have written some effects based on the FFGL example shader tile. I would like to release them, but I feel uneasy about it causing resolume to crash on exit. I have run resolume in as a host for debug my effect. I can step through the destruction of the shader on exit. The exception is thrown somewhere after the shader's dll calls the deconstuction of the effect class.

Of course this could be an error with either Resolume or the Effect's dll, however the same freeframe effect dll does not cause the shader sdk's host( FFGLPluginHost ) to crash on exit.

If there are any free-frame developers out there that know a workaround for creating effects that play nicely inside of resolume i would be happy to hear how you do it or what source code base you start from. Also, I noticed that resolume is not writing the log file as described in Bart's post.

Re: Some Freeframe effects cause resolume to crash on exit

Posted: Mon Jun 29, 2009 08:43
by edwin
I will do some testing with the Tile effect, but i don't think the Tile effect you've got the source from is the same as we use now. But that doesn't matter really as the problem is the crash on exit. It seems we forgot to do some proper cleaning somewhere, i will give it a test.

Re: Some Freeframe effects cause resolume to crash on exit

Posted: Tue Jun 30, 2009 09:22
by alphasuede
Let me know if you want me to send you an example of a dll(or source) that causes the problem on my computer.