mclemente / about-face

FoundryVTT Module to rotate tokens on move
Other
7 stars 8 forks source link

[BUG] V11 Errors when Disable Animations set to "When Mirroring or rotating" #76

Closed GambetTV closed 1 year ago

GambetTV commented 1 year ago

I get the following error immediately after changing the settings to Disable Animations to "When Mirroring or Rotating."

Below that are two errors, the first red, the second yellow, whenever I rotate a token. And I should mention that even though the module is set to disable animations, the animations continue on.

foundry.js:6541 LibWrapperPackageError: lib-wrapper. Error detected in module About Face.

This is *not* a libWrapper bug.

Find information about this module here: https://github.com/mclemente/about-face

Ask the community for support:
- FoundryVTT Discord's #modules-troubleshooting channel: https://discord.gg/foundryvtt
- FoundryVTT Reddit: https://www.reddit.com/r/FoundryVTT

== Technical Details:
Detected by libWrapper.
Package ID= about-face
Error= Can't wrap 'CanvasAnimation._animateFrame', target does not exist or could not be found.

[Detected 2 packages: lib-wrapper, about-face]
    at new 🎁constructor (libWrapper-wrapper.js:111:11)
    at libWrapper-api.js:82:18
    at pe (libWrapper-api.js:155:9)
    at 🎁register [as register] (libWrapper-api.js:525:14)
    at AboutFace.toggleAnimateFrame (logic.js:24:25)
    at onChange (settings.js:232:69)
    at Setting._onUpdate (foundry.js:23849:67)
    at ClientDatabaseBackend.callback (foundry.js:13624:11)
    at foundry.js:13598:43
    at Array.map (<anonymous>)
    at #handleUpdateDocuments (foundry.js:13598:33)

And then I get the following errors when rotating the token:

TypeError: Error thrown in hooked function '' for hook 'updateToken'. Cannot read properties of undefined (reading 'hideIndicatorOnDead')
[Detected 1 package: about-face]
    at drawAboutFaceIndicator (logic.js:155:21)
    at Object.fn (about-face.js:65:70)
    at #call (foundry.js:730:20)
    at Hooks.callAll (foundry.js:687:17)
    at ClientDatabaseBackend.callback (foundry.js:13625:13)
    at foundry.js:13598:43
    at Array.map (<anonymous>)
    at #handleUpdateDocuments (foundry.js:13598:33)
    at async TokenDocument5e.updateDocuments (commons.js:7871:23)
    at async TokenLayer.moveMany (foundry.js:34918:5)
Error: You are accessing ActiveEffect5e#label which has been migrated to ActiveEffect5e#name
Deprecated since Version 11
Backwards-compatible support will be removed in Version 13
    at logCompatibilityWarning (commons.js:1993:19)
    at ActiveEffect5e._logDataFieldMigration (commons.js:8403:14)
    at ActiveEffect5e.get (commons.js:8892:28)
    at effectMappingHooks.js:722:91
    at EmbeddedCollection.forEach (commons.js:4124:9)
    at getEffectsFromActor (effectMappingHooks.js:721:27)
    at getTokenEffects (effectMappingHooks.js:665:17)
    at drawOverlays (overlay.js:11:26)
    at Object.fn (overlayHooks.js:21:23)
    at #call (foundry.js:730:20)
    at Hooks.callAll (foundry.js:687:17)
    at ClientDatabaseBackend.callback (foundry.js:13625:13)
    at foundry.js:13598:43
    at Array.map (<anonymous>)
    at #handleUpdateDocuments (foundry.js:13598:33)
    at async TokenDocument5e.updateDocuments (commons.js:7871:23)
    at async TokenLayer.moveMany (foundry.js:34918:5)
logCompatibilityWarning @ commons.js:2004
_logDataFieldMigration @ commons.js:8403
get @ commons.js:8892
(anonymous) @ effectMappingHooks.js:722
forEach @ commons.js:4124
getEffectsFromActor @ effectMappingHooks.js:721
getTokenEffects @ effectMappingHooks.js:665
drawOverlays @ overlay.js:11
(anonymous) @ overlayHooks.js:21
#call @ foundry.js:730
callAll @ foundry.js:687
callback @ foundry.js:13625
(anonymous) @ foundry.js:13598
#handleUpdateDocuments @ foundry.js:13598
await in #handleUpdateDocuments (async)
_updateDocuments @ foundry.js:13348
await in _updateDocuments (async)
update @ commons.js:8547
await in update (async)
updateDocuments @ commons.js:7871
updateEmbeddedDocuments @ commons.js:8103
moveMany @ foundry.js:34918
_handleMovement @ foundry.js:1961
(anonymous) @ foundry.js:2080
setTimeout (async)
_onPan @ foundry.js:2080
onDown @ foundry.js:1687
_executeKeybind @ foundry.js:2500
_processKeyboardContext @ foundry.js:2541
_handleKeyboardEvent @ foundry.js:2599
(anonymous) @ foundry.js:2225