SMath not working in Archlinux

SMath not working in Archlinux - error making smath unable to run in archlinux - Messages

#1 Posted: 4/5/2016 3:52:07 PM
tomracing

tomracing

8 likes in 16 posts.

Group: User

Upon running the mono version in Archlinux a couple of warnings are given and followed by an argument exception.
In Ubuntu the warning about run time is also shown but the program runs as expected.

So far I've tried in Arch:
- rolling back mono versions to where smath was still working
- changing the icon png to something that (probably not the root cause)
- finding out what the GDI+ cause could be but so far that points more to the compile or the program design?

I would really like to use Smath again on my arch boxes so any help to fix this would be very welcome.

Here is the output on the terminal upon calling ./smathstudio_desktop_mono



WARNING: The runtime version supported by this application is unavailable.
Using default runtime: v4.0.30319
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: cHRM chunk does not match sRGB
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: cHRM chunk does not match sRGB
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: cHRM chunk does not match sRGB
- [AppDir] HTML Export (1.13.5890.6147)
- [AppDir] Export to image (1.9.5890.6148)
- [AppDir] Picture Region (1.10.5890.6147)
- [AppDir] Plot Region (1.9.5890.6149)
- [AppDir] SMath Studio Files Plugin (1.9.5890.6149)
- [AppDir] Special Functions (1.11.5890.6146)
- [AppDir] Text Region (1.10.5890.6148)
- [AppDir] SMath Viewer Files Plugin (1.1.5890.6150)
- [AppDir] XMCD Files Plugin (1.12.5890.6148)
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: cHRM chunk does not match sRGB
System.ArgumentException: A null reference or invalid value was found [GDI+ status: InvalidParameter]
  at System.Drawing.GDIPlus.CheckStatus (Status status) <0x40a17db0 + 0x0015f> in <filename unknown>:0 
  at System.Drawing.Image.get_Width () <0x40a3a810 + 0x0002b> in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.Drawing.Image:get_Width ()
  at .. (System.Windows.Forms.PaintEventArgs ) <0x40b90710 + 0x0020b> in <filename unknown>:0 
  at .. (System.Windows.Forms.PaintEventArgs ) <0x40b8ee70 + 0x00bf3> in <filename unknown>:0 
  at .. (System.Windows.Forms.PaintEventArgs ) <0x40b8e990 + 0x00393> in <filename unknown>:0 
  at System.Windows.Forms.Control.WmPaint (System.Windows.Forms.Message& m) <0x40b61810 + 0x00157> in <filename unknown>:0 
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) <0x40a2b910 + 0x001f7> in <filename unknown>:0 
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) <0x40a2b8e0 + 0x00024> in <filename unknown>:0 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) <0x40a2b8a0 + 0x00036> in <filename unknown>:0 
  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) <0x40a29f60 + 0x003c0> in <filename unknown>:0 
#2 Posted: 4/29/2016 3:40:23 AM
tomracing

tomracing

8 likes in 16 posts.

Group: User

So after some testing we found it was related to giflib.
Version 5.1.2-1 breaks Smath
rolling back to 5.1.1-1 Smath works as normal
giflib is a dependency of GDIplus
Terminal messages reduced to:

WARNING: The runtime version supported by this application is unavailable.
Using default runtime: v4.0.30319
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: cHRM chunk does not match sRGB
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: cHRM chunk does not match sRGB
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: cHRM chunk does not match sRGB
- [AppDir] HTML Export (1.13.5890.6147)
- [AppDir] Export to image (1.9.5890.6148)
- [AppDir] Picture Region (1.10.5890.6147)
- [AppDir] Plot Region (1.9.5890.6149)
- [AppDir] SMath Studio Files Plugin (1.9.5890.6149)
- [AppDir] Special Functions (1.11.5890.6146)
- [AppDir] Text Region (1.10.5890.6148)
- [AppDir] SMath Viewer Files Plugin (1.1.5890.6150)
- [AppDir] XMCD Files Plugin (1.12.5890.6148)
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: cHRM chunk does not match sRGB

I will try to file a bug with giflib but perhaps we can also check on this end what happens?
For now I haven't tried to see what Ubuntu uses but guessing it is still giflib 5.1.1-1
2 users liked this post
Davide Carpi 4/29/2016 4:15:00 AM, overlord 5/2/2016 3:10:00 PM
#3 Posted: 8/20/2016 5:54:23 AM
tomracing

tomracing

8 likes in 16 posts.

Group: User

giflib5.1.4-1 solved the issue.
3 users liked this post
Andrey Ivashov 8/20/2016 6:06:00 AM, Davide Carpi 8/20/2016 6:31:00 AM, Alexander O. Melnik 8/20/2016 7:59:00 AM
  • New Posts New Posts
  • No New Posts No New Posts