Forums

OverviewV-Play 2 Support (Qt 5) › Javascript usage causes crash

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #12264

    Batman

    Hi,

    I randomly get following crash, unfortunately I can not reproduce it every time. I suspect it’s because of one JavaScript Math methods being used.

    What can I do, what is the root cause of this problem? After opening the scene with these JavaScript methods the application will crash, in QML log there is this interesting line: ASSERT: “isDouble()” in file ..\..\include\QtQml\5.5.1\QtQml/private/../../../../../src/qml/jsruntime/qv4value_p.h, line 278

     

    Thank you very much in advance!

    Best regards

    #12272

    GĂźnther
    V-Play Team

    Hi Batman! 😀
    My guess is that somewhere in your code a function is used that requires a double-type parameter. Let’s say you pass an object, a null or an undefined value to this function per accident (this is possible because javascript variables don’t have a fixed type). That would then lead to an error like this.

    You can try to check your variables before passing invalid values to the Math functions you suspect of being the problem.
    Hope this helps!

    Best, GĂźnther

    • This reply was modified 2 years, 10 months ago by  GT.
Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support