Calling GetGraphic restarts the Linux container #426
Unanswered
RonaldRijsdorp
asked this question in
Q&A
Replies: 1 comment 2 replies
-
In my issue description the coding line that caused the issue was replaced by an embedded image link when i saved the issue. Coding was an HTML string with an img that and a the GetGraphic call : qrCode.GetGraphic(20) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The following code runs fine in on my own windows laptop (application nor deployed in a container). When i deploy the application in a linux docker container the container restarts after calling the GetGraphic method:
using var qrGenerator = new QRCodeGenerator();
var qrCodeData = qrGenerator.CreateQrCode($"{url}?token={token}", QRCodeGenerator.ECCLevel.Q);
using var qrCode = new Base64QRCode(qrCodeData);
string qrCodeHtml = $"";
In the container i added libgdiplus and libc6-dev
RUN apt-get install -y apt-utils libgdiplus libc6-dev
Beta Was this translation helpful? Give feedback.
All reactions