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

Crash when using connect() (presumably from dynamic created item in a Loader)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: P1: Critical P1: Critical
    • None
    • 5.9.1, 5.9.2, 5.9.3, 5.10.0
    • None
    • Ubuntu 17.04

       

      I have a hard-to-reproduce crash that I think is related to this scenario:

       

      Item is loaded via Loader

      The Item dynamically creates NewItem via .incubateObject

      When NewItem is created - a connect is made via a callback fired on incubation success - to it's onDestruction like so:

       

      newItem.onDestruction.connect(function(){ ... })

      Sometimes there's a crash when the Item (loaded via a Loader) is unloaded.

      I can't tell exactly where in the line of calls it happens - and I found out that the segmentation fault is currently only when I run from a Debug build

       

      Stack trace attached

       

        1. stack_trace.txt
          36 kB
          Lars
        2. stack_trace_2.txt
          36 kB
          Lars
        3. backtrace.txt
          14 kB
          Lars
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            shausman Simon Hausmann
            larpon Lars
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes