Skip to content

Crash on calling MediaDevices.getAudioCaptureDevices(); #181

@Toniboni08

Description

@Toniboni08

Describe the bug
If you call MediaDevices.getAudioCaptureDevices() on some minecraft events, the jvm crashes.

To Reproduce

  1. clone the repo at https://github.com/Toniboni08/WebRTCCrashTest
  2. run the gradle task "runClient"
  3. join a world

Expected behavior
Upon the screen "loading tarrain..." the game crashes with a fatal jvm exception, where it later says: "The crash happened outside the Java Virtual Machine in native code."

Desktop (please complete the following information):

  • OS: Windows 11
  • Version: 24H2
  • OS Build: 26100.4652

Additional context
It can be midigated in calling MediaDevices.getAudioCaptureDevices() in the constructor.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions