PolyMC / PolyMC

A custom launcher for Minecraft that allows you to easily manage multiple installations of Minecraft at once (Fork of MultiMC)

Home Page:https://polymc.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wayland seqfault, can't launch binary with debuginfo present

k1gen opened this issue · comments

Operating System

Linux

Version of PolyMC

PolyMC 5.1

Version of Qt

Qt 6.3.0

Description of bug

PolyMC started segfaulting for me recenty. I'm on Arch, using Gnome 44.3 on Wayland. The issue is that debuginfo was stripped from official binary, and I can't launch latest github -debug workflow artifact, so I can't even provide a backtrace. I have these errors trying to launch it:

warning: direct reference to protected function `_ZNK18QAbstractListModel5indexEiiRK11QModelIndex' in `/usr/lib/libQt6Core.so.6' may break pointer equality
./bin/polymc: _ZNK18QAbstractListModel5indexEiiRK11QModelIndex: /usr/lib/libQt6Core.so.6: error due to GNU_PROPERTY_1_NEEDED_INDIRECT_EXTERN_ACCESS

here's the stdout of original binary, in /usr/bin:

0.002 D <> Log initialized.
    0.002 D "PolyMC" , (c) 2013-2021  "PolyMC Contributors\n© 2012-2021 MultiMC Contributors"
    0.002 D Version                    :  "5.1"
    0.002 D Git commit                 :  "59fa701c2475c6017780d14f60c7b35f67a25ec4"
    0.002 D Git refspec                :  ""
    0.002 D Work dir before adjustment :  "/home/k1gen"
    0.002 D Work dir after adjustment  :  "/home/k1gen/.local/share/PolyMC"
    0.002 D Adjusted by                :  "Persistent data path"
    0.002 D Binary path                :  "/usr/bin"
    0.002 D Application root path      :  "/usr"
    0.002 D <> Paths set.
    0.019 D Detected default console font: "Noto Sans Mono" , substitutions: ""
    0.020 D <> Settings loaded.
    0.020 D Detecting proxy settings...
    0.020 D Using no proxy is an option!
    0.020 D <> Network done.
    0.021 D Your language is "en_US"
    0.021 D <> Translations loaded.
    0.021 D Started watching  "/home/k1gen/.local/share/PolyMC/icons"
    0.021 D Adding  "icons/modrinth_adrenaline"
    0.031 D Adding  "icons/modrinth_fabulously-optimized"
    0.032 D Sorting icon list...
    0.032 D <> Instance icons intialized.
    0.032 D <> Icon themes initialized.
    0.032 D Determining System Theme...
    0.032 D System theme seems to be: "fusion"
    0.032 D Considering theme from theme factory: "highcontrastinverse"
    0.032 D Considering theme from theme factory: "highcontrast"
    0.032 D Considering theme from theme factory: "adwaita-highcontrastinverse"
    0.032 D Considering theme from theme factory: "adwaita-highcontrast"
    0.032 D Considering theme from theme factory: "adwaita-dark"
    0.032 D Considering theme from theme factory: "adwaita"
    0.032 D Considering theme from theme factory: "windows"
    0.032 D Considering theme from theme factory: "fusion"
    0.032 D System theme has been determined to be: "Fusion"
    0.032 D Loading theme "custom"
    0.032 D <> Widget themes initialized.
    0.032 D Instance path              :  "instances"
    0.033 D Loading Instances...
    0.033 D Discovering instances in "/home/k1gen/.local/share/PolyMC/instances"
    0.033 D Found instance ID "Fabulously Optimized"
    0.033 D Will load group list now.
    0.033 D Group list loaded.
    0.033 D Loaded instance  "Fabulously Optimized 5.1.0-beta.6"  from  "/home/k1gen/.local/share/PolyMC/instances/Fabulously Optimized"
    0.034 D <> Instances loaded.
    0.034 D Loading accounts...
    0.034 D AccountList: Queued default account with internal ID  "ca0aaef9569d4671b17e53c39ceb1564"  to refresh first
    0.034 D Task "MSASilent(0x55e843ccc7d0)" starting for the first time
    0.034 D AuthFlow: "Logging in with Microsoft account."
    0.034 D DeviceFlow::refresh: Token: ... "TdKgA$$"
    0.038 D RefreshSchedule: Processing account  "NumberOcean7934"  with internal ID  "ca0aaef9569d4671b17e53c39ceb1564"
    0.038 D <> Accounts loaded.
    0.043 D <> Cache initialized.
    0.043 D Downloading Translations Index...
    0.043 W Removing cache entry because of old age!
    0.043 D Task "NetJob(Translations Index)" starting for the first time
    0.043 D <> Icon theme set.
    0.043 D <> Application theme set.
zsh: segmentation fault (core dumped)  polymc

Steps to reproduce

  • Install PolyMC on Arch from AUR
  • Launch it from terminal
  • Get a segfault

Suspected cause

No response

This issue is unique

  • I have searched the issue tracker and did not find an issue describing my bug.

That's an issue with one of the packages on the AUR, download another one

The developers of Arch Linux changed the way they build Qt6 so the binary Qt6 packages, which are built on Ubuntu, won't run on Arch.

If you need a Qt6 build with debugging symbols on Arch Linux, you'll have to install polymc source package from AUR but edit the PKGBUILD to build in debug mode instead of release mode (-DCMAKE_BUILD_TYPE=Debug).

@k1gen what did you close the issue for? If it's an actual problem then it needs to be reproduced and then patched.

I worked around this on Arch Linux by installing polymc-qt5-bin on AUR