Skip to content
This repository has been archived by the owner on Apr 2, 2023. It is now read-only.

Cannot read property 'type' of undefined #184

Open
ghost opened this issue Jul 11, 2017 · 6 comments
Open

Cannot read property 'type' of undefined #184

ghost opened this issue Jul 11, 2017 · 6 comments

Comments

@ghost
Copy link

ghost commented Jul 11, 2017

Hi all,

I've incorporated Annotorious into my own application in which images are constantly being rotated. Each image is made annotatable using anno.makeAnnotatable and I save any annotations in my own data storage. I am running into a problem whenever I try to delete or edit annotations. Every time I do so, I receive the following error:

Uncaught TypeError: Cannot read property 'type' of undefined
    at http://localhost:45000/js/annotorious.min.js:214:100
    at Array.forEach (native)
    at C (http://localhost:45000/js/annotorious.min.js:5:1049)
    at lf.s.mb (http://localhost:45000/js/annotorious.min.js:214:36)
    at nf (http://localhost:45000/js/annotorious.min.js:213:24)
    at HTMLCanvasElement.<anonymous> (http://localhost:45000/js/annotorious.min.js:210:358)
    at vc.s.handleEvent (http://localhost:45000/js/annotorious.min.js:72:699)
    at Fc (http://localhost:45000/js/annotorious.min.js:77:243)
    at HTMLCanvasElement.Ac (http://localhost:45000/js/annotorious.min.js:79:246)
    at HTMLCanvasElement.<anonymous> (http://localhost:45000/js/annotorious.min.js:73:349)

Does anyone have any ideas what may be causing this?

@ghost
Copy link
Author

ghost commented Jul 19, 2017

Any help on this? Kind of frustrating to not have any response after 8 days with an issue that seems to be a bug.

@headkit
Copy link

headkit commented Sep 27, 2017

It happens when you have two keypoints in the exact same position.

@headkit
Copy link

headkit commented Sep 27, 2017

Or something else... I have the same issue right now. Any news here? Thnx!

@headkit
Copy link

headkit commented Sep 27, 2017

Same error but it is thrown when I create a new annotation and after that when I move the mouse around the annotation-area (onMouseMove). When I leave the area the new annotation is gone.

@headkit
Copy link

headkit commented Sep 29, 2017

solved my problem. in my case I added attributes to the geometry-object which was a bad idea...

@huaxiachenli
Copy link

I have the same issue right now. Any news here? Thnx!

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

No branches or pull requests

2 participants