Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-110451

emitting dataChanged trips on freed delegate memory

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P1: Critical
    • None
    • 6.4.2
    • None
    • Windows

    Description

      I have a listview of items with the following properties

      The delegate has a progress bar who's value is updated over a different std::thread and the role's corresponding value change is queue notified over to the primary thread like so:

      during the course of transfer I periodically position the view to the item being downloaded like so: 

      This is basically my FTP client's transfer queue and as you can see I am not using cachebuffer on the listview.  Generally the setup works fine. However sometimes for  small files which get downloaded very quickly the datchanged signal faults on memory which has already been freed as part of delegate destruction.

      <callstack and other details to be continued after creating the bug with a bigger editor.. >

      This is how the screen looks at the point of crash:

      This is the faulting callstack of the primary thread and the historic callstack where the memory was freed:

      setting the cachebuffer on the listview to an arbitrary large value of say 4096, from what I can tell, avoids the problem.

       

       

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            santhoshkumar Santhosh Kumar Selvaraj
            nmam Neelabh Mam
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 days
                3d

                Gerrit Reviews

                  There are no open Gerrit changes