soopercool101 / BrawlCrate

BrawlBox/BrawlTools Fork, Wii File Editor
https://discord.gg/s7c8763
GNU Lesser General Public License v3.0
153 stars 38 forks source link

System.OutOfMemoryException on trying to load a large brsar file #4

Closed red031000 closed 4 years ago

red031000 commented 4 years ago

Describe the bug A System.OutOfMemoryException occurs while trying to load a large (340mb) brsar file (tested on Pokemon Battle Revolution PAL's pbr_sound.brsar)

To Reproduce Steps to reproduce the behavior:

  1. Download BrawlCrate latest
  2. Open a large brsar file
  3. OutOfMemoryException pops up, loading never completes. Memory is never released

Expected behavior Load successfully and be able to edit (and replace) sounds.

Screenshots image

Desktop (please complete the following information):

Additional context Occasionally the loading does completely successfully, but when trying to save the edited brsar, I get an error saying not enough memory resources are available for this operation.

not entirely sure if I should attach the un-edited brsar for copyright reasons

soopercool101 commented 4 years ago

If you happen to be on a 64-bit system, please attempt to use the experimental AnyCPU canary build from the releases page, and see if that fixes your issue

red031000 commented 4 years ago

the brsar opens successfully with that build, but when trying to save the modified (i.e. deleting a folder/replacing a sound) it results in an Arithmatic operation resulted in an overflow.

soopercool101 commented 4 years ago

Could you post the error here or submit it if it is in the form of a crash log?

red031000 commented 4 years ago

image

red031000 commented 4 years ago

there's not really a whole lot of info provided