Skip to content

Attempting to extract vanilla Minecraft sounds can cause NBS to crash #507

Open
@CreeperPookie

Description

@CreeperPookie

Describe the bug
I didn't notice this until recently when I needed to re-extract my Minecraft sounds after a PC reset; however, when I tried to extract my MC sounds into Minecraft, it caused NBS to crash instantly. I'm still not 100% sure, but I really think this is most likely a permission issue; if its installation folder is protected (like if it was installed in Program Files), writing the sound files to its directory might cause a crash (since it wouldn't have permission to write there)

To Reproduce
Steps to reproduce the behavior (though, unlike my usual issues I don't know if this will be easily reproducible):
0: (using a VM may help with this to not conflict with your main NBS installation)

  1. Install NBS to a folder with limited system permissions (such as Program Files or Program Files (x86))
  2. Once it has been installed, make sure to unselect Launch Note Block Studio (since the installer runs as admin, using the auto launch option might also make NBS run as admin)
  3. Open NBS (:D) normally as a user application (aka not run as administrator) and create a new song
  4. Open the settings navigation bar drop-down and open the Minecraft sounds importer
  5. Set the version to the newest version (which right now is 1.21.4, which was auto-selected for me)
  6. Click the get sounds button and (hopefully) observe how NBS crashes
    Expected behavior
    well, I would hopefully expect NBS to copy all the sound files into the right folder without crashing :D

Screenshots
Image

Additional context
One major thing that I find interesting is that NBS didn't crash like it usually does most of the time; usually, when NBS crashes, it shows a window referencing the line of GameMaker code that likely caused the problem (like this image from one of my previous GitHub issues)
Image
instead, it seems like the bug was deep enough that Visual C++ threw an error; I'm not entirely sure though, so I will include the NBS log it generated on opening (though it doesn't indicate to me that there were any issues loading anything)
log.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions