Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Startup Crash/Error related to having LuaRocks in the environment LUA_PATH #3497

Open
2 tasks done
HybridEidolon opened this issue Oct 20, 2021 · 5 comments
Open
2 tasks done
Labels
bug Something isn't working crash Causes PoB to crash and is High Priority

Comments

@HybridEidolon
Copy link

Check version

  • I'm running the latest version of Path of Building and I've verified this by checking the changelog

Check for duplicates

  • I've checked for duplicate issues by using the search function of the issue tracker

What is the expected behaviour/value?

Path of Building should start up with only its own lua directory in the lua path.

What is the actual behaviour/value?

Either Path of Building will crash after the initial loading window, or an error like this will appear:

How to reproduce the issue

  1. Install LuaRocks
  2. Install Path of Building Community fresh
  3. Run Path of Building Community

Build code

N/A

Screenshots

No response

@HybridEidolon HybridEidolon added the bug Something isn't working label Oct 20, 2021
@HybridEidolon
Copy link
Author

I can confirm that running PoB with this batch script solves the issue. Path of Building should unset the LUA_PATH and LUA_CPATH environment variables during startup.

@echo off
set LUA_PATH=
set LUAC_PATH=
start "" "Path of Building.exe"

@Wires77
Copy link
Member

Wires77 commented Oct 20, 2021

Does this work with the normal SimpleGraphic.dll? Or are you still using the one @zao linked you? We fixed this exact issue already, so I'm curious if it's somehow coming up again #1745

@HybridEidolon
Copy link
Author

This is with the stock SimpleGraphic.dll. Completely unmodified (portable) installation of PoBC 2.9.0.

@Justw8
Copy link

Justw8 commented Oct 22, 2021

I also was unable to run PoB until I got rid of the the LUA_PATH & LUAC_PATH set by luarocks.

@grapereader
Copy link

grapereader commented Mar 15, 2022

This happens with any systemwide Lua installation; I had mine installed through scoop. Removing the environment variables listed above is a workaround. (Issue still in POBC 2.15.1, installer, unmodified)

@QuickStick123 QuickStick123 added the crash Causes PoB to crash and is High Priority label Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working crash Causes PoB to crash and is High Priority
Projects
Status: No status
Development

No branches or pull requests

5 participants