{"action":"opened","issue":{"url":"https://api.github.com/repos/libgdx/libgdx/issues/5318","repository_url":"https://api.github.com/repos/libgdx/libgdx","labels_url":"https://api.github.com/repos/libgdx/libgdx/issues/5318/labels{/name}","comments_url":"https://api.github.com/repos/libgdx/libgdx/issues/5318/comments","events_url":"https://api.github.com/repos/libgdx/libgdx/issues/5318/events","html_url":"https://github.com/libgdx/libgdx/issues/5318","id":343100092,"node_id":"MDU6SXNzdWUzNDMxMDAwOTI=","number":5318,"title":"LWJGL2 OpenALMusic - Unable to allocate audio buffers. AL Error: 40963","user":{"login":"someguy233","id":2951900,"node_id":"MDQ6VXNlcjI5NTE5MDA=","avatar_url":"https://avatars2.githubusercontent.com/u/2951900?v=4","gravatar_id":"","url":"https://api.github.com/users/someguy233","html_url":"https://github.com/someguy233","followers_url":"https://api.github.com/users/someguy233/followers","following_url":"https://api.github.com/users/someguy233/following{/other_user}","gists_url":"https://api.github.com/users/someguy233/gists{/gist_id}","starred_url":"https://api.github.com/users/someguy233/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/someguy233/subscriptions","organizations_url":"https://api.github.com/users/someguy233/orgs","repos_url":"https://api.github.com/users/someguy233/repos","events_url":"https://api.github.com/users/someguy233/events{/privacy}","received_events_url":"https://api.github.com/users/someguy233/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-20T13:05:03Z","updated_at":"2018-07-20T13:05:03Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"#### Issue details\r\nThis is a really elusive bug to reproduce. From the crash reports I receive from players, it crops up randomly if one does pause(), setPosition(), play() or dispose() repeatedly. I'm not sure if its hardware related or due to some timing issue. While I could reproduce it consistently with a code similar to #5316 , I'm pretty sure it is not related.  \r\n\r\n#### Reproduction steps/code\r\nJust the render() of an empty ApplicationListener:\r\n```java\r\n            Music music = null;\r\n\r\n            @Override\r\n            public void render() {\r\n                int frameNumber = (int)Gdx.graphics.getFrameId();\r\n                Gdx.app.log(\"CRASH\", \"Frame \" + frameNumber);\r\n                switch (frameNumber) {\r\n                    case 0:\r\n                        // Frame 1\r\n                        music = Gdx.audio.newMusic(Gdx.files.external(\"any_audio_file.ogg\"));\r\n                        music.play();\r\n                        break;\r\n\r\n                    case 1:\r\n                        // Frame 2\r\n                        music.setPosition(26.300f);     // must be within at least 200ms from the end\r\n                        break;\r\n\r\n                    case 2:\r\n                        // Frame 3\r\n                        music.setPosition(26.300f);     // must be within at least 200ms from the end\r\n                        break;\r\n\r\n                    case 3:\r\n                        // Frame 4\r\n                        music.dispose();\r\n                        break;\r\n\r\n                    case 4:\r\n                        // Frame 5\r\n                        music = Gdx.audio.newMusic(Gdx.files.external(\"any_audio_file.ogg\"));\r\n                        music.play();       // Crashes here\r\n                        break;\r\n                }\r\n            }\r\n```\r\n\r\n#### Version of LibGDX and/or relevant dependencies\r\n1.9.9-SNAPSHOT\r\n\r\n#### Stacktrace\r\n```java\r\ncom.badlogic.gdx.utils.GdxRuntimeException: Unable to allocate audio buffers. AL Error: 40963\r\n\tat com.badlogic.gdx.backends.lwjgl.audio.OpenALMusic.play(OpenALMusic.java:83)\r\n\tat game27.DesktopMain$2.render(DesktopMain.java:270)\r\n\tat com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:225)\r\n\tat com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:126)\r\n```\r\n\r\n#### Please select the affected platforms\r\n- [ ] Android\r\n- [ ] iOS (robovm)\r\n- [ ] iOS (MOE)\r\n- [ ] HTML/GWT\r\n- [X] Windows\r\n- [ ] Linux\r\n- [ ] MacOS\r\n"}}
{"actor":{"display_login":"someguy233"}}