Skip to content

Conversation

intrigus
Copy link
Contributor

Update Sound Manager to version V2.97a.20150601.
This should fix http://www.badlogicgames.com/forum/viewtopic.php?f=15&t=24079 .

@Tom-Ski Tom-Ski merged commit 52588d1 into libgdx:master Jan 25, 2017
@BenMcLean
Copy link
Contributor

BenMcLean commented Jan 27, 2017

GWT builds successfully with this change, but fails to actually run in the browser on desktop. Causes some kind of exception, even in apps that don't have any sounds.

Seems to work in browsers on Android though, oddly enough.

Please look into this. I've downgraded to 1.9.4 until there is a release where the GWT backend works.

@Tom-Ski
Copy link
Member

Tom-Ski commented Jan 27, 2017

Works just fine in browser.

@BenMcLean
Copy link
Contributor

BenMcLean commented Jan 27, 2017

Oh, I should have mentioned, This bug only seems to occur some of the time, but I've tested it on both FireFox and Chrome on multiple computers. They're all running Windows 10 though.

@Tom-Ski
Copy link
Member

Tom-Ski commented Jan 27, 2017

Are you running gdx tests from source? I've ran this on chrome and firefox no issue.

@BenMcLean
Copy link
Contributor

Just tried it on Windows 7, same issue. See my page here: https://benmclean.github.io/Planet-Generator/html/build/dist/ (btw it may be updated by tomorrow)

@Tom-Ski
Copy link
Member

Tom-Ski commented Jan 27, 2017

Run the gdx-tests please.

@BenMcLean
Copy link
Contributor

I will give that a try after work. :)

@BenMcLean
Copy link
Contributor

BenMcLean commented Jan 27, 2017

I will be trying out the tests as you suggest, but just FYI here is the error from the javascript console:

Uncaught Error: soundManager: Fatal: JavaScript file build "V2.97a.20130512" does not match Flash SWF build "V2.97a.20150601" at https://benmclean.github.io/Planet-Generator/html/build/dist/html/soundmanager2_flash9_debug.swf. Ensure both are up-to-date.
    at soundmanager2-jsmin.js:94
(anonymous) @ soundmanager2-jsmin.js:94
soundmanager2-jsmin.js:32 soundManager: No Flash response within expected time. Likely causes: Flash blocked or JS-Flash security error.
_writeDebug @ soundmanager2-jsmin.js:32
(anonymous) @ soundmanager2-jsmin.js:102
soundmanager2-jsmin.js:32 soundManager.disable(): Shutting down
soundmanager2-jsmin.js:32 SoundManager 2 failed to load (Flash security/load error)
_writeDebug @ soundmanager2-jsmin.js:32
X @ soundmanager2-jsmin.js:105
disable @ soundmanager2-jsmin.js:30
Ga @ soundmanager2-jsmin.js:81
(anonymous) @ soundmanager2-jsmin.js:103
html-0.js:5919 Uncaught TypeError: Cannot set property 'k' of undefined
    at Cd (html-0.js:5919)
    at Dd (html-0.js:5575)
    at fd (html-0.js:2350)
    at qd.sd [as Ac] (html-0.js:7564)
    at ontimeout (html-0.js:6835)
    at M (soundmanager2-jsmin.js:88)
    at X (soundmanager2-jsmin.js:105)
    at fa.disable (soundmanager2-jsmin.js:30)
    at Ga (soundmanager2-jsmin.js:81)
    at soundmanager2-jsmin.js:103

From that I was just assuming it must be this change since it wasn't happening before this change and is happening after, and it says "soundmanager2" right in it. But I could be wrong -- it could be something I did. I doubt it though, since my app isn't doing anything with sound.

@BenMcLean
Copy link
Contributor

I'll try to get this done soon but not today.

@MrStahlfelge
Copy link
Member

MrStahlfelge commented Jun 7, 2017

I also have this problem after updating from 1.9.4 to 1.9.6. I am using Windows 10. The error message is logged only on Firefox with Flash enabled. Firefox without Flash and Chrome are working.

Error: soundManager: Fatal: JavaScript file build "V2.97a.20130512" does not match Flash SWF build "V2.97a.20150601" at https://v6p9d9t4.ssl.hwcdn.net/html/495497/html/soundmanager2_flash9_debug.swf. Ensure both are up-to-date. soundmanager2-jsmin.js:94:452
soundManager: No Flash response within expected time. Likely causes: Flash blocked or JS-Flash security error. soundmanager2-jsmin.js:32:357
soundManager.disable(): Shutting down soundmanager2-jsmin.js:32:357
SoundManager 2 failed to load (Flash security/load error) soundmanager2-jsmin.js:32:357

The game won't start then.

@MrStahlfelge
Copy link
Member

MrStahlfelge commented Jun 13, 2017

@Tom-Ski problem exists in Firefox on Windows with Flash installed. If you don't face the problem, you are probably using Firefox without Flash. See #4771 for console log. I think this should be classified as a critical problem because it is preventing the whole application to start on a widely used configuration.

@BenMcLean
Add preferFlash=false to your config or downgrade to 1.9.4 to get your application working.

@intrigus
Copy link
Contributor Author

@MrStahlfelge you are probably using a gdx project which has been created by an old version.
The soundmanager files are directly stored in your project and aren't updated when you update your libgdx project (by changing the libgdx version in your build.gradle).

You have to either regenerate your project or copy over the new files.

@MrStahlfelge
Copy link
Member

@intrigus Thank you for the hint. I updated according to the doc in the wiki -- is this documentation incomplete? Where can I find the information which files to copy? (probably the two js files in /webapp, but I want to make sure)

@MrStahlfelge
Copy link
Member

@intrigus can you please add the information which files to copy to the Update documentation? I would add it myself it I would know which files from where need to be replaced.

@intrigus
Copy link
Contributor Author

Busy right now. Sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants