Anna

Error during chrome version change

Recommended Posts

Hi,

I am getting this error ("invalid x,y parameters-not a number) when I left click on the entities or drag around. This is happening only in google chrome version -59.0.3071.86. 

If we downgrade or upgrade the version it is working fine! The values which we are passing (typeof is a number).  So  we cdn't  figure out why only for a particular version it is showing this error. We have a team using this application and we cannot ask each and everyone to upgrade or downgrade the version. 

Could someone please help me out here.

image001.png

Share this post


Link to post
Share on other sites

Hi!

Click on the left-most arrow to get a stack trace. You can also enable "pause on uncaught errors" in the debugger, which will allow you to inspect the actual values of x and y, and (may be more important) walk the stack to find where those values originate. Debugging in this manner is best done with the non-minified melonJS build.

Give it a try and let us know if you manage to track it down. If you need additional support, please don't hesitate to respond here with further information.

Best of luck!

Share this post


Link to post
Share on other sites

@Hashasm Were you able to get the variable state during that stack trace as well? I'm interested in the values of all the variables on lines 20135 and 20136. It seems like NaN is getting introduced in some way. But this is only a guess, based on the error message.

Share this post


Link to post
Share on other sites

hi ,

I checked on that lines lines 20135 and 20136  its giving the proper coordinate value not returning any NAN .

i wonder why only for this browser version its giving such error.

Note my melon version is : melonJS 4.1.1

Share this post


Link to post
Share on other sites
On 8/3/2017 at 1:10 PM, Hashasm said:

here is the description screen it may help you to understand the error @Parasyte

melon error.png

but it does not makes any sense... if the me.Vector2d class is throwing an exception, it means that somewhere along the line, one the above method is passing a non numerical value to the other one.

can you test the following example and report if you are having the same issue ? 

http://melonjs.github.io/melonJS/examples/shapes/

I'm running Chrome Version 59.0.3071.115 (Official Build) (64-bit) Chrome right now, and the above example is working fine here. Are you using any complex CSS/elements in your page that might affect the pointer position as seen/detected by melonJS ?

Also, maybe you could look at sending us a strip down version of your code (including the html page), so that we can reproduce the issue and identify what is wrong? 

 

Share this post


Link to post
Share on other sites

@obiot   It will work for the chrome version which you are using. Only for version 59.0.3071.86 it is not working

I checked the link. Its showing the same error in this particular version of chrome. Please check the images.

melon error2.png

melonerror3.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Recently Browsing   0 members

    No registered users viewing this page.