Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

2 Pages<12
Options
Go to last post Go to first unread
Offline overlord  
#21 Posted : 03 June 2021 20:04:18(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 564
Turkey

Was thanked: 172 time(s) in 124 post(s)
Originally Posted by: bromptonaut Go to Quoted Post
I read that post but I didn't consider that my system might be concerned. I apologize. Ubuntu 20.04 indeed complains about missing GLIBC_2.32.
Now I tried to start the appimage on Ubuntu 21.04 and got this error:
Quote:
[xcb] Too much data requested from _XRead
[xcb] This is most likely caused by a broken X extension library

Interpreting this exceeds my competences. I attach the full output from the terminal, just in case it could help.
2021-06-03_SMATH_appimage_error_Ubuntu21.04.txt (25kb) downloaded 13 time(s).




Try to run appimage with sudo. This is an ubuntu mono error.
Despite the contrary belief, ubuntu and debian suffer from bugs more than rolling distros.

Code:
sudo ./SMath_Studio-x86_64-Mono-Plugins.AppImage

Edited by user 03 June 2021 20:06:11(UTC)  | Reason: Not specified

thanks 1 user thanked overlord for this useful post.
on 04/06/2021(UTC)
Offline overlord  
#22 Posted : 03 June 2021 22:38:07(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 564
Turkey

Was thanked: 172 time(s) in 124 post(s)
Originally Posted by: gntech Go to Quoted Post
overlord said in a previous post that he will next try to create the appimage on an older system (This will make it compatible with a broader range of linux dists including Ubuntu).

Made a version with Ubuntu 16.04. It works with Ubuntu 16.04 livecd out-of-box.
I will try this file with Ubuntu 18.04 livecd, if it works I will add its links.
Unfortunately this old glibc version didn't work with my daily use voidlinux setup.
Appimage setups are same between old and new glibc except mono and glibc files.
Maybe there are some fundamental differences between distros.

I also added Liberation Mono fonts but didn't remove Courier New.
If someone open a *.sm file in linux which written under windows, there is misalignment.
It is better to have them both than not to have.



It didn't work and I think I know why.
All libraries inside appimage also have to be compiled with corresponding glibc.
Since MONO_PATH variable has to be designated, I also have to add all Mono version compiled with glibc versions.
This is cumbersome, takes time and increases file size since all libraries have to be included.
I will do this just one time and make different versions for ubuntu lts releases.
glibc-2.31 / glibc-2.27 / glibc-2.23 versions shall be released by me since this is a stable smath release.
But from now on I will only make version with glibc>=2.31. Next smath releases shall be up to you.
Files are there, someone can always --appimage-extract, replace files and recompile appimage.

Regards

Edited by user 04 June 2021 02:25:23(UTC)  | Reason: Not specified

Offline overlord  
#23 Posted : 04 June 2021 02:15:37(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 564
Turkey

Was thanked: 172 time(s) in 124 post(s)
After several try and error with three different Ubuntu LTS releases,
I compiled and used smath appimage with Live CD's of releases. Seems to work.
However, for some Ubuntu 18.04 and Ubuntu 20.04 may need to run with sudo.
Not related with appimage or smath, because of some broken libraries of ubuntu.
Even downloading smath from site, installing mono-complete and running gives same error.

Links are updated in the second post of this thread.
Enjoy

Edited by user 04 June 2021 03:46:55(UTC)  | Reason: Not specified

Offline bromptonaut  
#24 Posted : 04 June 2021 09:14:01(UTC)
bromptonaut

Rank: Newbie

Groups: Registered
Joined: 22/06/2016(UTC)
Posts: 5
Germany
Location: Bochum

Originally Posted by: gntech Go to Quoted Post
Originally Posted by: bromptonaut Go to Quoted Post
Today I came across this post since mono crashes every time I try to start smath. The appimage provided above doesn't start as well on my system.


If you are using Ubuntu 20.04 it might be a problem with the mono-libraries from the Ubuntu repos. I noticed a similiar error earlier and found a workaround by installing the latest versions directly from the Mono project website. https://www.mono-project...oad/stable/#download-lin

Quote:
sudo apt install gnupg ca-certificates
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update
sudo apt upgrade


That solved the problem for me on Ubuntu 20.04 (both with official tar.gz-release and appimage version of SMath) but I agree that an appimage with a working mono-library included would be a much better solution


Using the latest version of mono possibly is not the only thing that's relevant. I already had it installed, re-installing didn't change anything. However I just found out that I can start SMath with mono using sudo (inspired from the experience with the appimage)
Quote:
sudo ./smathstudio_desktop_mono

Apparantly the behaviour of mono changed on Ubuntu 20.04 a couple of weeks ago.

overlord, gntech, thank you for your efforts to create the appimage!
Offline gntech  
#25 Posted : 06 June 2021 00:25:13(UTC)
gntech


Rank: Member

