Mediascanner2 crash on model change with header in listview

Bug #1334843 reported by Andrew Hayzen
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
mediascanner2 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Hi,

I am experiencing a crash of mediascanner2 when the model changes (eg artist for the AlbumsModel). It appears that I have to have both a delegate and header set in the listview otherwise the error doesn't occur. I have an example [0] which crashes when I select an artist on the left and it attempts to show the albums for that artist on the right.

I have also run this inside GDB [1].

This is was found when migrating the music-app from sheets to pages (as sheets are deprecated). We believe it did not happen before because the sheet was being (de)constructed each time, therefore the model wasn't being changed. Where as a page is just being push/pop'd to and from a pagestack. This issue is now the only thing blocking music-app from migrating to pages.

0 - https://code.launchpad.net/~andrew-hayzen/+junk/mediascanner2-change-model-crash-minimal
1 - http://pastebin.ubuntu.com/7707785/

Revision history for this message
Andrew Hayzen (ahayzen) wrote :

Note: So far we have only seen this issue on trusty with the coreapps PPA [2], could the cause be that Qt5.3 is not available in trusty?

2 - https://launchpad.net/~ubuntu-touch-coreapps-drivers/+archive/daily

Revision history for this message
James Henstridge (jamesh) wrote :

It doesn't crash for me on Utopic either. Given that mediascanner2 doesn't appear in the trace until frame 40, it does seem likely to be Qt related.

The __cxa_pure_virtual() call happens when a pure virtual method (i.e. one that is defined but not implemented) is called. This is a programming error that usually causes a compilation failure, but there are a few cases where it isn't:

http://stackoverflow.com/questions/99552/where-do-pure-virtual-function-call-crashes-come-from

Presumably one such bug existed in the version of Qt on Trusty?

Revision history for this message
Jussi Pakkanen (jpakkane) wrote :

Does this still happen, especially on Utopic?

Changed in mediascanner2:
status: New → Incomplete
affects: mediascanner2 → mediascanner2 (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for mediascanner2 (Ubuntu) because there has been no activity for 60 days.]

Changed in mediascanner2 (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.