Closed REmerald closed 1 year ago
Additional log:
[remorin@chuwawa:0 ~]$ mcpelauncher-ui-qt -v -d
qrc:/qml/main.qml:247:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
qrc:/qml/main.qml:233:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
qrc:/qml/main.qml:224:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
qrc:/qml/GameLogWindow.qml:153:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
qrc:/qml/LauncherSettingsAbout.qml:52:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
Downloading Versionsdb "https://raw.githubusercontent.com/minecraft-linux/mcpelauncher-versiondb/master/versions.armeabi-v7a.json.min"
qrc:/qml/LauncherBase.qml:173:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
Downloading Versionsdb "https://raw.githubusercontent.com/minecraft-linux/mcpelauncher-versiondb/master/versions.arm64-v8a.json.min"
Downloading Versionsdb "https://raw.githubusercontent.com/minecraft-linux/mcpelauncher-versiondb/master/versions.x86.json.min"
Downloading Versionsdb "https://raw.githubusercontent.com/minecraft-linux/mcpelauncher-versiondb/master/versions.x86_64.json.min"
Version list loaded, entry count: 1147
qml: Versionslist initialized
qt.gui.icc: fromIccProfile: failed minimal tag size sanity
qt.gui.icc: fromIccProfile: failed minimal tag size sanity
qt.gui.icc: fromIccProfile: failed minimal tag size sanity
qt.gui.icc: fromIccProfile: failed minimal tag size sanity
qt.gui.icc: fromIccProfile: failed minimal tag size sanity
Segmentation fault (core dumped)
[ble: exit 139]
Downgraded mcpelauncher-linux-git
to v0.8.0.qt6.r6.g3e41fb0-1
, didn't help.
The mcpelauncher-ui-qt
binary is in mcpelauncher-ui-git
.
Did you recently update qt6 via pacman?
I already read in discord yesterday there is a crash, not idea. Maybe run it within gdb to get a stacktrace via
gdb mcpelauncher-ui-qt
run -v -d
bt
Here you are:
Also, here's the same log inside the file, if it's more convenient for you: mcpelauncher-gdb-backtrace.log
Did you recently update qt6 via pacman?
@ChristopherHX Yes, btw, forgot to mention, a lot of qt6-*
packages were updated recently on my system (maybe yesterday?)
Also ran the app in valgrind (no extra options), maybe it'll be useful to you, here's the log:
[remorin@chuwawa:0 ~]$ valgrind mcpelauncher-ui-qt -v -d
==13475== Memcheck, a memory error detector
==13475== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==13475== Using Valgrind-3.20.0 and LibVEX; rerun with -h for copyright info
==13475== Command: mcpelauncher-ui-qt -v -d
==13475==
qrc:/qml/main.qml:247:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
qrc:/qml/main.qml:233:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
qrc:/qml/main.qml:224:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
qrc:/qml/GameLogWindow.qml:153:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
qrc:/qml/LauncherSettingsAbout.qml:52:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
Downloading Versionsdb "https://raw.githubusercontent.com/minecraft-linux/mcpelauncher-versiondb/master/versions.armeabi-v7a.json.min"
qrc:/qml/LauncherBase.qml:173:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
Downloading Versionsdb "https://raw.githubusercontent.com/minecraft-linux/mcpelauncher-versiondb/master/versions.arm64-v8a.json.min"
Downloading Versionsdb "https://raw.githubusercontent.com/minecraft-linux/mcpelauncher-versiondb/master/versions.x86.json.min"
qt.gui.icc: fromIccProfile: failed minimal tag size sanity
qt.gui.icc: fromIccProfile: failed minimal tag size sanity
qt.gui.icc: fromIccProfile: failed minimal tag size sanity
qt.gui.icc: fromIccProfile: failed minimal tag size sanity
qt.gui.icc: fromIccProfile: failed minimal tag size sanity
Downloading Versionsdb "https://raw.githubusercontent.com/minecraft-linux/mcpelauncher-versiondb/master/versions.x86_64.json.min"
Version list loaded, entry count: 1147
qml: Versionslist initialized
==13475== Invalid read of size 8
==13475== at 0x16822C0C: UnknownInlinedFun (string_fortified.h:29)
==13475== by 0x16822C0C: UnknownInlinedFun (qv4value_p.h:63)
==13475== by 0x16822C0C: UnknownInlinedFun (qv4qobjectwrapper_p.h:120)
==13475== by 0x16822C0C: UnknownInlinedFun (qv4qobjectwrapper_p.h:120)
==13475== by 0x16822C0C: UnknownInlinedFun (qv4qobjectwrapper_p.h:127)
==13475== by 0x16822C0C: ListElement::getProperty(ListLayout::Role const&, QQmlListModel const*, QV4::ExecutionEngine*) [clone .cold] (qqmllistmodel.cpp:964)
==13475== by 0x1684FAF5: UnknownInlinedFun (qqmllistmodel.cpp:545)
==13475== by 0x1684FAF5: QQmlListModel::data(int, int) const (qqmllistmodel.cpp:2285)
==13475== by 0x168508D6: QV4::ModelObject::virtualGet(QV4::Managed const*, QV4::PropertyKey, QV4::Value const*, bool*) (qqmllistmodel.cpp:1697)
==13475== by 0x4A229FB: QV4::Lookup::getterFallback(QV4::Lookup*, QV4::ExecutionEngine*, QV4::Value const&) (qv4lookup.cpp:194)
==13475== by 0x4A962EF: QV4::Moth::VME::interpret(QV4::JSTypesStackFrame*, QV4::ExecutionEngine*, char const*) (qv4vme_moth.cpp:729)
==13475== by 0x4AA4A2B: QV4::Moth::VME::exec(QV4::JSTypesStackFrame*, QV4::ExecutionEngine*) [clone .part.0] (qv4vme_moth.cpp:542)
==13475== by 0x4A116EF: QV4::ArrowFunction::virtualCall(QV4::FunctionObject const*, QV4::Value const*, QV4::Value const*, int) (qv4functionobject.cpp:537)
==13475== by 0x4A95DE5: QV4::Moth::VME::interpret(QV4::JSTypesStackFrame*, QV4::ExecutionEngine*, char const*) (qv4vme_moth.cpp:860)
==13475== by 0x4AA4A2B: QV4::Moth::VME::exec(QV4::JSTypesStackFrame*, QV4::ExecutionEngine*) [clone .part.0] (qv4vme_moth.cpp:542)
==13475== by 0x4A10E59: UnknownInlinedFun (qv4function.cpp:62)
==13475== by 0x4A10E59: QV4::Function::call(QV4::Value const*, QV4::Value const*, int, QV4::ExecutionContext*) (qv4function.cpp:44)
==13475== by 0x4A1106A: UnknownInlinedFun (qv4function.cpp:31)
==13475== by 0x4A1106A: UnknownInlinedFun (qv4jscall_p.h:197)
==13475== by 0x4A1106A: QV4::Function::call(QObject*, void**, QMetaType const*, int, QV4::ExecutionContext*) (qv4function.cpp:28)
==13475== by 0x4B31369: QQmlJavaScriptExpression::evaluate(void**, QMetaType const*, int) (qqmljavascriptexpression.cpp:270)
==13475== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13475==
==13475==
==13475== Process terminating with default action of signal 11 (SIGSEGV): dumping core
==13475== Access not within mapped region at address 0x0
==13475== at 0x16822C0C: UnknownInlinedFun (string_fortified.h:29)
==13475== by 0x16822C0C: UnknownInlinedFun (qv4value_p.h:63)
==13475== by 0x16822C0C: UnknownInlinedFun (qv4qobjectwrapper_p.h:120)
==13475== by 0x16822C0C: UnknownInlinedFun (qv4qobjectwrapper_p.h:120)
==13475== by 0x16822C0C: UnknownInlinedFun (qv4qobjectwrapper_p.h:127)
==13475== by 0x16822C0C: ListElement::getProperty(ListLayout::Role const&, QQmlListModel const*, QV4::ExecutionEngine*) [clone .cold] (qqmllistmodel.cpp:964)
==13475== by 0x1684FAF5: UnknownInlinedFun (qqmllistmodel.cpp:545)
==13475== by 0x1684FAF5: QQmlListModel::data(int, int) const (qqmllistmodel.cpp:2285)
==13475== by 0x168508D6: QV4::ModelObject::virtualGet(QV4::Managed const*, QV4::PropertyKey, QV4::Value const*, bool*) (qqmllistmodel.cpp:1697)
==13475== by 0x4A229FB: QV4::Lookup::getterFallback(QV4::Lookup*, QV4::ExecutionEngine*, QV4::Value const&) (qv4lookup.cpp:194)
==13475== by 0x4A962EF: QV4::Moth::VME::interpret(QV4::JSTypesStackFrame*, QV4::ExecutionEngine*, char const*) (qv4vme_moth.cpp:729)
==13475== by 0x4AA4A2B: QV4::Moth::VME::exec(QV4::JSTypesStackFrame*, QV4::ExecutionEngine*) [clone .part.0] (qv4vme_moth.cpp:542)
==13475== by 0x4A116EF: QV4::ArrowFunction::virtualCall(QV4::FunctionObject const*, QV4::Value const*, QV4::Value const*, int) (qv4functionobject.cpp:537)
==13475== by 0x4A95DE5: QV4::Moth::VME::interpret(QV4::JSTypesStackFrame*, QV4::ExecutionEngine*, char const*) (qv4vme_moth.cpp:860)
==13475== by 0x4AA4A2B: QV4::Moth::VME::exec(QV4::JSTypesStackFrame*, QV4::ExecutionEngine*) [clone .part.0] (qv4vme_moth.cpp:542)
==13475== by 0x4A10E59: UnknownInlinedFun (qv4function.cpp:62)
==13475== by 0x4A10E59: QV4::Function::call(QV4::Value const*, QV4::Value const*, int, QV4::ExecutionContext*) (qv4function.cpp:44)
==13475== by 0x4A1106A: UnknownInlinedFun (qv4function.cpp:31)
==13475== by 0x4A1106A: UnknownInlinedFun (qv4jscall_p.h:197)
==13475== by 0x4A1106A: QV4::Function::call(QObject*, void**, QMetaType const*, int, QV4::ExecutionContext*) (qv4function.cpp:28)
==13475== by 0x4B31369: QQmlJavaScriptExpression::evaluate(void**, QMetaType const*, int) (qqmljavascriptexpression.cpp:270)
==13475== If you believe this happened as a result of a stack
==13475== overflow in your program's main thread (unlikely but
==13475== possible), you can try to increase the size of the
==13475== main thread stack using the --main-stacksize= flag.
==13475== The main thread stack size used in this run was 8388608.
==13475==
==13475== HEAP SUMMARY:
==13475== in use at exit: 33,948,878 bytes in 198,955 blocks
==13475== total heap usage: 1,074,595 allocs, 875,640 frees, 208,850,913 bytes allocated
==13475==
==13475== LEAK SUMMARY:
==13475== definitely lost: 1,560 bytes in 100 blocks
==13475== indirectly lost: 2,971 bytes in 44 blocks
==13475== possibly lost: 2,895,627 bytes in 4,519 blocks
==13475== still reachable: 31,046,704 bytes in 194,271 blocks
==13475== of which reachable via heuristic:
==13475== newarray : 505,064 bytes in 949 blocks
==13475== multipleinheritance: 16,712 bytes in 54 blocks
==13475== suppressed: 0 bytes in 0 blocks
==13475== Rerun with --leak-check=full to see details of leaked memory
==13475==
==13475== For lists of detected and suppressed errors, rerun with: -s
==13475== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
Segmentation fault (core dumped)
[ble: exit 139][ble: elapsed 174.924s (CPU 68.4%)] valgrind mcpelauncher-ui-qt -v -d
Sounds like a bug of the qml engine of qt6.4.3 released on 15.3.2023 and shortly after to archlinux.
I had already a similar problem with qt5.15, where some parts of the app stopped working after updating to the latest patch release
I'm not shure if rewriting qml ( javascript ) for qt6 is required in long term, the stacktrace isn't in c++ code of the launcher ui and therefore hard to debug.
You probably cannot just reinstall qt6.4.2..., I mean the code of the app worked between 6.2.0-6.4.2 without any issue. Now the qt engine crashs within the framework.
Here're the qt6 packages that were upgraded, took it from /var/log/pacman.log
:
[2023-03-19T02:08:54+0300] [ALPM] upgraded qt6-translations (6.4.2-1 -> 6.4.3-1)
[2023-03-19T02:08:54+0300] [ALPM] upgraded qt6-base (6.4.2-1 -> 6.4.3-1)
[2023-03-19T02:08:55+0300] [ALPM] upgraded qt6-3d (6.4.2-1 -> 6.4.3-1)
[2023-03-19T02:08:55+0300] [ALPM] upgraded qt6-5compat (6.4.2-1 -> 6.4.3-1)
[2023-03-19T02:08:56+0300] [ALPM] upgraded qt6-declarative (6.4.2-1 -> 6.4.3-1)
[2023-03-19T02:08:56+0300] [ALPM] upgraded qt6-charts (6.4.2-1 -> 6.4.3-1)
[2023-03-19T02:08:56+0300] [ALPM] upgraded qt6-connectivity (6.4.2-1 -> 6.4.3-1)
[2023-03-19T02:08:56+0300] [ALPM] upgraded qt6-datavis3d (6.4.2-1 -> 6.4.3-1)
[2023-03-19T02:09:03+0300] [ALPM] upgraded qt6-doc (6.4.2-1 -> 6.4.3-1)
[2023-03-19T02:09:07+0300] [ALPM] upgraded qt6-examples (6.4.2-1 -> 6.4.3-1)
[2023-03-19T02:09:07+0300] [ALPM] upgraded qt6-websockets (6.4.2-1 -> 6.4.3-1)
[2023-03-19T02:09:07+0300] [ALPM] upgraded qt6-httpserver (6.4.2-1 -> 6.4.3-1)
[2023-03-19T02:09:07+0300] [ALPM] upgraded qt6-imageformats (6.4.2-1 -> 6.4.3-1)
[2023-03-19T02:09:07+0300] [ALPM] upgraded qt6-languageserver (6.4.2-1 -> 6.4.3-1)
[2023-03-19T02:09:07+0300] [ALPM] upgraded qt6-lottie (6.4.2-1 -> 6.4.3-1)
[2023-03-19T02:09:07+0300] [ALPM] upgraded qt6-multimedia-gstreamer (6.4.2-2 -> 6.4.3-1)
[2023-03-19T02:09:07+0300] [ALPM] upgraded qt6-multimedia (6.4.2-2 -> 6.4.3-1)
[2023-03-19T02:09:07+0300] [ALPM] upgraded qt6-networkauth (6.4.2-1 -> 6.4.3-1)
[2023-03-19T02:09:07+0300] [ALPM] upgraded qt6-positioning (6.4.2-1 -> 6.4.3-1)
[2023-03-19T02:09:07+0300] [ALPM] upgraded qt6-quicktimeline (6.4.2-1 -> 6.4.3-1)
[2023-03-19T02:09:07+0300] [ALPM] upgraded qt6-quick3d (6.4.2-1 -> 6.4.3-1)
[2023-03-19T02:09:07+0300] [ALPM] upgraded qt6-quick3dphysics (6.4.2-1 -> 6.4.3-1)
[2023-03-19T02:09:07+0300] [ALPM] upgraded qt6-remoteobjects (6.4.2-1 -> 6.4.3-1)
[2023-03-19T02:09:07+0300] [ALPM] upgraded qt6-scxml (6.4.2-1 -> 6.4.3-1)
[2023-03-19T02:09:07+0300] [ALPM] upgraded qt6-sensors (6.4.2-1 -> 6.4.3-1)
[2023-03-19T02:09:07+0300] [ALPM] upgraded qt6-serialport (6.4.2-1 -> 6.4.3-1)
[2023-03-19T02:09:07+0300] [ALPM] upgraded qt6-serialbus (6.4.2-1 -> 6.4.3-1)
[2023-03-19T02:09:07+0300] [ALPM] upgraded qt6-shadertools (6.4.2-1 -> 6.4.3-1)
[2023-03-19T02:09:08+0300] [ALPM] upgraded qt6-speech (6.4.2-1 -> 6.4.3-1)
[2023-03-19T02:09:08+0300] [ALPM] upgraded qt6-svg (6.4.2-1 -> 6.4.3-1)
[2023-03-19T02:09:08+0300] [ALPM] upgraded qt6-tools (6.4.2-3 -> 6.4.3-1)
[2023-03-19T02:09:08+0300] [ALPM] upgraded qt6-virtualkeyboard (6.4.2-1 -> 6.4.3-1)
[2023-03-19T02:09:08+0300] [ALPM] upgraded qt6-wayland (6.4.2-1 -> 6.4.3-1)
[2023-03-19T02:09:08+0300] [ALPM] upgraded qt6-webchannel (6.4.2-1 -> 6.4.3-1)
[2023-03-19T02:09:09+0300] [ALPM] upgraded qt6-webengine (6.4.2-4 -> 6.4.3-1)
[2023-03-19T02:09:09+0300] [ALPM] upgraded qt6-webview (6.4.2-1 -> 6.4.3-1)
[2023-03-19T02:09:09+0300] [ALPM] upgraded qt6ct (0.8-1 -> 0.8-2)
Maybe I will try to downgrade them. Btw, is it a good idea to downgrade just one of them, e.g. qt6-webengine
?
@ChristopherHX so, which one (or several) of these packages cause the issue?
@ChristopherHX unfortunately, the automatic "pre-qt6-update" btrfs snapshot was overwritten, and I probably won't downgrade all the qt6 packages manually, because that's too much work for me...
Could you open an issue in the qt6 git repo? I don't know c++, so I can't do it myself.
If you can't reproduce the segfault, maybe I can provide you some additional logs to help with opening the issue?
It's qt6-declarative
, my linux distribution (ubuntu 22.04) uses much older qt versions.
I'm not shure if you can downgrade one qt package without creating more issues
@ChristopherHX this package is required by other qt6 packages, so I don't think, I will be able to downgrade it...
The good part is that it can launch the game successfully, I just can't change to the newer minecraft version through the profile settings... (What's the newest supported version, btw? In the README there's 1.19.60 mentioned, but in the recent commit there was 1.19.80 mentioned.)
So, is there a way to fix it, or creating an issue in the qt6 repo is the only way?
You could just use my AppImage file: https://github.com/ChristopherHX/linux-packaging-scripts/releases/tag/v0.8.5-708
It bundles ancient qt5 and is a single runnable file. Make the .AppImage executable chmod +x
and run it.
What's the newest supported version, btw?
I stopped using the term supported
, with the latest release v0.8.5 1.19.71.02 is the newest usable version.
With development snapshots/AUR is also beta 1.19.80.21 usable
@ChristopherHX thanks for the appimage suggestion, will use the aur version for now, as I don't need to update from 1.19.60 at this moment.
If you create an issue/bug-report, I think it'll be a good idea, if you share the link here, so the other people can track it.
Btw, if a new minecraft version comes out, how to know if it's 'usable' or not (apart from testing it myself)?
If you create an issue/bug-report, I think it'll be a good idea, if you share the link here, so the other people can track it.
I'm not going to open a bugreport, because I cannot reproduce your issue with qt6.5.0-rc (Official qt6 build) on ubuntu-22.04. Could be a regression of qt6.4.
Btw, if a new minecraft version comes out, how to know if it's 'usable' or not (apart from testing it myself)?
By not using development builds. (AppImage, flatpak, apt / rpm repo)
By using development builds it uses the master branch of the versiondb this always breaks and you have to find the information yourself.
Hmm depends on the profile, not all profiles cause crash on both qt6.4.3 and qt6.5.0-rc.
I cannot reproduce your issue with qt6.5.0-rc
Seems like the only way is to wait 10 days for the final release and see if the issue persists.
I push an update to the versionsb of the specfic launcher release
Thanks, will track the minecraft-linux/mcpelauncher-versiondb
commits then.
not all profiles cause crash
Default
does cause the crash.
And I don't want to try using the other ones, maybe I will later, but I'm ok with 1.19.60
for now.
on both and qt6.5.0-rc
Wait, so you mean, the crash persists on 6.5.0
?
on qt6.4.3
So, does this mean you did successfully reproduce the crash on 6.4.3
?
Wait, so you mean, the crash persists on 6.5.0?
yes
So, does this mean you did successfully reproduce the crash on 6.4.3?
yes
qml Listmodel.get(0) = crash. Older qt6 and qt5 no crash
So, now it's time to open a bugreport?
@ChristopherHX - so, I figured a workaround for now, the appimage and the aur vesion share the data, so I just selected the version in the appimage, then closed it and launched the aur version, pressed download and play
, and it worked.
Btw, are there any updates about the issue?
Btw, are there any updates about the issue?
I changed the code to use native javascript arrays instead of stressing the ListModel in js (qml) code.
I didn't create a bug report.
@ChristopherHX , thx, the update mcpelauncher-ui-git (v0.7.0.qt6.r8.g56ec3e6-1 -> v0.9.0.qt6.r0.g65a1283-1)
fixed it.
Should I close the issue now?
Describe the bug Segfault crash on trying to edit default profile.
To Reproduce Steps to reproduce the behavior:
Expected behavior Should work normally.
Screenshots None.
Desktop (please complete the following information):
mcpelauncher-ui-git
:v0.7.0.qt6.r8.g56ec3e6-1
,mcpelauncher-linux-git
:v0.8.0.qt6.r7.g454a831-1
.Additional context The feature used to work a while ago (some weeks ago maybe?);
mcpelauncher-linux-git
updated just recently, maybe that's the problem?