User Tag List

Results 1 to 9 of 9

Thread: HTML5 Problems on Safari: InvalidStateError when trying to jump to frame

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Jan 2010
    Posts
    545
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    HTML5 Problems on Safari: InvalidStateError when trying to jump to frame

    Hi,
    I am having strange behavior in Safari only for the following event:
    * If active object A collides with active object B... then jump to a frame.

    The game just completely freezes when this event is triggered.

    I've seen the following errors in developer consoles:


    InvalidStateError: The object is in an invalid state.

    InvalidStateError: DOM Exception 11: An attempt was made to use an object that is not, or is no longer, usable.


    Any ideas why this is occuring? Safari seems to be the bane of my existence with Fusion HTML5 games...

    Thanks,
    Brett

  2. #2
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,789
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)
    please post a small mfa that reproduce this error
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Jan 2010
    Posts
    545
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hi Fernando,
    Here's an mfa with the same programming that I pared down a lot. It doesn't seem to have the same issue but I can't figure out why since it is the same programming. Here's the actual game online where you can see the issue (again, only in Safari): https://biomanbio.com/HTML5GamesandL...man/index.html

    You can see it freezes in Safari whenever you reach the end point (the easiest level to see this is Nucleic Acids Mission 1).
    I'm going to test now if it has something to do with the music...
    Please let me know if you have any insight. Thanks,
    Brett
    Attached files Attached files

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Jan 2010
    Posts
    545
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    And here's the pared down version that works online: https://biomanbio.com/HTML5GamesandL...man/index.html

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Jan 2010
    Posts
    545
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I think I figured out something related to the problem. At the start of frame on the second frame, I have a play and loop sample event (for game music). When I publish the HTML5 app with that event, it no longer works in Safari: https://biomanbio.com/HTML5GamesandL...man/index.html

    I am reattaching the updated mfa with the music event so you can see the difference in the programming. Is this just a bug in Fusion?
    Attached files Attached files

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Jan 2010
    Posts
    545
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I think the issue is that Safari doesn't like to play audio, especially if it starts at the beginning of the frame. Instead of starting the music at the start of the frame, I made it start after 0.75 seconds. Then it does not freeze. But is still does not play the audio on Safari. It is totally silent (no audio plays at all). I'm not sure why this is, but at least the game will run. Any insight would be appreciated. Thanks,
    Brett

  7. #7
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,789
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)
    Thanks for the mfa i will check and post any result here
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  8. #8
    Clicker

    Fusion 2.5 DeveloperHTML5 Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    AWK's Avatar
    Join Date
    Aug 2008
    Location
    The Netherlands
    Posts
    73
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have a similar problem with HTML5 audio in Safari. The software works just fine, but there is no audio. When I try it in Chrome, the sound is there!

    http://www.degeflipteklas.nl/program...ode/myco-club/

    Click any button on the first screen and then click 'START' on the second screen. The sound should be there right away.

  9. #9
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    SpaceKoala's Avatar
    Join Date
    Jan 2019
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There's been a few bugs since IOS 14 came out around July 2020. Seems like Clickteam is still working on a fix for it.

    https://community.clickteam.com/threads/107729-iOS-wait-for-a-touch-not-working

    https://community.clickteam.com/threads/108191-Reported-iOS-problems-thread

    Making html5 games is all I do with Fusion, so I am eagerly awaiting a solution.

Similar Threads

  1. Problems with Jump to Frame
    By Drackonarius in forum Fusion 2.5
    Replies: 2
    Last Post: 13th June 2018, 09:19 PM
  2. safari not showing html5 application
    By brett in forum HTML5 Export Module 2.5
    Replies: 7
    Last Post: 28th September 2016, 07:05 PM
  3. Some problems with matching jumping strength to time jump-button is held
    By Storsorgen in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 15th May 2012, 07:36 AM
  4. [Bug] Jump to frame shows strangeness before starting actual frame
    By AdamDobay in forum Android Export Module Version 2.0
    Replies: 0
    Last Post: 19th November 2011, 09:41 PM
  5. Jump to frame - does not reset the old frame?
    By Blue66 in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 25th April 2009, 08:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •