Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Screen freezes after delete targeted token #23

Open
devnagui opened this issue Nov 29, 2020 · 1 comment
Open

[Bug] Screen freezes after delete targeted token #23

devnagui opened this issue Nov 29, 2020 · 1 comment

Comments

@devnagui
Copy link

Steps to reproduce:

  1. Target some token
    image

  2. Delete targeted token

image

Stacktrace:
Graphics.ts:934 Uncaught (in promise) TypeError: Cannot read property 'clear' of null
at r.clear (Graphics.ts:934)
at controlTokenEventHandler (target-enhancements.js:436)
r.clear @ Graphics.ts:934
controlTokenEventHandler @ target-enhancements.js:436
async function (async)
controlTokenEventHandler @ target-enhancements.js:408
_call @ foundry.js:2496
callAll @ foundry.js:2456
release @ foundry.js:11616
_onDelete @ foundry.js:11545
_onDelete @ foundry.js:45027
_onDeleteEmbeddedEntity @ foundry.js:34169
(anonymous) @ foundry.js:30073
(anonymous) @ target-enhancements.js:25
Array.partition @ target-enhancements.js:24
_handleDeleteEmbeddedEntity @ foundry.js:30071
_handleDeleteEmbeddedEntity @ foundry.js:34220
deleteEmbeddedEntity @ foundry.js:30048
async function (async)
deleteEmbeddedEntity @ foundry.js:30038
deleteMany @ foundry.js:12419
_onDeleteKey @ foundry.js:12735
_onDelete @ foundry.js:3233
_handleKeys @ foundry.js:2807
_onKeyDown @ foundry.js:2760
DisplayObject.ts:673 Uncaught TypeError: Cannot read property 'scale' of null
at e.get (DisplayObject.ts:673)
at t.fn (TargetIndicator.js:233)
at t.emit (TickerListener.ts:109)
at e.update (Ticker.ts:505)
at _tick (Ticker.ts:189)

@nationwide13
Copy link

Wrote a quick PR to fix this issue. Not the most familiar with Foundry/PixiJS, so it might not be the most optimal solution. #28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants