Skip to content
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

The type initializer for 'Gdip' threw an exception. #84

Closed
contisummer opened this issue Sep 19, 2024 · 3 comments
Closed

The type initializer for 'Gdip' threw an exception. #84

contisummer opened this issue Sep 19, 2024 · 3 comments
Assignees

Comments

@contisummer
Copy link

when I run the workflow Workflow_ImagesOverlay, there is an error:
Logs
2024-09-19 15:44:44.222 INFO - [Workflow_ImagesOverlay / 1] Workflow started - Instance Id: 37605e9e-3307-45b2-a0a5-1645da17fc14
2024-09-19 15:44:44.229 INFO - [Workflow_ImagesOverlay / 1] [FilesLoader] Loading files...
2024-09-19 15:44:44.229 INFO - [Workflow_ImagesOverlay / 1] [FilesLoader] File loaded: /opt/wexflow/WexflowTesting/ImagesOverlaySrc/image1.png
2024-09-19 15:44:44.229 INFO - [Workflow_ImagesOverlay / 1] [FilesLoader] File loaded: /opt/wexflow/WexflowTesting/ImagesOverlaySrc/image2.png
2024-09-19 15:44:44.230 INFO - [Workflow_ImagesOverlay / 1] [FilesLoader] Task finished.
2024-09-19 15:44:44.230 INFO - [Workflow_ImagesOverlay / 1] [ImagesOverlay] Overlaying images...
2024-09-19 15:44:44.233 ERROR - [Workflow_ImagesOverlay / 1] [ImagesOverlay] An error occured while overlaying images: The type initializer for 'Gdip' threw an exception.
2024-09-19 15:44:44.234 INFO - [Workflow_ImagesOverlay / 1] [ImagesOverlay] Task finished
2024-09-19 15:44:44.234 INFO - [Workflow_ImagesOverlay / 1] [FilesMover] Moving files...
2024-09-19 15:44:44.234 INFO - [Workflow_ImagesOverlay / 1] [FilesMover] Task finished.
2024-09-19 15:44:44.234 INFO - [Workflow_ImagesOverlay / 1] Workflow finished.

I run :
apt-get update
apt-get install libgdiplus -y
ln -s /usr/lib/libgdiplus.so /usr/lib/gdiplus.dll

after install libgdiplus:
it is still error;
My os ubuntu 20.04,please help me, thank you.

@contisummer
Copy link
Author

I have no idea about your idea. How to next ?

c compiler installed:
uif17693@uif17693-virtual-machine:/usr/lib$ gcc --version
gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

uif17693@uif17693-virtual-machine:/usr/lib$

aelassas added a commit that referenced this issue Sep 19, 2024
@aelassas aelassas self-assigned this Sep 19, 2024
@aelassas
Copy link
Owner

Issue fixed. I released a patch: v8.3

I replaced System.Drawing.Common by SkiaSharp.

@contisummer
Copy link
Author

yes, I run it in v8.3. It is ok. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@aelassas @contisummer and others