0 Favourites

R123 crash with no platform behaviour

  • I noticed that some users are having some issues with the platform behaviour in 123 and it will be hotfixed,soon ,but my game does not use the platform behaviour nor any 3rd party plug ins.

    so for speed I am just posting the error as it is displayed in my project.

    Javascript error!

    uncaught TypeError:Object #<Object> has no method 'indexOf'

    localhost/common_prelude.js, line 461 (Colundefined)

    Steps to reproduce:

    1. run game that worked perfectly until r123

    2.

    3.

    Observed result:

    crash entire browser with error report shown above

    Expected result:

    run game

    Browsers affected:

    Chrome: yes

    Firefox: untested

    Internet Explorer: untested

    Operating system & service pack:

    windows XP service pack 3

    Construct 2 version:

    R123

  • I have the same problem. =(

  • This can't be fixed without a .capx or actual steps I can follow to reproduce the issue. Can you provide this? A hotfix will likely go out tomorrow for the Platform issue so it would be good if this can be fixed too.

  • I'll be really honest... I have no idea of why the bug started to happen, before the beta update of today, the game was working flawless...

    After the last Beta update, my project didn't start anymore and I have no idea of how to reproduce the problem in a clean file, but here is the screens of the errors:

    The page in localhost:50000 say:
    Javascript error!
    Uncaught SyntaxError: Unexpected identifier http:///localhost:50000/Platform_behavior.js, line 135 (col undefined)
    
    This is either a bug in Construct 2 or a problem in a third party plugin or behavior � please report it to the developer!
    
    The page in localhost:50000 say:
    Javascript error!
    Uncaught SyntaxError: Unexpected identifier http:///localhost:50000/Platform_behavior.js, line 15832 (col undefined)
    
    This is either a bug in Construct 2 or a problem in a third party plugin or behavior � please report it to the developer!

    And after leaving the tab and going back:

    The page in localhost:50000 say:

    Assertion failure: No running layout in tick()
    Error
       at Error (<anonymous>)
      at assert2 (http://localhost:50000/preview_prelude.js:12:10)
      at Runtime.tick (http://localhost:50000/preview.js:1262:3)
      at Runtime.setSuspended (http://localhost:50000/preview.js:3272:26)
      at HTMLDocument.onVisibilityChanged (http://localhost:50000/:105:4)
    Chrome Debug:
    Viewport target-densitydpi is not supported. :50000/:11
    Uncaught SyntaxError: Unexpected identifier Platform_behavior.js:135
    1.     Uncaught TypeError: Cannot read property 'prototype' of undefined 
    ------------------
              // Run any events scheduled with the Wait action
              this.isInOnDestroy++;
              
              this.system.runWaits();          // prevent instance list changing
     Uncaught TypeError: Cannot call method 'runWaits' of undefined
              
              this.isInOnDestroy--;
  • Getting this error too but I can't isolated it to specific events.

    More console information:

    Uncaught TypeError: Object #<Object> has no method 'indexOf' common_prelude.js:461
    cr.arrayFindRemove common_prelude.js:461
    Runtime.ClearDeathRow preview.js:1749
    Runtime.logic preview.js:1422
    Runtime.tick preview.js:1280
    Runtime.setSuspended preview.js:615
    window.cr_setSuspended preview.js:3272
    onVisibilityChanged
    

    If the hotfix tomorrow doesn't resolve it I will try to strip down current capx to isolate cause.

  • Hello <img src="smileys/smiley20.gif" border="0" align="middle" /> in new in here:

    I got the same Problem with every proyect that I have even with the example proyect too is the "Javascrip error" that pop up in every proyect run layout <img src="smileys/smiley6.gif" border="0" align="middle" />

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • Ashley I am stripping my game down at the moment (large project) to try and isolate this.

    Hopefully I can get a capx over to you.

  • You can probably email a complete .capx for this one, as long as it doesn't use third party plugins. While small projects are what I typically ask for, I get the feeling this is something silly like a typo or something I can fix quickly once I see what's happening in a real project.

  • I tested with an old resultat of tutorial with platform behavior and I had the problem.

    Here is the capx, just run the game : dl.dropbox.com/u/15473488/r123_bug.capx

  • labithiotis exactly same as me.

    i.imgur.com/M5uLzH5.jpg

    Can't include capx as it's a finished game (200+mb).

    I don't use platform behaviour. Can't pinpoint when it happens it seems random.

    Chrome console dumps this:

    Uncaught TypeError: Object #<Object> has no method 'indexOf' common_prelude.js:461

    cr.arrayFindRemove common_prelude.js:461

    Runtime.ClearDeathRow preview.js:1749

    EventSheet.run eveng.js:180

    Runtime.logic preview.js:1542

    Runtime.tick preview.js:1280

    (anonymous function) preview.js:356

  • I'm having the same problem. It happens randomly.

    Uncaught TypeError: Object #<Object> has no method 'indexOf' common_prelude.js:461

    Not sure why it happens. At first try, it crashes right at start. Then, I moved some objects that are "destroyed on start of the layout" outside the layout, then I can run the game for some seconds, then it crashes again

  • On windows 8 it says it's crashing at this point :

     Line 351:
         cr.arrayFindRemove = function (arr, item)
         {
              var index = arr.indexOf(item);
              if (index !== -1)
                   cr.arrayRemove(arr, index);
         };
    
  • Ashley this is bare bones as I could get it,events that cause crash 100% every time,in both firefox and chrome during my testing.

    Sometimes you will need to be patient and refresh and collide again a few times.

    dl.dropbox.com/u/146573792/bugreportversion123.capx

    thanks for getting on this issue so quickly.

  • I'm having the same issue. "Uncaught typeerror: object#<object> has no method 'indexof', common_prelude.js, line 461 (col undefined).

    However, my crashes do not happen at random. In my game it appears when I use most of my spells. The error either triggers just when the spell is cast on a monster or JUST before the monster dies (depending on the spell - always the same time for the same spell). All browsers give the same error at the same time as well. My project is pretty big so I've at first just uploaded a few screenshots of the events here: dl.dropbox.com/u/4793120/error123.zip. Let me know if you want the whole, messy capx.

    Edit: a small description of the game might be needed. Monsters spawn at top and move downwards. Player must click on monsters and cast spells on them to keep them at bay. So a lot of the crashing happens when the player clicks on a monster combined with a spell use.

  • +1

    Javascript error with platform behaviour

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
0 Favourites
[BEHAVIOR] Chipmunk Physics
673 82,536
nelostic's avatar
nelostic
Unread hot topic
0 Favourites
[Behavior] LiteTween
672 169,968
manujorgo's avatar
manujorgo
Unread hot topic
564 105,257
rexrainbow's avatar
rexrainbow