<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    I think I found the source of the error:<br>
    <br>
    TrackRole is defined as Qt::UserRole which was 32 in qt4 and which
    now is 0x100 = 246 =  Playlist::GroupRole<br>
    <br>
    So we have this strange loop... <br>
    <br>
    I tried with Playlist::GroupRole = 0x1000 and it works (for this
    part). Is it ok if I leave it like this?<br>
    <br>
    Cheers<br>
    Olivier<br>
    <br>
    Le 21/10/2015 11:30, Olivier Churlaud a écrit :<br>
    <blockquote cite="mid:56275B26.2070804@churlaud.com" type="cite">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      Hi,<br>
      <br>
      the error I was tracking occures in
      src/playlist/proxymodels/GroupingProxy.cpp<br>
      <br>
      <small>        Meta::TrackPtr prevTrack = prevIndex.data(
        TrackRole ).value<Meta::TrackPtr>();    // Invalid index
        is OK:<br>
                Meta::TrackPtr thisTrack = thisIndex.data( TrackRole
        ).value<Meta::TrackPtr>();    //  will just give an<br>
                Meta::TrackPtr nextTrack = nextIndex.data( TrackRole
        ).value<Meta::TrackPtr>();    //  invalid TrackPtr.<br>
        <br>
        <br>
        <big>Here is the begining of my backtrace.... Any help is
          welcomed...<br>
          <small><br>
            #39150 0x00007ffff75a85ac in Playlist::GroupingProxy::data
            (this=0xc0e120, <br>
                index=..., role=256)<br>
                at
/home/olivier/Projets/amarok/src/playlist/proxymodels/GroupingProxy.cpp:176<br>
            #39151 0x00007ffff75008d9 in QModelIndex::data
            (this=0x7fffffff9c00, arole=256)<br>
                at /usr/include/qt/QtCore/qabstractitemmodel.h:420<br>
            #39152 0x00007ffff75a89d3 in
            Playlist::GroupingProxy::groupModeForIndex (<br>
                this=0xc0e120, thisIndex=...)<br>
                at
/home/olivier/Projets/amarok/src/playlist/proxymodels/GroupingProxy.cpp:262<br>
            #39153 0x00007ffff75a85ac in Playlist::GroupingProxy::data
            (this=0xc0e120, <br>
                index=..., role=256)<br>
                at
/home/olivier/Projets/amarok/src/playlist/proxymodels/GroupingProxy.cpp:176<br>
            #39154 0x00007ffff75008d9 in QModelIndex::data
            (this=0x7fffffff9c00, arole=256)<br>
            ---Type <return> to continue, or q <return> to
            quit---<br>
                at /usr/include/qt/QtCore/qabstractitemmodel.h:420<br>
            #39155 0x00007ffff75a89d3 in
            Playlist::GroupingProxy::groupModeForIndex (<br>
                this=0xc0e120, thisIndex=...)<br>
                at
/home/olivier/Projets/amarok/src/playlist/proxymodels/GroupingProxy.cpp:262<br>
            #39156 0x00007ffff75a85ac in Playlist::GroupingProxy::data
            (this=0xc0e120, <br>
                index=..., role=256)<br>
                at
/home/olivier/Projets/amarok/src/playlist/proxymodels/GroupingProxy.cpp:176<br>
            #39157 0x00007ffff75008d9 in QModelIndex::data
            (this=0x7fffffff9c00, arole=256)<br>
                at /usr/include/qt/QtCore/qabstractitemmodel.h:420<br>
            #39158 0x00007ffff75a89d3 in
            Playlist::GroupingProxy::groupModeForIndex (<br>
                this=0xc0e120, thisIndex=...)<br>
                at
/home/olivier/Projets/amarok/src/playlist/proxymodels/GroupingProxy.cpp:262<br>
            #39159 0x00007ffff75a85ac in Playlist::GroupingProxy::data
            (this=0xc0e120, <br>
                index=..., role=256)<br>
                at
/home/olivier/Projets/amarok/src/playlist/proxymodels/GroupingProxy.cpp:176<br>
            #39160 0x00007ffff75008d9 in QModelIndex::data
            (this=0x7fffffff9c00, arole=256)<br>
                at /usr/include/qt/QtCore/qabstractitemmodel.h:420<br>
            #39161 0x00007ffff75a89d3 in
            Playlist::GroupingProxy::groupModeForIndex (<br>
                this=0xc0e120, thisIndex=...)<br>
                at
/home/olivier/Projets/amarok/src/playlist/proxymodels/GroupingProxy.cpp:262<br>
            ---Type <return> to continue, or q <return> to
            quit---<br>
            #39162 0x00007ffff75a85ac in Playlist::GroupingProxy::data
            (this=0xc0e120, <br>
                index=..., role=256)<br>
                at
/home/olivier/Projets/amarok/src/playlist/proxymodels/GroupingProxy.cpp:176<br>
            #39163 0x00007ffff75008d9 in QModelIndex::data
            (this=0x7fffffff9c00, arole=256)<br>
                at /usr/include/qt/QtCore/qabstractitemmodel.h:420<br>
            #39164 0x00007ffff75a89d3 in
            Playlist::GroupingProxy::groupModeForIndex (<br>
                this=0xc0e120, thisIndex=...)<br>
                at
/home/olivier/Projets/amarok/src/playlist/proxymodels/GroupingProxy.cpp:262<br>
            #39165 0x00007ffff75a85ac in Playlist::GroupingProxy::data
            (this=0xc0e120, <br>
                index=..., role=256)<br>
                at
/home/olivier/Projets/amarok/src/playlist/proxymodels/GroupingProxy.cpp:176<br>
            #39166 0x00007ffff75008d9 in QModelIndex::data
            (this=0x7fffffff9c00, arole=256)<br>
                at /usr/include/qt/QtCore/qabstractitemmodel.h:420<br>
            #39167 0x00007ffff75a89d3 in
            Playlist::GroupingProxy::groupModeForIndex (<br>
                this=0xc0e120, thisIndex=...)<br>
                at
/home/olivier/Projets/amarok/src/playlist/proxymodels/GroupingProxy.cpp:262<br>
            #39168 0x00007ffff75a85ac in Playlist::GroupingProxy::data
            (this=0xc0e120, <br>
                index=..., role=256)<br>
                at
/home/olivier/Projets/amarok/src/playlist/proxymodels/GroupingProxy.cpp:176<br>
            #39169 0x00007ffff75008d9 in QModelIndex::data
            (this=0x7fffffff9c00, arole=256)<br>
            ---Type <return> to continue, or q <return> to
            quit---<br>
                at /usr/include/qt/QtCore/qabstractitemmodel.h:420<br>
            #39170 0x00007ffff759b225 in
            Playlist::PrettyItemDelegate::getGroupMode (index=...)<br>
                at
/home/olivier/Projets/amarok/src/playlist/view/listview/PrettyItemDelegate.cpp:78<br>
            #39171 0x00007ffff759b291 in
            Playlist::PrettyItemDelegate::rowsForItem (index=...)<br>
                at
/home/olivier/Projets/amarok/src/playlist/view/listview/PrettyItemDelegate.cpp:87<br>
            #39172 0x00007ffff759b375 in
            Playlist::PrettyItemDelegate::sizeHint (<br>
                this=0x1160990, option=..., index=...)<br>
                at
/home/olivier/Projets/amarok/src/playlist/view/listview/PrettyItemDelegate.cpp:101<br>
            #39173 0x00007ffff65261dd in ?? () from
            /usr/lib/libQt5Widgets.so.5<br>
            #39174 0x00007ffff652d25e in ?? () from
            /usr/lib/libQt5Widgets.so.5<br>
            #39175 0x00007ffff652d470 in ?? () from
            /usr/lib/libQt5Widgets.so.5<br>
            #39176 0x00007ffff6525ea7 in ?? () from
            /usr/lib/libQt5Widgets.so.5<br>
            #39177 0x00007ffff653043d in QListView::doItemsLayout() ()<br>
               from /usr/lib/libQt5Widgets.so.5<br>
            #39178 0x00007ffff65132ca in
            QAbstractItemView::event(QEvent*) ()<br>
               from /usr/lib/libQt5Widgets.so.5<br>
            #39179 0x00007ffff62ac00c in
            QApplicationPrivate::notify_helper(QObject*, QEvent*)<br>
            ---Type <return> to continue, or q <return> to
            quit---<br>
                () from /usr/lib/libQt5Widgets.so.5<br>
            #39180 0x00007ffff62b14e6 in QApplication::notify(QObject*,
            QEvent*) ()<br>
               from /usr/lib/libQt5Widgets.so.5<br>
            #39181 0x00007ffff557289b in
            QCoreApplication::notifyInternal(QObject*, QEvent*) ()<br>
               from /usr/lib/libQt5Core.so.5<br>
            #39182 0x00007ffff62ebb56 in QWidgetPrivate::show_helper()
            ()<br>
               from /usr/lib/libQt5Widgets.so.5<br>
            #39183 0x00007ffff62ee595 in QWidget::setVisible(bool) ()<br>
               from /usr/lib/libQt5Widgets.so.5<br>
            #39184 0x00007ffff62eb858 in
            QWidgetPrivate::showChildren(bool) ()<br>
               from /usr/lib/libQt5Widgets.so.5<br>
            #39185 0x00007ffff62eb8df in QWidgetPrivate::show_helper()
            ()<br>
               from /usr/lib/libQt5Widgets.so.5<br>
            #39186 0x00007ffff62ee595 in QWidget::setVisible(bool) ()<br>
               from /usr/lib/libQt5Widgets.so.5<br>
            #39187 0x00007ffff62edc09 in ?? () from
            /usr/lib/libQt5Widgets.so.5<br>
            #39188 0x00007ffff55a1eb1 in QObject::event(QEvent*) ()<br>
               from /usr/lib/libQt5Core.so.5<br>
            #39189 0x00007ffff62eec5b in QWidget::event(QEvent*) ()<br>
               from /usr/lib/libQt5Widgets.so.5<br>
            ---Type <return> to continue, or q <return> to
            quit---<br>
            #39190 0x00007ffff62ac00c in
            QApplicationPrivate::notify_helper(QObject*, QEvent*)<br>
                () from /usr/lib/libQt5Widgets.so.5<br>
            #39191 0x00007ffff62b14e6 in QApplication::notify(QObject*,
            QEvent*) ()<br>
               from /usr/lib/libQt5Widgets.so.5<br>
            #39192 0x00007ffff557289b in
            QCoreApplication::notifyInternal(QObject*, QEvent*) ()<br>
               from /usr/lib/libQt5Core.so.5<br>
            #39193 0x00007ffff5574c96 in
            QCoreApplicationPrivate::sendPostedEvents(QObject*, int,
            QThreadData*) () from /usr/lib/libQt5Core.so.5<br>
            #39194 0x00007ffff55c8e33 in ?? () from
            /usr/lib/libQt5Core.so.5<br>
            #39195 0x00007fffebb75dc7 in g_main_context_dispatch ()<br>
               from /usr/lib/libglib-2.0.so.0<br>
            #39196 0x00007fffebb76020 in ?? () from
            /usr/lib/libglib-2.0.so.0<br>
            #39197 0x00007fffebb760cc in g_main_context_iteration ()<br>
               from /usr/lib/libglib-2.0.so.0<br>
            #39198 0x00007ffff55c923f in
            QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)

            () from /usr/lib/libQt5Core.so.5<br>
            #39199 0x00007ffff557026a in
            QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)
            () from /usr/lib/libQt5Core.so.5<br>
            #39200 0x00007ffff557820c in QCoreApplication::exec() ()<br>
               from /usr/lib/libQt5Core.so.5<br>
            ---Type <return> to continue, or q <return> to
            quit---<br>
            #39201 0x000000000040c202 in main (argc=1,
            argv=0x7fffffffe028)<br>
                at /home/olivier/Projets/amarok/src/main.cpp:347</small><br>
          <br>
        </big></small>
      <pre class="moz-signature" cols="72">-- 
Olivier CHURLAUD
Engineer Student at Ecole Centrale de Lyon
in Dual Degree at TU Berlin, M.Sc. Elektrotechnik
@: <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:olivier@churlaud.com">olivier@churlaud.com</a>
tel: +49 (0)1575-2931348
in:  <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://linkedin.com/in/olivierchurlaud">http://linkedin.com/in/olivierchurlaud</a>
web: <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://olivier.churlaud.com">http://olivier.churlaud.com</a> </pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Amarok-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Amarok-devel@kde.org">Amarok-devel@kde.org</a>
<a class="moz-txt-link-freetext" href="https://mail.kde.org/mailman/listinfo/amarok-devel">https://mail.kde.org/mailman/listinfo/amarok-devel</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>