On 23-Jan-09, at 10:16 PM, Sean M. Pappalardo wrote:

> Hello again.
>
> Okay, I have removed the XML parsing code from dlgprefmidibindings and
> put it into midimapping (which is available in trunk but not yet  
> compiling.)
>
> Attached is a patch that gets you to the state my local copy is in.
>
> The problem I'm having now is still another segfault when
> dlgprefmidibindings tries to get a pointer to the QList built by
> MidiMapping. I tried using a QMutex to make it wait until the list is
> actually ready, but it segfaults when it tries to lock() the mutex!

That means that the object lives inside is NULL or has been deleted.

eg. It's perfectly fine to say:

Monster* shrek = NULL;
shrek->tellJoke();


... and tellJoke() will run, but as soon as it tries to access a  
member variable (a variable that lives inside the "shrek" object),  
then it will crash. This is what you're seeing when the mutex lock is  
crashing.

So... your MidiMapping object is NULL or hasn't been allocated yet  
probably.

Thanks,
Albert

>
>
> Backtrace: http://pastebin.com/m258d3780
> (It's essentially crashing on the first line of
> MidiMapping::getRowParams() regardless of what it is. (In this  
> instance,
> it's a QDebug telling us what thread it's running in.))
>
> Please, anyone, take a look and see what you can figure out.
>
> Sincerely,
> Sean M. Pappalardo
> "D.J. Pegasus"
>
> < 
> < 
> --------------------------------------------------------------------------------->
>  
> >
> This E-Mail message has been scanned for viruses
> and cleared by >>SmartMail<< from Smarter Technology, Inc.
> < 
> < 
> --------------------------------------------------------------------------------->
>  
> >
> < 
> temp 
> .patch 
> .gz 
> > 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword_______________________________________________
> Mixxx-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mixxx-devel


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Mixxx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mixxx-devel

Reply via email to