PDA

View Full Version : Consile error FG



Laerun
October 1st, 2023, 18:16
DnD5e Ruleset, with extensions.

Not sure what this means but...

Happened when opening a new character sheet from the character manager.

The Core Issue
[ERROR] MOUSE UPDATE: System.Exception: Input must have at least three input vertices.

This is the crux of the problem. The algorithm expects at least three vertices to perform the triangulation but is not receiving them. In the realm of geometry, a triangle is the simplest shape that can be formed in a 2D space, and it requires three vertices. Anything less, and you can't form a closed shape.

The Call Stack
The rest of the log is essentially the call stack, showing the sequence of method calls that led to the error. It starts from the TriangleNet.Mesh.TransferNodes method and goes all the way to FG.FGDesktop.Update.

What Could Be Going Wrong?
Insufficient Data: The most straightforward issue could be that the input data set for the vertices is either empty or has less than three points.

Data Transformation: Another possibility is that somewhere along the line, the data is being transformed or filtered, reducing the number of vertices to less than three.

Concurrency Issues: If this is a multi-threaded application, there might be a race condition where the data is being accessed before it's fully populated.

How to Fix It?
Check Your Input: Make sure that the data set you're passing into the TriangleNet library has at least three vertices.

Debug the Call Stack: Go through the methods listed in the call stack to see where the data might be getting lost or modified.

Concurrency Safeguards: If applicable, make sure to implement proper thread safety measures to ensure that the data is fully populated before the triangulation method is called.

Logging: Add more logging at critical points to trace the flow of data. This will help you identify exactly where things are going awry.

Trenloe
October 1st, 2023, 18:21
Searching for the error brings up this thread: https://www.fantasygrounds.com/forums/showthread.php?78655-System-Exception

Unfortunately it doesn't off a fix, but if you can reliably recreate the issue letting the devs know in that thread might help them track it down.

Laerun
October 1st, 2023, 18:24
Searching for the error brings up this thread: https://www.fantasygrounds.com/forums/showthread.php?78655-System-Exception

Unfortunately it doesn't off a fix, but if you can reliably recreate the issue letting the devs know in that thread might help them track it down.

okay.
And a few theme warnings too. (Gothic Theme)

[10/1/2023 9:41:20 AM] MEASURE: RULESETS LOAD - 7.3174616 - 5E
[10/1/2023 9:41:20 AM] [WARNING] font: Font (calendarmessage) defined with merge attribute, but asset name does not match existing asset. [SWKTHEME_GOTHIC] [graphics/graphics_fonts.xml]

[10/1/2023 9:42:18 AM] [WARNING] desktop: Anchored static width ignored for panel (desktophead)
[10/1/2023 9:42:18 AM] [WARNING] desktop: Anchored static width ignored for panel (desktophead)

[10/1/2023 10:12:11 AM] [WARNING] Frame tabs contains out-of-range values in BottomLeft.

Moon Wizard
October 1st, 2023, 20:17
If you have specific steps and/or campaign where you can reproduce reliably, that would be appreciated.
Also, are you using Live or Test version of application?

Regards,
JPG

Laerun
October 3rd, 2023, 15:18
If you have specific steps and/or campaign where you can reproduce reliably, that would be appreciated.
Also, are you using Live or Test version of application?

Regards,
JPG

I was in live. I was not able to recreate so far, it's as if there was some lag or issue between direct X and Unity. When did you guys update to the new Unity build?
It was a fairly new campaign and I did have a couple third party extensions, DnD5e ruleset.

Moon Wizard
October 3rd, 2023, 17:38
Carl made some changes to the door overlay handling in the beta Test build version specifically to handle this situation (where the various library simplified shapes in a way that caused this issue), which is also the version that moved to latest Unity engine.

It's best just to provide the logs and the steps to recreate, as additional analysis is not really needed until we can identify the root cause (and hopefully exact code line if we can recreate with steps) and so, the extra analysis is usually wasted effort until we understand that.

Regards,
JPG

Laerun
October 4th, 2023, 06:52
Carl made some changes to the door overlay handling in the beta Test build version specifically to handle this situation (where the various library simplified shapes in a way that caused this issue), which is also the version that moved to latest Unity engine.

It's best just to provide the logs and the steps to recreate, as additional analysis is not really needed until we can identify the root cause (and hopefully exact code line if we can recreate with steps) and so, the extra analysis is usually wasted effort until we understand that.

Regards,
JPG

Okay, the log is attached to my first post. All I was doing at the time of the error was opening up a new character sheet in a semi-fresh DnD5e campaign.

rhagelstrom
October 4th, 2023, 13:29
My players and I have gotten this error on multiple occasions. We got it last night again in fact. What I know is:
* I host on a Mac so I always am suspicious that may be a cause but I'm leaning it has nothing to do with it.
* I run a lot of ext but I don't think that has anything to do with it.
* I've never been able to reproduce without clients connected
* The error has occurred over multiple sessions, but same battle map
* My players and I have only received this error on two battle maps. PlayersHouse, A Deep and Creeping Darkness - Candlekeep (loaded from Ref Man). And Delphi Mansion - Keys to Golden Vault (loaded from Ref Man).
* I also don't think it has to do with mouse clicking as I've gotten the error a couple of times and I'm pretty sure I didn't click anything

I hardly ever run premade module maps. Over the past couple of years I've run 3 premade WoTC module maps. One from Tyranny of Dragons, and the other two (above), two of which have errored. The Tyranny of Dragons map, only one player has had a token on the map because they explored but the party hasn't taken the bait yet so I'm curious if I'll eventually see it there too once the party gets on the map.

Revise this a bit. I didn't see it on the Creeping Darkness outdoor map. No LoS maybe?

Moon Wizard
October 4th, 2023, 22:18
I verified with Carl that this should already be fixed in the beta Test build.

Regards,
JPG