reyzor1991 / foundry-vtt-pf2e-reaction

Module for the foundry vtt pf2e system
Apache License 2.0
5 stars 4 forks source link

The Combat does not exist in combats #4

Closed slowcar closed 1 year ago

slowcar commented 1 year ago

After some debugging i found that the reaction checker module (0.1.9) causes an error when i end a combat.

The console output: `Foundry VTT | Deleted Combat with id [yrxw0QvOAOrqfwa7]

2foundry.js:59187 The Combat yrxw0QvOAOrqfwa7 does not exist in combats fetch @ foundry.js:59187 notify @ foundry.js:59114 error @ foundry.js:59150 _handleError @ foundry.js:2915 (anonymous) @ foundry.js:2897 value @ socket.js:309 value @ socket.js:239 x.emit @ index.mjs:136 value @ manager.js:200 x.emit @ index.mjs:136 value @ index.js:119 value @ manager.js:192 x.emit @ index.mjs:136 value @ socket.js:323 x.emit @ index.mjs:136 value @ transport.js:104 value @ transport.js:97 ws.onmessage @ websocket.js:79

2commons.js:6251 Uncaught (in promise) Error: The Combat yrxw0QvOAOrqfwa7 does not exist in combats at Function.get (/C:/Program%20Files/Foundry%20Virtual%20Tabletop/resources/app/dist/database/backend/server-document.mjs:1) at async ServerDatabaseBackend._getParent (/C:/Program%20Files/Foundry%20Virtual%20Tabletop/resources/app/dist/database/backend/server-backend.mjs:1) at async ServerDatabaseBackend.update (/C:/Program%20Files/Foundry%20Virtual%20Tabletop/resources/app/common/abstract/backend.mjs:151) at async Semaphore._try (/C:/Program%20Files/Foundry%20Virtual%20Tabletop/resources/app/common/utils/semaphore.mjs:101)`

It happens if i deactivate all modules and have only reaction checker active. It is not mentioned in the stacktrace, but i disabled and re-enabled all my modules step by step to find it.

reyzor1991 commented 1 year ago

Fixed 0.1.10