Thread: Error when leaving a campaign
-
October 23rd, 2020, 11:40 #1
Error when leaving a campaign
After a player is leaving a campaign and returning to the Launcher I receive the following errors as a player:
Code:[10/23/2020 12:03:25 PM] Tabletop scene exiting. [23.10.2020 12:03:25] [<color="red">ERROR</color>] Object (DATABASENODE) deleted without cleaning up attached Lua object. [23.10.2020 12:03:25] [<color="red">ERROR</color>] Object (DATABASENODE) deleted without cleaning up attached Lua object. [23.10.2020 12:03:25] [<color="red">ERROR</color>] Object (DATABASENODE) deleted without cleaning up attached Lua object. [23.10.2020 12:03:25] [<color="red">ERROR</color>] Object (DATABASENODE) deleted without cleaning up attached Lua object. [23.10.2020 12:03:25] [<color="red">ERROR</color>] Object (DATABASENODE) deleted without cleaning up attached Lua object. [23.10.2020 12:03:25] [<color="red">ERROR</color>] Object (DATABASENODE) deleted without cleaning up attached Lua object. [23.10.2020 12:03:25] [<color="red">ERROR</color>] Object (DATABASENODE) deleted without cleaning up attached Lua object. [23.10.2020 12:03:25] [<color="red">ERROR</color>] Object (DATABASENODE) deleted without cleaning up attached Lua object. [23.10.2020 12:03:25] [<color="red">ERROR</color>] Object (DATABASENODE) deleted without cleaning up attached Lua object. [23.10.2020 12:03:25] [<color="red">ERROR</color>] Object (DATABASENODE) deleted without cleaning up attached Lua object. [23.10.2020 12:03:25] [<color="red">ERROR</color>] Object (DATABASENODE) deleted without cleaning up attached Lua object. [23.10.2020 12:03:25] [<color="red">ERROR</color>] Object (DATABASENODE) deleted without cleaning up attached Lua object. [23.10.2020 12:03:25] [<color="red">ERROR</color>] Object (DATABASENODE) deleted without cleaning up attached Lua object. [23.10.2020 12:03:25] [<color="red">ERROR</color>] Object (DATABASENODE) deleted without cleaning up attached Lua object. [23.10.2020 12:03:25] [<color="red">ERROR</color>] Object (DATABASENODE) deleted without cleaning up attached Lua object. [23.10.2020 12:03:25] [<color="red">ERROR</color>] Object (DATABASENODE) deleted without cleaning up attached Lua object. [23.10.2020 12:03:25] [<color="red">ERROR</color>] Object (DATABASENODE) deleted without cleaning up attached Lua object. [23.10.2020 12:03:25] [<color="red">ERROR</color>] Object (DATABASENODE) deleted without cleaning up attached Lua object. [23.10.2020 12:03:25] [<color="red">ERROR</color>] Object (DATABASENODE) deleted without cleaning up attached Lua object. [23.10.2020 12:03:25] [<color="red">ERROR</color>] Object (DATABASENODE) deleted without cleaning up attached Lua object. [23.10.2020 12:03:25] [<color="red">ERROR</color>] Object (DATABASENODE) deleted without cleaning up attached Lua object. [23.10.2020 12:03:25] [<color="red">ERROR</color>] Object (DATABASENODE) deleted without cleaning up attached Lua object. [23.10.2020 12:03:25] [<color="red">ERROR</color>] Object (DATABASENODE) deleted without cleaning up attached Lua object. [23.10.2020 12:03:25] [<color="red">ERROR</color>] Object (DATABASENODE) deleted without cleaning up attached Lua object. [23.10.2020 12:03:25] [<color="red">ERROR</color>] Object (DATABASENODE) deleted without cleaning up attached Lua object. [23.10.2020 12:03:25] [<color="red">ERROR</color>] Object (DATABASENODE) deleted without cleaning up attached Lua object. [23.10.2020 12:03:25] [<color="red">ERROR</color>] Object (DATABASENODE) deleted without cleaning up attached Lua object. [23.10.2020 12:03:25] [<color="red">ERROR</color>] Object (DATABASENODE) deleted without cleaning up attached Lua object. [23.10.2020 12:03:25] [<color="red">ERROR</color>] Object (DATABASENODE) deleted without cleaning up attached Lua object. [23.10.2020 12:03:25] [<color="red">ERROR</color>] Object (DATABASENODE) deleted without cleaning up attached Lua object. [23.10.2020 12:03:25] [<color="red">ERROR</color>] Object (DATABASENODE) deleted without cleaning up attached Lua object. [10/23/2020 12:03:25 PM] Launcher scene starting.
Again I am using the Dark Eye 4.1E ruleset. It did not happen with 5E.
However, I have found some posts here mentioning this problem with 5E around January this year. I just never found a solution to the problem.
-
October 23rd, 2020, 18:35 #2
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,548
I'd need the exact steps to reproduce here; and then I can clean that up.
Regards,
JPG
-
October 23rd, 2020, 19:17 #3
The exact steps are:
1. open FGU and load a campaign with the Dark Eye Ruleset
2. open a 2nd instance of FGU and join the game
3. select a character
4. leave the the game by clicking on "return to launcher" in the radial menu as the character player
5. the character player received the error messages
And now I assume that you need a campaign and the ruleset? So this error is not related to the ruleset or the campaign?
-
October 23rd, 2020, 20:16 #4
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,548
I definitely need the ruleset, in order to recreate here. Where did you download it?
Also, does this happen with a brand new campaign, or only in your campaign? If only your campaign, I need that too.
In general, exact steps are best in a brand new campaign when possible, as it defines what I need to recreate, as well as simplifying how to recreate.
Thanks,
JPG
-
November 9th, 2020, 11:23 #5
Hello Jpg,
could you give me a hint where to look for this error? I still haven't found the reason for it.
What I figured out so far:
- it happens on all campaigns of the Dark Eye ruleset
- it only happens on the player side - GM side is fine
console log showing the function calls immediately before the error:
Code:[11/9/2020 12:20:50 PM] Valpo Amado | scripts/manager_options.lua, unregisterCallback [11/9/2020 12:20:50 PM] Valpo Amado | scripts/manager_options.lua, unregisterCallback, Ende [11/9/2020 12:20:50 PM] Valpo Amado | desktop/scripts/desktop_classes_desktopdecal.lua, onClose, Ende [11/9/2020 12:20:50 PM] Valpo Amado | desktop/scripts/characterlist.lua, onClose [11/9/2020 12:20:50 PM] Valpo Amado | desktop/scripts/characterlist.lua, onClose, Ende [11/9/2020 12:20:50 PM] Valpo Amado | desktop/scripts/modifierstack_desktop_classes.lua, onClose [11/9/2020 12:20:50 PM] Valpo Amado | desktop/scripts/modifierstack.lua, registerControl [11/9/2020 12:20:50 PM] Valpo Amado | desktop/scripts/modifierstack.lua, registerControl, Ende [11/9/2020 12:20:50 PM] Valpo Amado | desktop/scripts/modifierstack_desktop_classes.lua, onClose, Ende [11/9/2020 12:20:51 PM] Tabletop scene exiting. [09.11.2020 12:20:51] [ERROR] Object (DATABASENODE) deleted without cleaning up attached Lua object. [...and plenty of more deleted DB node messages...]
-
November 9th, 2020, 12:28 #6
Moon Wizard asked "I definitely need the ruleset, in order to recreate here. Where did you download it?"
Without access to the code anything would be completely guesswork.
Does this occur if the player exits the game while the session is still running, or does it occur when there is a forced exit because the GM closed the session.Last edited by Trenloe; November 9th, 2020 at 12:31.
Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
November 9th, 2020, 15:41 #7
The ruleset has been built by a group of 4 people including me. The current version cannot be downloaded publicly yet because it is not working properly for FGU yet. I would like to fully upgrade it.
Regarding the open questions:
- all modules and extension have been deactivated - the error still occurs
- a brand new empty campaign has been created - the error still occurs
- the error occurs with a forced exit and with a voluntary one by the player exiting
so to summarize - it must be the ruleset
-
November 9th, 2020, 16:00 #8
Here's what usually causes those issues.
The clue is in the error: Object (DATABASENODE) deleted without cleaning up attached Lua object.
"attached LUA object" is usually one or more LUA functions that have been assigned to a database node event or handler. These are usually added using the relevant databasenode API call (e.g. onUpdate) or via DB.addHandler calls.
It's good practice to remove these handlers when the code scope is being closed - usually as part of the relevant onClose() function. FGC didn't indicate such errors, but FGU does now report these as unclosed handlers can cause issues under certain circumstances. In most cases this is more of a warning than an issue, especially when the client is exiting. But there may be cases during normal processing when these handlers should be cleared when the scope is being closed/deleted, and so FGU reports cases like these.
Do a search within the CoreRPG files for function onClose() to see some examples of removing handlers that were setup as part of the script scope (usually, but not always, in the scope onInit function). Your team will need to trace through the various scripts for handlers/events being set that aren't cleared when the related script scope is being removed.
Further info on events and handlers here: https://fantasygroundsunity.atlassia...g#Using-Events
EDIT: Or provide Moon Wizard the code to track doing in FGU as mentioned below.Last edited by Trenloe; November 9th, 2020 at 16:37.
Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
November 9th, 2020, 16:29 #9
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,548
Those error messages are in there specifically to capture situations where the FGU code is not performing the expected cleanup in the code. The reason why I ask for the exact code and/or steps to recreate the issue is so that I can track down the scenario where the cleanup isn't being performed, figure out why, and then fix it up so it does perform the cleanup correctly.
Regards,
JPG
-
November 14th, 2020, 08:05 #10
Thanks Trenloe and JPG for your responses - I tried the advice of Trenloe and checked all addHandlers. The amount of db node error messages remained the same in spite of adding removeHandlers to all scripts. Now I will send JPG a PM where to download the ruleset so that he can recreate the issue.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks