AppImage File Crashes on Linux Mint v22

AppImage File Crashes on Linux Mint v22 - I am using Linux Mint v22 and when I attempt to run the ".AppImage" file, it crashes? - Messages

#1 Posted: 12/4/2024 8:11:39 AM
Keith

Keith

1 likes in 3 posts.

Group: User

I am using Linux Mint v22 and when I attempt to run the ".AppImage" file, it crashes with the following errors:
Quote


Unhandled Exception:
System.TypeInitializationException: The type initializer for 'System.Windows.Forms.XplatUI' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Drawing.GDIPlus' threw an exception. ---> System.DllNotFoundException: libgdiplus.so.0 assembly: type: membernull)
at (wrapper managed-to-native) System.Drawing.GDIPlus.GdiplusStartup(ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
at System.Drawing.GDIPlus..cctor () [0x000d4] in <728fbd68fe594062895e1f819791e76a>:0
--- End of inner exception stack trace ---
at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
at System.Drawing.Graphics.FromHdcInternal (System.IntPtr hdc) [0x00000] in <728fbd68fe594062895e1f819791e76a>:0
at System.Windows.Forms.XplatUIX11.SetDisplay (System.IntPtr display_handle) [0x0007e] in :0
at System.Windows.Forms.XplatUIX11..ctor () [0x00077] in :0
at System.Windows.Forms.XplatUIX11.GetInstance () [0x0001c] in :0
at System.Windows.Forms.XplatUI..cctor () [0x000e3] in :0
--- End of inner exception stack trace ---
at System.Windows.Forms.Application.EnableVisualStyles () [0x00006] in :0
at .. (System.String[] ) [0x0002d] in <868b174b35bf46d7860f868d305a3a08>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'System.Windows.Forms.XplatUI' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Drawing.GDIPlus' threw an exception. ---> System.DllNotFoundException: libgdiplus.so.0 assembly: type: membernull)
at (wrapper managed-to-native) System.Drawing.GDIPlus.GdiplusStartup(ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
at System.Drawing.GDIPlus..cctor () [0x000d4] in <728fbd68fe594062895e1f819791e76a>:0
--- End of inner exception stack trace ---
at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
at System.Drawing.Graphics.FromHdcInternal (System.IntPtr hdc) [0x00000] in <728fbd68fe594062895e1f819791e76a>:0
at System.Windows.Forms.XplatUIX11.SetDisplay (System.IntPtr display_handle) [0x0007e] in :0
at System.Windows.Forms.XplatUIX11..ctor () [0x00077] in :0
at System.Windows.Forms.XplatUIX11.GetInstance () [0x0001c] in :0
at System.Windows.Forms.XplatUI..cctor () [0x000e3] in :0
--- End of inner exception stack trace ---
at System.Windows.Forms.Application.EnableVisualStyles () [0x00006] in :0
at .. (System.String[] ) [0x0002d] in <868b174b35bf46d7860f868d305a3a08>:0
Restoring environment...

1 users liked this post
TopUser2000 12/13/2024 6:44:00 PM
#2 Posted: 12/13/2024 6:46:00 PM
TopUser2000

TopUser2000

0 likes in 28 posts.

Group: User

Wrote

I am using Linux Mint v22 and when I attempt to run the ".AppImage" file, it crashes with the following errors:



I have the same problem on LM22 and sent this report to the developer many weeks ago but I haven't got any answer
#3 Posted: 12/14/2024 1:22:07 PM
Keith

Keith

1 likes in 3 posts.

Group: User

Misery loves Company...
#4 Posted: 12/14/2024 7:56:54 PM
overlord

overlord

554 likes in 1333 posts.

Group: Moderator

This happens because libgdiplus in appimage has missing symlinks.
I added and recompiled appimage with libgdiplus symlinks added.
Now it works. I don't know why Andrev didn't add those links, who knows?
Download appimage linked below, I have tried with linuxmint_22 live iso.

Regards

SMathStudioDesktop.1.2.9038-x86_64-linuxmint_22.glibc2.35.AppImage.tar.gz (11 MiB) downloaded 110 time(s).
1 users liked this post
TopUser2000 12/16/2024 1:54:00 AM
#5 Posted: 12/15/2024 2:15:23 PM
Keith

Keith

1 likes in 3 posts.

Group: User

That works great... Thanks a lot!
#6 Posted: 12/16/2024 2:18:17 AM
TopUser2000

TopUser2000

0 likes in 28 posts.

Group: User

Wrote

I have tried with linuxmint_22 live iso.



Thanks so much. Now it works.
Does the sMath author have any activity? No respond of email request or forum topic.
#7 Posted: 12/21/2024 6:49:02 PM
Andrey Ivashov

Andrey Ivashov

2270 likes in 3734 posts.

Group: Super Administrator

Wrote

This happens because libgdiplus in appimage has missing symlinks.
I added and recompiled appimage with libgdiplus symlinks added.
Now it works. I don't know why Andrev didn't add those links, who knows?
Download appimage linked below, I have tried with linuxmint_22 live iso.

Regards

SMathStudioDesktop.1.2.9038-x86_64-linuxmint_22.glibc2.35.AppImage.tar.gz (11 MiB) downloaded 110 time(s).


Hello.

Please, could you provide a script to create this appimage? We can integrate it into our build process and provide Mint v22 appimage package in future.
Thanks in advanced!

Best regards, Andrey Ivashov.
#8 Posted: 12/24/2024 12:36:37 AM
overlord

overlord

554 likes in 1333 posts.

Group: Moderator

Wrote

Hello.

Please, could you provide a script to create this appimage? We can integrate it into our build process and provide Mint v22 appimage package in future.
Thanks in advanced!

Best regards, Andrey Ivashov.


I did extract content of original smath appimage from terminal via --appimage-extract argument.
Added libgif.so and symlinks for libgdiplus.
Mono library replacement shouldn't be necessary, only for just in case.

2024-12-23_20-33.png

Andrey, you can take my appimage and extract its content.
Only smath file updates should be enough for new appimage creation.

Regards
#9 Posted: 12/24/2024 12:42:14 AM
overlord

overlord

554 likes in 1333 posts.

Group: Moderator

Generally libgdiplus library is strictly depended on glibc version of system.
Usually it is creating the havoc, because of it also mono libraries too.
#10 Posted: 12/24/2024 4:01:30 AM
Andrey Ivashov

Andrey Ivashov

2270 likes in 3734 posts.

Group: Super Administrator

Thank you! Checking.
#11 Posted: 12/27/2024 2:33:48 AM
TopUser2000

TopUser2000

0 likes in 28 posts.

Group: User

Wrote

I added and recompiled appimage with libgdiplus symlinks added.



Could you fix the latest appImage?
#12 Posted: 12/27/2024 2:52:30 AM
overlord

overlord

554 likes in 1333 posts.

Group: Moderator

Wrote

Could you fix the latest appImage?


What do you mean by fix?
The file I have uploaded should already works for linuxmint 22.
#13 Posted: 12/27/2024 2:54:23 AM
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

Wrote

Wrote

Could you fix the latest appImage?


What do you mean by fix?
The file I have uploaded should already works for linuxmint 22.



There is a new 1.3.0.9126 version
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#14 Posted: 12/27/2024 2:57:16 AM
overlord

overlord

554 likes in 1333 posts.

Group: Moderator

Wrote

There is a new 1.3 version


Really? I didn't even update my SMath.
I am going to look it, post here when it is done.

Regards
1 users liked this post
Oscar Campo 12/27/2024 6:23:00 PM
#15 Posted: 12/27/2024 11:58:03 AM
overlord

overlord

554 likes in 1333 posts.

Group: Moderator

I don't know if it is only on my pc but,
New version doesn't work on linux.
When any plugin is installed,
SMath crashes when reopened.
Going to inspect further...
#16 Posted: 12/27/2024 10:04:51 PM
overlord

overlord

554 likes in 1333 posts.

Group: Moderator

There was some missing files for /usr/lib/mono and libgdiplus.so.
This should work now, please check it and report.

Regards

SMathStudioDesktop.1_3_0_9126.Mono.x86_64.linuxmint-22.glibc2.35.AppImage.tar.gz (11 MiB) downloaded 57 time(s).
SMathStudioDesktop.1_3_0_9126.Mono.x86_64.linuxmint-22.glibc2.35.AppImage.tar.gz (11 MiB) downloaded 102 time(s).
2 users liked this post
Oscar Campo 12/27/2024 10:25:00 PM, TopUser2000 12/28/2024 1:59:00 AM
#17 Posted: 12/28/2024 1:56:55 AM
TopUser2000

TopUser2000

0 likes in 28 posts.

Group: User

Wrote

This should work now, please check it and report



it works even with XYplot plugin)
But some text can't be imaged like in the previous version
ksnip_20241227-215516.png
#18 Posted: 12/28/2024 2:15:50 AM
overlord

overlord

554 likes in 1333 posts.

Group: Moderator

This version even works with ubuntu-24.04 along linuxmint-22.
I only added export MONO_WINFORMS_XIM_STYLE=disabled before exec mono.
It prevents a stupid mono bug keeping applications crash at start.
Change is applied to smath_launcher in appimage.

For the lacking of button texts, it is probably mono error.
Possibly I can't do anything about that.

Regards

SMathStudioDesktop.1_3_0_9126.Mono.x86_64.linuxmint-22.glibc2.35.AppImage.tar.gz (11 MiB) downloaded 102 time(s).
1 users liked this post
Oscar Campo 12/28/2024 4:29:00 AM
  • New Posts New Posts
  • No New Posts No New Posts