Error when annotation is enabled
See original GitHub issueIssue 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 (<anonymous>)
at Object.<anonymous> (/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 (<anonymous>)
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
- Running in Docker on QNAP TS-451+
- Running the latest release 3.0.0
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
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
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.
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
latest
build yet. I’m glad you hit it though, I thought I was the only one!Would you mind testing the fix to see if it resolves the issue? Change your docker-compose.yaml to point to
danecreekphotography/node-deepstackai-trigger:issue260
instead ofdanecreekphotography/node-deepstackai-trigger:latest
then rundocker-compose up
. That should fix it.