CHollingworth / Lampray

Linux Application Modding Platform. A native Linux mod manager.
https://www.nexusmods.com/baldursgate3/mods/2169
The Unlicense
174 stars 16 forks source link

Segmentation fault on zip extraction #153

Closed Dzuelu closed 1 month ago

Dzuelu commented 1 month ago

Describe the bug

Segmentation fault on zip extraction

Error message

Application crashes, logs do not contain segmentation fault, visible if running from cli.

To Reproduce

Steps to reproduce the behaviour:

  1. Add mods
  2. Set correct paths
  3. Click Deploy

Expected behaviour

Mods to be deployed and not a segmentation fault.

System Info (please complete the following information):

Additional context CLI output

➜  /opt/Lampray $ ./Lampray
[LAMP:LOG:0] Loading LAMP CONFIG:PreviousGame
[LAMP:WARNING:9] Unable to load LAMP CONFIG:PreviousGame
[LAMP:LOG:0] Clearing log file.
[LAMP:LOG:0] 15/07/2024 15:13 | | Battle Control Online, Welcome Back Commander.
[LAMP:LOG:0] Loading BG3:CurrentProfile
[LAMP:LOG:0] Saving BG3:CurrentProfile:Default
[LAMP:LOG:0] Loading BG3:ProfileList
[LAMP:LOG:0] Saving BG3:ProfileList:Default
[LAMP:LOG:0] Loading BG3:appDataPath
[LAMP:LOG:0] Loading BG3:installDirPath
Default
[LAMP:LOG:0] Loaded Mod: Lamp_Data/Archives/Baldur's Gate 3/Level 20 (Normal rate)-570-1-3-1691602480.zip| Mod Type: 5| Enabled :0
[LAMP:LOG:0] Loaded Mod: Lamp_Data/Archives/Baldur's Gate 3/BetterLoot (Base Mod)-1398-2-5-1701403118.zip| Mod Type: 5| Enabled :1
[LAMP:LOG:0] Loaded Mod: Lamp_Data/Archives/Baldur's Gate 3/X900 Increase --522-2-0-1695737859.zip| Mod Type: 5| Enabled :1
[LAMP:LOG:0] Loaded Mod: Lamp_Data/Archives/Baldur's Gate 3/KvCampEvents-1879-0-4-5-1694790472.zip| Mod Type: 5| Enabled :1
[LAMP:LOG:0] Loaded Mod: Lamp_Data/Archives/Baldur's Gate 3/Gold Zero Weight-616-1-0-1691358529.zip| Mod Type: 5| Enabled :1
[LAMP:LOG:0] Loaded Mod: Lamp_Data/Archives/Baldur's Gate 3/Drop ALL The Loot-1475-1-0-0-0-1709249359.zip| Mod Type: 5| Enabled :1
[LAMP:LOG:0] Loaded Mod: Lamp_Data/Archives/Baldur's Gate 3/Mod Fixer-141-1-0-1692715645.zip| Mod Type: 5| Enabled :1
[LAMP:LOG:0] Loaded Mod: Lamp_Data/Archives/Baldur's Gate 3/Party Limit Begone SE v2.1-327-2-1-1712784982.zip| Mod Type: 5| Enabled :1
[LAMP:LOG:0] Loading C77:CurrentProfile
[LAMP:LOG:0] Saving C77:CurrentProfile:Default
[LAMP:LOG:0] Loading C77:ProfileList
[LAMP:LOG:0] Saving C77:ProfileList:Default
[LAMP:LOG:0] Loading C77:installPath
[LAMP:WARNING:9] Unable to load C77:installPath
[LAMP:ERROR:7] Could not load modlist.
[LAMP:LOG:0] Loading LAMP CONFIG:Check_Updates_Startup
[LAMP:LOG:0] Loading LAMP CONFIG:showIntroMenu
[LAMP:WARNING:9] Unable to load LAMP CONFIG:showIntroMenu
[LAMP:LOG:0] Loading LAMP CONFIG:bit7zLibaryLocation
[LAMP:LOG:0] Initializing Lampray
[LAMP:LOG:0] Saving LAMP CONFIG:bit7zLibaryLocation:/usr/lib/7zip/7z.so
[LAMP:LOG:0] Loading LAMP CONFIG:Font_Scale
[LAMP:LOG:0] Creating Directories
[LAMP:LOG:0] Directories Created
[LAMP:LOG:0] Loading LAMP CONFIG:Colour_Text
[LAMP:LOG:0] Loading LAMP CONFIG:Colour_WindowBackground
[LAMP:LOG:0] Loading LAMP CONFIG:Colour_ToolTipAndTypes
[LAMP:LOG:0] Loading LAMP CONFIG:Colour_InputBG
[LAMP:LOG:0] Loading LAMP CONFIG:Colour_MenuBar
[LAMP:LOG:0] Loading LAMP CONFIG:Colour_Button
[LAMP:LOG:0] Loading LAMP CONFIG:Colour_Hover
[LAMP:LOG:0] Loading LAMP CONFIG:Colour_Pressed
[LAMP:LOG:0] Loading LAMP CONFIG:Colour_MenuItems
[LAMP:LOG:0] Loading LAMP CONFIG:Colour_HeadHover
[LAMP:LOG:0] Loading LAMP CONFIG:Colour_HeadPressed
[LAMP:LOG:0] Loading LAMP CONFIG:Colour_Separator
[LAMP:LOG:0] Loading LAMP CONFIG:Colour_SeparatorHover
[LAMP:LOG:0] Loading LAMP CONFIG:Colour_SearchHighlight
[LAMP:LOG:0] Loading LAMP CONFIG:Colour_ButtonAlt
[LAMP:LOG:0] Loading LAMP CONFIG:Check_Updates_Startup
[LAMP:LOG:0] Queue 'Deployment Start': Starting
[LAMP:LOG:0] Tracker data saved to Lamp_Data/Config/lampTrack.mdf
[LAMP:LOG:0] Task Complete.
[LAMP:LOG:0] Queue 'Deployment Start': Success
[LAMP:LOG:0] Queue 'BG3 Deployment Queue': Starting
[LAMP:LOG:0] Cleaning Working Directory : Lamp_Data/Deployment/Baldur's Gate 3
[LAMP:LOG:0] Creating Working Directories
[LAMP:LOG:0] Creating modsettings.lsx
[LAMP:LOG:0] Cleaning modsettings.lsx
[LAMP:LOG:0] Injecting GustavDev into modsettings.lsx
[LAMP:LOG:0] Saving modsettings.lsx
[LAMP:LOG:0] Queue 'BG3 Deployment Queue': Success
[LAMP:LOG:0] Extracting Archives
[LAMP:LOG:0] ModList Executor: Starting
[LAMP:LOG:0] Extracting File: Lamp_Data/Archives/Baldur's Gate 3/Level 20 (Normal rate)-570-1-3-1691602480.zip
[1]    53971 segmentation fault (core dumped)  ./Lampray

With relevant conf.mdf

...
        <bit7zLibaryLocation>/usr/lib/7zip/7z.so</bit7zLibaryLocation>
    </game>
    <game name="BG3">
        <installDirPath>/home/kenny/.steam/steam/steamapps/common/Baldurs Gate 3</installDirPath>
        <appDataPath>/home/kenny/.steam/steam/steamapps/compatdata/1086940/pfx/drive_c/users/steamuser/AppData/Local/Larian Studios/Baldur's Gate 3</appDataPath>
...

I've also tried manually setting the mod types and disabling the first mods to see if it's a problem with the zip archive, all files error the same way for me.

Dzuelu commented 1 month ago

Fixed. 7zip is not the same as p7zip apparently. I wasn't able to find a p7zip install in apt but did a find / -type d -name 'p7zip' and lutris had a p7zip with the so file so I used that.