Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
None
-
5.7.1, 5.8
-
None
-
macOS
Description
Hello,
I would like to report a bug of loading Javascript file in Qt 5.7.1. It is a library packed by using webpack. That is working fine in Qt 5.7, but it will crash Qt 5.7.1 application in loading by import statement like this:
import QtQuick 2.7 import QtQuick.Window 2.2 import "./lodash.js" as Lodash
Currently I have no idea what actually is the cause of problem. But I have written an example code that could reproduce the bug. It is attached. Just extract the zip file , build by Qt 5.7.1 , run, then it will crash. You may comment the import statement above then it won't happen.
Moreover, the full backtrace log in Mac is also attached
QML debugging is enabled. Only use this in a safe environment.
Error: signal 11:
0 lodashdemo 0x0000000107925a82 _Z15handleBacktracei + 34
1 libsystem_platform.dylib 0x00007fff8c401f1a _sigtramp + 26
2 ??? 0x0000000000001400 0x0 + 5120
3 QtQml 0x0000000107e1fc05 _ZNK3QV414FunctionObject14sourceLocationEv + 5429
4 ??? 0x0000000110fdcb72 0x0 + 4580035442
5 QtQml 0x0000000107e1fc05 _ZNK3QV414FunctionObject14sourceLocationEv + 5429
6 ??? 0x0000000110fc0461 0x0 + 4579918945
7 QtQml 0x0000000107e1fc05 _ZNK3QV414FunctionObject14sourceLocationEv + 5429
8 QtQml 0x0000000107e1f8a6 _ZNK3QV414FunctionObject14sourceLocationEv + 4566
9 QtQml 0x0000000107e20a0c _ZN3QV415BuiltinFunction4callEPKNS_7ManagedEPNS_8CallDataE + 252
10 QtQml 0x0000000107e93816 _ZN3QV47Runtime12callPropertyEPNS_15ExecutionEngineEiPNS_8CallDataE + 1190
11 ??? 0x000000010d5934a6 0x0 + 4518917286
12 QtQml 0x0000000107e1fc05