Conversation
|
Even though it compiles fine, there appears to be a new crash when loading JS modules which wasn't there yet with the Qt 6.10.2 builds. So this needs further testing. |
|
It seems like the following script can be used to reproduce the problem: Probably due to this line: import { readFileSync } from 'fs';'fs' is a Node.js built-in that doesn't exist in Qt's JS engine. In Qt 6.10.2, |
|
Hi @bjorn The approach I want to take(before upgrading to Qt 6.10.3 in CI) is to pre-scan each Module ' Does this approach look correct to you? |
|
@Oval17 It really seems like a regression in Qt which should first of all be reported with a small app that reproduces the issue. I think working this around in Tiled is secondary, because we don't need to move to 6.10.3 in a rush and people wouldn't generally have scripts with such problematic lines in them. |
|
@bjorn Btw this is the format of Issue I found online and have made according to that template: Component: Qt Quick / QML Engine (or Qt QML → QJSEngine) Summary: QJSEngine::importModule() segfaults on bare specifiers in Qt 6.10.3 (regression from 6.10.2) Description: In Qt 6.10.2, calling QJSEngine::importModule() on a module that imports In Qt 6.10.3, the same call crashes in QV4::ExecutionEngine::loadModule() Minimal reproducer: main.cpp: test.mjs: Expected: Actual: Crash in Affects version: 6.10.3 Severity: Regression |
No description provided.