annotorious / annotorious-v1

Project has moved to http://github.com/annotorious/annotorious
https://annotorious.com
MIT License
593 stars 142 forks source link

Cannot read property 'type' of undefined #184

Open ghost opened 7 years ago

ghost commented 7 years ago

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 commented 7 years ago

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 commented 6 years ago

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

headkit commented 6 years ago

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

headkit commented 6 years ago

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 commented 6 years ago

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

huaxiachenli commented 5 years ago

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