alowaniak / music-replacer

Replace OSRS music tracks with user defined music
BSD 2-Clause "Simplified" License
9 stars 5 forks source link

Music Replacer starts playing original music but fades out after ~2 secons, then loops over and over. #12

Closed BrickPotato closed 1 year ago

BrickPotato commented 1 year ago

Issue: "Music Replacer" plugin in Runelite starts playing original music but fades out after ~2 seconds, then loops over and over. I use multiple computers and the files are synced between them. This issue occurs randomly on all computers the Runelite files are synced to.

Steps to reproduce:

Install and enable the "Music Replacer" plugin in Runelite.
Select a music file to replace the original music with.
Start the game and listen to the music. Issue is intermittent 

Expected behavior:

The replacement music file should play without any issues.

Actual behavior:

The replacement music file starts playing but fades out after ~2 seconds and loops over and over.

Additional information:

The issue persists even after reinstalling the plugin.
There are no troubleshooting steps for this issue in the plugin's documentation.
No error messages or notifications appear when the issue occurs.
The issue occurs randomly on all synced computers.
BrickPotato commented 1 year ago

Example of the issue

BrickPotato commented 1 year ago

Dug into this a bit more. Looks like a memory limit was being hit.

2023-04-16 15:41:28 MDT [Client] WARN n.a.r.m.MusicReplacerPlugin - Out of memory when loading TrackOverride(name=The Trade Parade, originalPath=p_5h77mBx6M, fromLocal=false, additionalInfo={Name=11. RuneScape 3 - The Soundtrack: Newbie Melody, Duration=PT4M1S, Uploader=Yann}) java.lang.OutOfMemoryError: Java heap space

Increased mem allocation in the config.json file