Crash on startup with AmpacheService::authenticate()

Maximilian Kossick maximilian.kossick at googlemail.com
Thu Oct 16 15:03:32 CEST 2008


no cyclic dependencies.

The model should not retrieve information about the view. Instead, the
view should set the current levels (which I think is what the model is
trying to retrieve, but I do not have access to the code right now) on
the model.

Max


On Thu, Oct 16, 2008 at 2:55 PM, Mark Kretschmann <kretschmann at kde.org> wrote:
> 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
> _______________________________________________
> Amarok-devel mailing list
> Amarok-devel at kde.org
> https://mail.kde.org/mailman/listinfo/amarok-devel
>


More information about the Amarok-devel mailing list