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

installer crashes with out-of-bounds access in non-application code #11

Open
LanHikariDS opened this issue Jun 6, 2023 · 11 comments
Open

Comments

@LanHikariDS
Copy link

LanHikariDS commented Jun 6, 2023

Trying to install chaudloader just causes the window to flash and do nothing. Opening the program through a prior command prompt window shows
`Welcome to the chaudloader installer.

thread 'main' panicked at 'range end index 20 out of range for slice of length 0', /rustc/2f2c438dce75d8cc532c3baa849eeddc0901802c\library\alloc\src\vec\mod.rs:1992:36
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace`
I previously had BNLC installed on my E: drive, but both moving it to C: and uninstalling/reinstalling on C: still cause the same issue.

@bigfarts
Copy link
Collaborator

bigfarts commented Jun 6, 2023

Can you run it with RUST_BACKTRACE=1 and post the output?

@LanHikariDS
Copy link
Author

I have no idea how to do that, I tried "install.exe -RUST_BACKTRACE=1", and that threw an error

@bigfarts
Copy link
Collaborator

bigfarts commented Jun 6, 2023

Could you run set RUST_BACKTRACE=1 in the command prompt before running the installer?

@LanHikariDS
Copy link
Author

thread 'main' panicked at 'range end index 20 out of range for slice of length 0', /rustc/2f2c438dce75d8cc532c3baa849eeddc0901802c\library\alloc\src\vec\mod.rs:1992:36
stack backtrace:
note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace.

Setting backtrace to full shows-
thread 'main' panicked at 'range end index 20 out of range for slice of length 0', /rustc/2f2c438dce75d8cc532c3baa849eeddc0901802c\library\alloc\src\vec\mod.rs:1992:36
stack backtrace:
0: 0x7ff628f53f4c -
1: 0x7ff628f67fab -
2: 0x7ff628f50209 -
3: 0x7ff628f53cfb -
4: 0x7ff628f55d49 -
5: 0x7ff628f559ff -
6: 0x7ff628f56236 -
7: 0x7ff628f5612d -
8: 0x7ff628f548c9 -
9: 0x7ff628f55e40 -
10: 0x7ff628f6fcd5 -
11: 0x7ff628f70204 -
12: 0x7ff628ee2492 -
13: 0x7ff628ee1f52 -
14: 0x7ff628ee06ff -
15: 0x7ff628ee079b -
16: 0x7ff628ee079b -
17: 0x7ff628ee1801 -
18: 0x7ff628ee3339 -
19: 0x7ff628edff65 -
20: 0x7ff628edcb50 -
21: 0x7ff628edb006 -
22: 0x7ff628ed424a -
23: 0x7ff628f48868 -
24: 0x7ff628edf85c -
25: 0x7ff628f6c7c4 -
26: 0x7ffbe13d7614 - BaseThreadInitThunk
27: 0x7ffbe32826a1 - RtlUserThreadStart

@bigfarts
Copy link
Collaborator

bigfarts commented Jun 6, 2023

It's likely that for one reason or another it can't find your Steam installation. Can you try copying chaudloader.dll and dxgi.dll manually into the BNLC folder? Should be placed in the same directory as MMBN_LC1.exe, MMBN_LC2.exe.

@LanHikariDS
Copy link
Author

Now BNLC doesn't open, and the modloader installer does the same thing as before

@bigfarts
Copy link
Collaborator

bigfarts commented Jun 6, 2023

That's so weird. You definitely have BNLC installed via Steam, and you've launched it at least once from Steam?

@LanHikariDS
Copy link
Author

Yep. Preordered the collections through Steam, and have nearly 91 hours clocked in it.

@LanHikariDS
Copy link
Author

I had a friend send me all his dlls (the two above, as well as chaudloader.toml and llua54.dll), and now the modloader opens for me when starting

@bigfarts
Copy link
Collaborator

bigfarts commented Jun 6, 2023

Ah, I forgot about Lua. I'm going to repurpose this bug but it sounds like your issue is solved.

@bigfarts bigfarts changed the title Install issue? installer crashes with "thread 'main' panicked at 'range end index 20 out of range for slice of length 0'" in non-application code Jun 6, 2023
@bigfarts bigfarts changed the title installer crashes with "thread 'main' panicked at 'range end index 20 out of range for slice of length 0'" in non-application code installer crashes with out-of-bounds access in non-application code Jun 6, 2023
@LanHikariDS
Copy link
Author

LanHikariDS commented Jun 6, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants