Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-188305

Invalid sound behaviour when changed sound output device

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Duplicate
    • 1.16 Pre-release 2
    • None
    • None
    • openjdk version "11.0.7" 2020-04-14
      OpenJDK Runtime Environment (build 11.0.7+10-post-Ubuntu-2ubuntu218.04)
      OpenJDK 64-Bit Server VM (build 11.0.7+10-post-Ubuntu-2ubuntu218.04, mixed mode, sharing)
    • Unconfirmed
    • (Unassigned)

    Description

      This bug is present both on Linux and Windows 10. It occurs when I change my default output device eg. from speakers in my laptop to sound through HDMI cable or when I connect Bluetooth headphones.

      This affect every sound in the game: including music, UI effects, mobs etc. Both in menu and in the game itself.

       

      Usually all the sounds just disappear completely and I need to restart the game to be able to hear anything again, however it sometimes plays the sound on the device that was selected when started the game, so If I switch to internal speakers in my system when connected to BT headphones the Minecraft still plays everything on my BT headphones.

       

      There is nothing about sound in logs except 

      [09:43:39] [main/INFO]: OpenAL initialized.
      [09:43:39] [main/INFO]: Sound engine started

      Which is fine, but once minecraft crashed with this error:

      [10:03:06] [Server thread/INFO]: Saving and pausing game...[10:03:06] [Server thread/INFO]: Saving and pausing game...[10:03:06] [Server thread/INFO]: Saving chunks for level 'ServerLevel[world]'/minecraft:overworld[10:03:06] [Server thread/INFO]: Saving chunks for level 'ServerLevel[world]'/minecraft:the_nether[10:03:06] [Server thread/INFO]: Saving chunks for level 'ServerLevel[world]'/minecraft:the_end[10:03:09] [Sound engine/INFO]: [STDERR]: java.lang.OutOfMemoryError[10:03:09] [Sound engine/INFO]: [STDERR]: at org.lwjgl.system.MemoryUtil.nmemAllocChecked(MemoryUtil.java:247)[10:03:09] [Sound engine/INFO]: [STDERR]: at org.lwjgl.system.MemoryUtil.memAlloc(MemoryUtil.java:271)[10:03:09] [Sound engine/INFO]: [STDERR]: at dfs.d(SourceFile:134)[10:03:09] [Sound engine/INFO]: [STDERR]: at dfs.a(SourceFile:159)[10:03:09] [Sound engine/INFO]: [STDERR]: at dfs.a(SourceFile:224)[10:03:09] [Sound engine/INFO]: [STDERR]: at dfp.a(SourceFile:151)[10:03:09] [Sound engine/INFO]: [STDERR]: at dfp.i(SourceFile:166)[10:03:09] [Sound engine/INFO]: [STDERR]: at epc.c(SourceFile:82)[10:03:09] [Sound engine/INFO]: [STDERR]: at amk.c(SourceFile:144)[10:03:09] [Sound engine/INFO]: [STDERR]: at amk.x(SourceFile:118)[10:03:09] [Sound engine/INFO]: [STDERR]: at amk.c(SourceFile:127)[10:03:09] [Sound engine/INFO]: [STDERR]: at eph.c(SourceFile:42)[10:03:09] [Sound engine/INFO]: [STDERR]: at java.base/java.lang.Thread.run(Thread.java:834)

      OutOfMemoryError exception even though I give minecraft 12GB of RAM, but I can't reproduce this error, this has happened only once.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jakweg Jakub
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: