What does this Error Message means?

Discussion in 'Javascript/Plugin Support' started by KiraNet, Feb 20, 2019.

    Tags:
  1. KiraNet

    KiraNet Engel der Dunkelheit Member

    Messages:
    28
    Likes Received:
    2
    First Language:
    Deutsch
    Primarily Uses:
    RMMV
    TypeError

    Failed to execute "createLinearGradient" on "CanvasRenderingContext2D": float parameter 1 is non-finite

    I absolutly don't know what this suppost to mean... Do someone know it?
     
    #1
  2. Dreadshadow

    Dreadshadow Lv 38 Tech Magician Moderator

    Messages:
    3,836
    Likes Received:
    2,484
    First Language:
    Greek
    Primarily Uses:
    RMMV
    How did this happen? Have you by any chance added any plugins or altered the core code of RPG Maker MV?
     
    #2
  3. KiraNet

    KiraNet Engel der Dunkelheit Member

    Messages:
    28
    Likes Received:
    2
    First Language:
    Deutsch
    Primarily Uses:
    RMMV
    Well I put yep PartySystem, yep RowFormation and SDR Hudmaker+Engine in but the hudmaker itself wasn't it...
     
    #3
    Dreadshadow likes this.
  4. Dreadshadow

    Dreadshadow Lv 38 Tech Magician Moderator

    Messages:
    3,836
    Likes Received:
    2,484
    First Language:
    Greek
    Primarily Uses:
    RMMV
    Can you please give us links to those plugins? You will help people help you out that way. :)
    Now look what happens. When it comes to plugins, issues might arise.
    I am not sure what the problem is, but here are some cases so you can just understand what might go wrong:

    Plugin vs Engine goes wrong
    : Especially after an engine update. Plugins should also adapt and some devs need time to make things work. But that's why this thread exists.
    Plugin vs Plugin goes wrong: Some plugins just don't work well along with others.

    So you can experiment trying to remove one plugin after another and see what is the issue here yourself, while people will take their time to read your thread.

    I will move this to a more appropriate category so it will draw the attention it deserves from people that can help you further.
    Ignore the blue text, it's an auto text, just keep in mind that there is a plugin support section. ;)

    I've moved this thread to Javascript/plugin support . Please be sure to post your threads in the correct forum next time. Thank you.

     
    Last edited: Feb 20, 2019
    #4
    caethyril likes this.
  5. caethyril

    caethyril ^_^ Veteran

    Messages:
    1,183
    Likes Received:
    731
    Location:
    UK
    First Language:
    English
    Primarily Uses:
    RMMV
    It can be caused by lots of things...other than outdated plugins, it can be due to an incorrect data type, e.g. text when a number is expected. Maybe you've made a mistake in a formula for a plugin parameter (I've done that many times). :kaoswt:

    Like Dreadshadow suggests, try temporarily turning off your plugins in the Plugin Manager (shift-click to select multiple plugins, right-click > Turn Off) to see if that fixes it. :)
     
    #5
    Dreadshadow likes this.
  6. Dreadshadow

    Dreadshadow Lv 38 Tech Magician Moderator

    Messages:
    3,836
    Likes Received:
    2,484
    First Language:
    Greek
    Primarily Uses:
    RMMV
    Nice catch! This can also be the case.
     
    #6
  7. KiraNet

    KiraNet Engel der Dunkelheit Member

    Messages:
    28
    Likes Received:
    2
    First Language:
    Deutsch
    Primarily Uses:
    RMMV
    Thanks ^^ I'll put out the hud maker I can't really work with it anyway so that's more simple to take this out.
     
    #7
  8. Dreadshadow

    Dreadshadow Lv 38 Tech Magician Moderator

    Messages:
    3,836
    Likes Received:
    2,484
    First Language:
    Greek
    Primarily Uses:
    RMMV
    Okay but does this solve your issue? Are you ok with not using that plugin?
     
    #8
  9. KiraNet

    KiraNet Engel der Dunkelheit Member

    Messages:
    28
    Likes Received:
    2
    First Language:
    Deutsch
    Primarily Uses:
    RMMV
    It did solve it but I wasn't able to work with it correctly so it's okay to take it out I need 6 members much more..
     
    #9
    Dreadshadow likes this.
  10. Dreadshadow

    Dreadshadow Lv 38 Tech Magician Moderator

    Messages:
    3,836
    Likes Received:
    2,484
    First Language:
    Greek
    Primarily Uses:
    RMMV
    I will leave the thread open in case someone can come up with a solution that includes all the plugins. Cheers.
     
    #10
  11. Aloe Guvner

    Aloe Guvner Walrus Veteran

    Messages:
    1,600
    Likes Received:
    1,006
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    RMMV
    Based on the error message, that function received a float parameter (i.e. number with decimals) that can't be expressed finitely. Due to how floating point numbers are stored in a computer, some can be stored finitely (multiples of powers of 2) and the rest cannot.

    That's why, for example, the following behavior is strange but true:
    Code:
    .1 + .2 === .3  // FALSE
    .25 + .25 === .5 // TRUE
    Anyways, the error is coming from the createLinearGradient function. Without the full error message it's hard to tell (press F8 during playtest to open the console for the full error message), but I believe PIXI calls this when MV is making a "gauge". This is consistent with how OP found that disabling a HUD plugin got rid of the error, but likely the issue is not with the plugin itself but with the configuration & data set in that plugin.
     
    #11

Share This Page