Groups: Registered
Joined: 17/05/2021(UTC)
Posts: 19
Sweden

Was thanked: 5 time(s) in 4 post(s)
I have created my own attempt at building an AppImage for SMath. I have used inspiration from both Overlord's work and from the OpenRA AppImage.

I have automated the build process using Github Actions and the source for the build steps is available here https://github.com/gntech/smath-appimage

The built SMath AppImage are available from the releases page https://github.com/gntech/smath-appimage/releases

Direct link to the latest AppImage -> See first post

Please try it out and let me know what you think Good

Some more information

  • Automatically built with Github Actions using an Ubuntu 18.04 Runner
  • Uses glibc 2.27 which will work on Ubuntu 18.04 and newer
  • Libraries and files are handpicked via a script
  • SMath release files and icons automatically downloaded and placed
  • Scripts for setting/resetting mono-path and launching mono executable have been borrowed from OpenRA


Pull requests are welcome ofcourse Good

Edited by user 06 June 2021 21:20:23(UTC)  | Reason: Not specified

thanks 1 user thanked gntech for this useful post.
on 06/06/2021(UTC)
Offline gntech  
#26 Posted : 06 June 2021 12:58:31(UTC)
gntech


Rank: Member

Groups: Registered
Joined: 17/05/2021(UTC)
Posts: 19
Sweden

Was thanked: 5 time(s) in 4 post(s)
I have released a new AppImage that adds two missing mono libraries (Microsoft.CSharp.dll and System.Design.dll) that are used by some plugins. I have also tested to integrate the appimage with the system menus and such using "appimaged". It works good

I have also worked on adding mime support for the SMath Studio Worksheet files so that the files will automatically be opened by the SMath appimage when double clicked. This does not quite work yet, do not know why. You can still right-click and choose SMathStudio from the "open with"-dialog.
Offline overlord  
#27 Posted : 06 June 2021 15:58:24(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 564
Turkey

Was thanked: 172 time(s) in 124 post(s)
Originally Posted by: gntech Go to Quoted Post
I have released a new AppImage that adds two missing mono libraries (Microsoft.CSharp.dll and System.Design.dll) that are used by some plugins. I have also tested to integrate the appimage with the system menus and such using "appimaged". It works good

I have also worked on adding mime support for the SMath Studio Worksheet files so that the files will automatically be opened by the SMath appimage when double clicked. This does not quite work yet, do not know why. You can still right-click and choose SMathStudio from the "open with"-dialog.

Didn't work for me, gave libmono-native.so not found error.
Although it is present on my pc, and in appimage.
Also somehow after some hours running appimage created with script,
Segmentation fault error magically started to appear.
My splitted boot partition /dev/sda1 screwed twice by this.
I had to chroot grub-install with livecd, problem fixed. Twice.
And now after 6 hours grub partition is still fine.
Don't know if it is related with your script though.
I checked and no code in you script seems to cause this.
But this never happen to me for 2 years with voidlinux.

Regards
Offline gntech  
#28 Posted : 06 June 2021 17:23:56(UTC)
gntech


Rank: Member

Groups: Registered
Joined: 17/05/2021(UTC)
Posts: 19
Sweden

Was thanked: 5 time(s) in 4 post(s)
Originally Posted by: overlord Go to Quoted Post
Didn't work for me, gave libmono-native.so not found error.
Although it is present on my pc, and in appimage.


Thanks for testing the appimage, I have not experienced that error. I have tried it on Ubuntu 18.04, 20.04 and ArchLinux.

I have installed VoidLinux on a VM and have noticed that libgdiplus.so.0 not found error.

Will do some more research
Offline overlord  
#29 Posted : 06 June 2021 18:06:15(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 564
Turkey

Was thanked: 172 time(s) in 124 post(s)
Originally Posted by: gntech Go to Quoted Post
Thanks for testing the appimage, I have not experienced that error. I have tried it on Ubuntu 18.04, 20.04 and ArchLinux.

I have installed VoidLinux on a VM and have noticed that libgdiplus.so.0 not found error.

Will do some more research

Your pre-compiled appimage wth glibc_2.27 works if it makes a different.
I have glibc_2.32 on my machine. Not a VM, I use it installed.
Offline gntech  
#30 Posted : 06 June 2021 21:19:56(UTC)
gntech


Rank: Member

Groups: Registered
Joined: 17/05/2021(UTC)
Posts: 19
Sweden

Was thanked: 5 time(s) in 4 post(s)
Originally Posted by: overlord Go to Quoted Post
Your pre-compiled appimage wth glibc_2.27 works if it makes a different.
I have glibc_2.32 on my machine. Not a VM, I use it installed.


Okay! Good to know that the pre-built package works.

I have also released a new version (PreRelease4) that adds libjpeg.so.8 which brings compatibility with Fedora 34 that do not have that library.

Users browsing this topic
2 Pages<12
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.