Details
-
Task
-
Resolution: Fixed
-
P2: Important
-
6.8
-
None
-
13761ee3c (dev)
Description
It seems that the lazy QmlFiles in the Dom do not support the commitToBase workflow, where:
- you create a (base) DomEnvironment
- you copy it to change it
- if you populate a file obtained from the copy then it should find and use the copy environment
- you use commitToBase on the copy to move the modifications into the base environment, and can safely destroy the copy
- if you populate the file obtained from the copy now, you get a heap-use-after-free memory error because of the referenced DomEnvironment
The lazy file needs to know its environment when it does populate itself, and therefore needs a way to decide if it needs to use the copy or the base environment.
This leads to crashes in qmlls's completion, see linked bug.
Attachments
Issue Links
- blocks
-
QTBUG-124799 qmlls crashes on autocompletion
-
- Closed
-