Crash on startup with AmpacheService::authenticate()

Mark Kretschmann kretschmann at kde.org
Thu Oct 16 14:55:36 CEST 2008


On Thu, Oct 16, 2008 at 2:41 PM, Soren Harward <stharward at gmail.com> wrote:
> 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.

I agree. Anyone got an idea how to solve this properly?

-- 
Mark Kretschmann
Amarok Developer
www.kde.org - amarok.kde.org


More information about the Amarok-devel mailing list