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.

NonconformingDrawingPrimitiveDefinition when trying to draw text on Linux

See original GitHub issue

Hello,

I’ve been trying to port my code that runs perfectly well on Windows to Linux (Ubuntu 16.04) but I keep being blocked by errors when trying to draw text. After setting FONTCONFIG_PATH with export FONTCONFIG_PATH=/usr/share/fonts I managed to get rid of a Fontconfig error: Cannot load default config file error but now I’m stuck with the following error

ImageMagick.MagickDrawErrorException: NonconformingDrawingPrimitiveDefinition `text' @ error/draw.c/DrawImage/4287
   at ImageMagick.MagickExceptionHelper.Check(IntPtr exception)
   at ImageMagick.DrawingWand.NativeDrawingWand.Render()
   at ImageMagick.MagickImage.Draw(IEnumerable`1 drawables)
   at ImageMagick.Drawables.Draw(IMagickImage image)
   at DiscordBot.Services.UserService.<GenerateProfileCard>d__41.MoveNext() in /home/discordbot/Services/UserService.cs:line 421

I tried everything I could think of, published with linux-x64 like talked about here #215, manually built a version of fontconfig, but nothing seems to work.

Thanks in advance if you have any idea how to fix this issue !

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
dlemstracommented, Dec 5, 2019

The link has been fixed and I am happy to hear that you figured out how to resolve this. And thanks for adding the explanation for future visitors.

3reactions
dlemstracommented, Dec 5, 2019

Will update the link to that file later tonight. With the current build I now do this: https://github.com/dlemstra/Magick.NET/blob/cf5c133f92818f0dabe63397db08a23fe6275b9c/build/linux/install.dependencies.sh.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I deal with non-conforming drawing primitive ...
This script works fine if the text in the file does not have spacing in it. Spacing is an issue, e.g. when the...
Read more >
Issues
Hello, I am using php 7 and nginx in Ubuntu. I am getting such an error. non-conforming drawing primitive definition `text' @ error/draw.c/ ......
Read more >
Non-conforming drawing primitive definition error
I am sure that image files are there in directories in the command line. I just fail to see how I should be...
Read more >
Adding multiple text lines with 'convert'
I'm trying to place multiple lines of text on an image, but the following produces the following error: convert convert: Non-conforming drawing ...
Read more >
How to convert the svg outcome to png?
convert : non-conforming drawing primitive definition `,' @ error/draw.c/RenderMVGContent/4430. and it is the png file. enter image description ...
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