-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Error when annotation is enabled #284
Comments
I thought I already had a closed bug for this but I guess not. This is fixed as part of my work for #260, but hasn't made it out to the Would you mind testing the fix to see if it resolves the issue? Change your docker-compose.yaml to point to |
I came across the same issue. It only appeared once I added the I have tested with
|
This fix is now available in the |
Thanks for fixing this. I pulled the latest version and tried it again and it works perfectly! Note: in case it helps someone, because I am mapping the volume /node-deepstackai-trigger to a folder on the docker host, I received a permission denied error. In order to fix this, I added the line "user: 99:99" to my docker compose file. Please note the first 99 is the UID and the second 99 is the GID. This runs the container with the privileges of this user. |
It was driving me crazy. I'd hit it all the time during development and couldn't figure out why. Finally found a random comment on a random issue about the library from 2018 and gave it a try and... phew! |
Issue
I tried enabling annotations, however, I get the following error. Please could you let me know what I can do to make annotations work. Thanks.
Log entries
(node:1) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'stringToGlyphs' of null
at Object.t.measureText (/home/node/app/bundle.js:544:24375)
at Object.t.processTextPath (/home/node/app/bundle.js:544:23398)
at fillText (/home/node/app/bundle.js:702:199457)
at /home/node/app/bundle.js:702:190245
at Array.map ()
at Object. (/home/node/app/bundle.js:702:190152)
at /home/node/app/bundle.js:702:189268
at Object.next (/home/node/app/bundle.js:702:189373)
at o (/home/node/app/bundle.js:702:188087)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag
--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)Installation details
Docker Compose
deepstackai-trigger:
container_name: deepstackai-trigger
image: danecreekphotography/node-deepstackai-trigger:latest
hostname: deepstackai-trigger
networks:
- qnet-dhcp-eth0-3d3dab
ports:
- 4242:4242
environment:
- TZ=Europe/London
volumes:
- /share/CCTV/AI_Input:/aiinput
- /share/Containers/DeepStackAI_Trigger/config:/config
- /share/Containers/DeepStackAI_Trigger/node-deepstackai-trigger:/node-deepstackai-trigger
restart: always
The text was updated successfully, but these errors were encountered: