question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when annotation is enabled

See original GitHub issue

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 (<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:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
r3dsouzacommented, Jun 21, 2020

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.

1reaction
neilennscommented, Jun 21, 2020

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 of danecreekphotography/node-deepstackai-trigger:latest then run docker-compose up. That should fix it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Annotations cannot be enabled error occurs when installing ...
This looks like a legit bug to me. As soon as the Annotations class is available, the annotations system defaults to enabled. But,...
Read more >
Maven Error " annotations are not supported....." - Stack Overflow
You are using some annotated code in your java, but compiling in your ide is using source java 1.3 by passing an additional...
Read more >
Release annotations not working anymore
on the top, then click on "Edit Release" --> Tasks --> Right click on "Release Annotation" and select "Disable selected task(s)", then click...
Read more >
Error when accessing submission with Annotations tool turned ...
Error when accessing submission with Annotations tool turned on. In Brightspace Learning Environment (LE), as an instructor, when you attempt to access an ......
Read more >
Configure annotation processors | IntelliJ IDEA Documentation
Select the desired annotation profile. Select Enable annotation processing and configure the following options: Obtain processors from project ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found