I even managed to load the plugin with some hacks and get GUI working, but when I start a rom it crashes (segfaults) during some initialization routines. It seems that memory became corrupted, because it crashes where nothing wrong can be.
I know only that it is crashed inside the plugin.Sure its purely a wrapper problem or a plugin problem?
Hmm, I may try to build the wrapper without VRAM detection code to be sure.I know certainly the Unix VRAM detection code could do with tuning (since I did a completely non tested implementation)...could that mess with memory allocation perhaps?
I use Nemiver for debugging. It shows me the callstack, values of variables, but now I'm in the point, where I just can't understand, how segfault can happen in this place:
void debug_init ()
{
debug.capture = 0; <-- crashed on this line
I know only that it is crashed inside the plugin.
Hmm, I may try to build the wrapper without VRAM detection code to be sure.
Is there any good front end for it? When just running valgrind mupenplus, it outputs to console, where it hard to read.