Crash on startup with AmpacheService::authenticate()
Soren Harward
stharward at gmail.com
Thu Oct 16 14:41:33 CEST 2008
On Thursday 16 October 2008 3:07:39 Mark Kretschmann wrote:
> Just got this with latest trunk:
>
> [backtrace elided]
The crash happens because the loading order of Services has changed. Here's
an easy-to-read version of the backtrace:
0. While the playlist widget is being created, it tells the PlaylistModel to
restore its previously saved session
1. PlaylistModel restores saved playlist (current.xspf), which contains
Ampache tracks
2. Ampache service started so that the tracks can be inserted correctly
3. In the final stages of setup, the Ampache service updates its internal
collection model
4. At CollectionTreeItemModelBase.cpp:683, the Model tries to pull information
from its associated View, which doesn't yet exist
This is a perfect example of why you don't ever have a Model pull information
from a View. Ever.
--
Soren Harward
stharward at gmail.com
More information about the Amarok-devel
mailing list