Author Topic: linux version mono-alpha16-64bit problem with Text & libcambam64.so  (Read 40335 times)

Offline jamby

  • Ewok
  • *
  • Posts: 35
    • View Profile
Hi

  I have Centos7 up to date running CamBam alpha16 64bit and if I start it up and select the text icon at the top it closes.  There is a message in /var/log/messages "System.DllNotFoundException: /home/jamby/opt/CamBam1.0a16/libcambam64.so"
  If I run the Plugin "Arc Text"  a save current file window opens.  By selecting cancel and then when selecting the text icon at the top I get the same window asking about closing the file.  But on the second attempt to select the text icon at the top a window opens that allows to type in text but no fonts can be selected.  But hitting okay in that window will cause the save current file window again.
  I have tried launching from the command line in the directory where CamBam is and have executed the LD_LIBRARY_PATH and export commands from the command line and checked with the "env" command to see that its there.  I have edited both the  CamBam.CAD.dll.config & CamBam.exe.config with the hard path to CamBam.  Using /home/jamby/opt/CamBam1.0a16/libcambam64.so and  ~/opt/CamBam1.0a16/libcambam64.so and   ./libcambam64.so

Mono JIT compiler version 4.6.2 (Stable 4.6.2.16/ac9e222 Mon Jul 31 05:33:23 UTC 2017)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
   TLS:           __thread
   SIGSEGV:       altstack
   Notifications: epoll
   Architecture:  amd64
   Disabled:      none
   Misc:          softdebug
   LLVM:          supported, not enabled.
   GC:            sgen

CamBam plus [1.0] Rel 16 Linux
Copyright © 2018 HexRay Ltd

CamBam.CAD : 1.0.6753.24057
CamBam : 1.0.6753.24059
Build Date : 6/28/2018 2:21:54 PM
Framework Version : 4.0.30319.42000

uname -a  Linux tri 3.10.0-957.5.1.el7.x86_64 #1 SMP Fri Feb 1 14:54:57 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

ls -al -rwxr-xr-x.  1 jamby jamby   47904 Jun 28  2018 libcambam64.so


Any help with this problem is welcome
Thanks
Jim

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7589
    • View Profile
    • Cambam V1.0 French Doc
Re: linux version mono-alpha16-64bit problem with Text & libcambam64.so
« Reply #1 on: March 08, 2019, 03:13:52 am »
Hello

maybe usable info here ? (4)

http://www.cambam.co.uk/forum/index.php?topic=4980.0

++
David

Offline jamby

  • Ewok
  • *
  • Posts: 35
    • View Profile
Re: linux version mono-alpha16-64bit problem with Text & libcambam64.so
« Reply #2 on: March 08, 2019, 15:45:05 pm »
David

   I learned a bit about strace from that link.  The only answers I got were the same that appeared in /var/log/messages and in the terminal when cambam is started with  "mono cambam.exe".  That is whatever is in the CamBam.CAD.dll.config file.

  This time I changed to a full path   "07:37:57 wait4(-1, System.DllNotFoundException: /home/jamby/opt/CamBam1.0a16/libcambam64.so"

Thanks
Jim

Offline jamby

  • Ewok
  • *
  • Posts: 35
    • View Profile
Re: linux version mono-alpha16-64bit problem with Text & libcambam64.so
« Reply #3 on: March 08, 2019, 16:20:02 pm »
I got into this rabbet hole because I saw a add-on for V-engrave with CamBam and wanted to try it out.  I usually bring in dxf files from qcad as polylines and create g-code files with no problems.  So I have been using CamBam for three years and never before encountered this problem. 
I've been with Linux for fifteen years now and never had so much fun.

Jim

Trying to execute the libcambam64.so file from the command line in the cambam directory causes a "Segmentation fault (core dumped)". 

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5332
  • Made in England
    • View Profile
Re: linux version mono-alpha16-64bit problem with Text & libcambam64.so
« Reply #4 on: March 08, 2019, 19:30:25 pm »
I got into this rabbet hole because I saw a add-on for V-engrave with CamBam and wanted to try it out.
JIm

Do you mean, you installed the V-engrave plugin ?
OR
did you install an "add-on" for the already installed V-engrave plugin ?

If it was the first option, have you tried deleting the plugin then restart CamBam ?
If it was the second option, what was the add-on ? please provide a link to it.

The libcambam64.so file is not meant to be run as an executable.
Filmed in Supermarionation

Offline Dragonfly

  • CNC Jedi
  • *****
  • Posts: 2680
    • View Profile
Re: linux version mono-alpha16-64bit problem with Text & libcambam64.so
« Reply #5 on: March 08, 2019, 20:22:16 pm »
My CamBam installation resides directly in my home directory - i.e. /home/ivan/CamBam1.0
There is also a configuration foder -> ./config/CamBam Plus 1.0
Note that <.config> starts with a dot and is a "hidden" directory not normally displayed in the file browser except showing hidden directories is enabled. Usually in the 'View' menu.

for running CB I use the following script named cambam.sh
Code: [Select]
#!/bin/bash
cd ~/CamBam1.0
LD_LIBRARY_PATH="$(pwd)"
export LD_LIBRARY_PATH
mono --verify-all CamBam.exe
#mono --debug CamBam.exe
IMHO Mono cannot find the required libraries - the path to them is given by LD_LIBRARY_PATH variable which is exported to the OS by the script.

You may try to run from terminal with the --verify- all option for Mono. Or with --debug too.

Offline jamby

  • Ewok
  • *
  • Posts: 35
    • View Profile
Re: linux version mono-alpha16-64bit problem with Text & libcambam64.so
« Reply #6 on: March 08, 2019, 20:33:27 pm »
EddyCurrent

Do you mean, you installed the V-engrave plugin ?  Yes

If it was the first option, have you tried deleting the plugin then restart CamBam ?  No
But I will try it.   Okay I tried it and CamBam still closes when I select the  "T" icon for text.

Thanks
Jim


Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5332
  • Made in England
    • View Profile
Re: linux version mono-alpha16-64bit problem with Text & libcambam64.so
« Reply #7 on: March 08, 2019, 20:42:00 pm »
From the link provided by David earlier,

But I see you may have tried this already, BUT where it says 0.9.8 here you should use 1.0

4. Running CamBam with a command like "mono ~/Cambam \0.9.8/Cambam.exe" from anywhere except "~/Cambam \0.9.8/" results in the Text option failing and crashing CamBam. This is because the installation has libcambam64.so in the install directory where it can not be found at runtime unless this is also the current working directory.  I used 'strace' to find where mono/cambam was looking for the shared library file and it is trying to find it in CamBam0.9.8/lib./  (note it is "lib."  not just "lib").  I created this sub directory and copied libcambam64.so to it which solved the problem  and Cambam nor runs properly irrespective of the current working directory when CamBam is started.
« Last Edit: March 08, 2019, 20:44:56 pm by EddyCurrent »
Filmed in Supermarionation

Offline jamby

  • Ewok
  • *
  • Posts: 35
    • View Profile
Re: linux version mono-alpha16-64bit problem with Text & libcambam64.so
« Reply #8 on: March 08, 2019, 20:47:27 pm »
Dragonfly

  I am using the "cambam.sh" in the directory where CamBam1.0 alpha 16 resides.  I have used mono CamBam.exe from the command line there,  also another script with options to start CamBam with a .cb file to load on the command line.

  I have used "env" to listed the LD_LIBRARY variable to be sure it is referring to my CamBam directory.

  I have also used both the ~/opt/CamBam1.0a16 and /home/jamby/opt/CamBam1.0a16 in both of the *.conf files in that directory.

  But for some reason CamBam reports it can't find the libcambam64.so    yes it does exist.  I've also placed that file in my /usr/local/sbin  with out it working.

Thanks
Jim

I hate to mention it but I have loaded up ubuntu 18 lts and installed cambam 12 which works fine with the text button...
loaded the vengrave plugin and that worked...  but somewhat limited by my knowledge of it.

Offline jamby

  • Ewok
  • *
  • Posts: 35
    • View Profile
Re: linux version mono-alpha16-64bit problem with Text & libcambam64.so
« Reply #9 on: March 08, 2019, 20:55:55 pm »
EddyCurrent

   Yes, David posted a link to that information and while I am still confused what the  "mono ~/Cambam \0.9.8/Cambam.exe" forward slash is doing ahead of the 0.9.8   but I haven't had it work for me.

  Even when using the shell script that came with CamBam I run it from the CamBam directory.

#!/usr/bin/ksh
cd /home/jamby/opt/CamBam1.0a16
LD_LIBRARY_PATH="$(pwd)"
export LD_LIBRARY_PATH
mono CamBam.exe
# mono --debug CamBam.exe

and  env | grep LD_LIB
 LD_LIBRARY_PATH=/home/jamby/opt/CamBam1.0a16


Thanks
Jim

Offline jamby

  • Ewok
  • *
  • Posts: 35
    • View Profile
Re: linux version mono-alpha16-64bit problem with Text & libcambam64.so
« Reply #10 on: March 08, 2019, 21:31:02 pm »
Hey

   I tried running CamBam with this command
MONO_LOG_LEVEL=debug mono  CamBam.exe &>> debug.txt
System.DllNotFoundException:
and got this output around the error of the System.DllNotFoundException:
Which may mean the GLIBC_2.7 library on Centos 7 wont work since GLIBC_2.8 is required??

Mono: DllImport attempting to load: '/home/jamby/opt/CamBam1.0a16/libcambam64.so'.
Mono: DllImport error loading library '/home/jamby/opt/CamBam1.0a16/libcambam64.so': '/lib64/libc.so.6: version `GLIBC_2.18' not found (required by ./libstdc++.so.6)'.
Mono: DllImport error loading library '/home/jamby/opt/CamBam1.0a16/libcambam64.so': '/lib64/libc.so.6: version `GLIBC_2.18' not found (required by ./libstdc++.so.6)'.
Mono: DllImport error loading library '/home/jamby/opt/CamBam1.0a16/libcambam64.so': '/lib64/libc.so.6: version `GLIBC_2.18' not found (required by ./libstdc++.so.6)'.
Mono: DllImport error loading library '/home/jamby/opt/CamBam1.0a16/libcambam64.so': '/lib64/libc.so.6: version `GLIBC_2.18' not found (required by ./libstdc++.so.6)'.
Mono: DllImport unable to load library '/lib64/libc.so.6: version `GLIBC_2.18' not found (required by ./libstdc++.so.6)'.
Mono: DllImport attempting to load: '/home/jamby/opt/CamBam1.0a16/libcambam64.so'.
Mono: DllImport error loading library '/home/jamby/opt/CSystem.DllNotFoundException: /home/jamby/opt/CamBam1.0a16/libcambam64.so
  at (wrapper managed-to-native) CamBam.UI.FontFamilyPropertyEditor:u8EXC3OPXy ()
  at CamBam.UI.FontFamilyPropertyEditor.cSyX9ty8SW () [0x00016] in <c6d672bcdf4342b7af706f2121dc1869>:0
  at CamBam.UI.FontFamilyPropertyEditor.GetFamilyList () [0x00000] in <c6d672bcdf4342b7af706f2121dc1869>:0
  at CamBam.UI.MTextPropertyEditorDialog..ctor (CamBam.CAD.MText mtext) [0x00017] in <c6d672bcdf4342b7af706f2121dc1869>:0
  at (wrapper remoting-invoke-with-check) CamBam.UI.MTextPropertyEditorDialog:.ctor (CamBam.CAD.MText)


Thanks
Jim

Offline newlinuxuser

  • Droid
  • **
  • Posts: 99
    • View Profile
Re: linux version mono-alpha16-64bit problem with Text & libcambam64.so
« Reply #11 on: March 09, 2019, 00:05:00 am »
Hi Jim, I actually use ubuntu and my help about Fedora may be poor.

Reading here GLIBC_2.7 here seems to be new enough.
 
https://pkgs.org/download/libc.so.6(GLIBC_2.18)(64bit), but your system seems not recognize it.

May be installing a new version of libc.so.6 solve your problem.

Good luck,

Andrea
« Last Edit: March 09, 2019, 00:16:25 am by dh42 »

Offline jamby

  • Ewok
  • *
  • Posts: 35
    • View Profile
Re: linux version mono-alpha16-64bit problem with Text & libcambam64.so
« Reply #12 on: March 09, 2019, 05:11:34 am »
Well,  I posted to the Centos 7 forum and as I suspected there is no easy answer for the glibc conflict.  Updating glibc will break Centos and so I will use Ubuntu 18.04 LTS as a dual boot.

Thanks to all for your help
Jim

Offline Dragonfly

  • CNC Jedi
  • *****
  • Posts: 2680
    • View Profile
Re: linux version mono-alpha16-64bit problem with Text & libcambam64.so
« Reply #13 on: March 09, 2019, 16:04:53 pm »
IMHO better use a distribution with mass support and known to be working well with CamBam. There are enough problems and limitations even there as Mono is not quite the same as native Windows .NET.
I am still sitting with Ubuntu 16.04 and even rolled back Mono to version 5.12 since with newer versions there are problems with the fonts size of CB built in menus and the user interface becomes quite ugly.

Offline jamby

  • Ewok
  • *
  • Posts: 35
    • View Profile
Re: linux version mono-alpha16-64bit problem with Text & libcambam64.so
« Reply #14 on: March 09, 2019, 21:24:55 pm »
Dragonfly

  I've been using CamBam on Centos for the last 3 years with no real problems.  This is the first time I've tried to create text in it since I normally create .dxf files in Qcad and any text I bring over is as polylines.  Now that I have a itch for vengrave I will be using my Ubuntu boot for text.

  Here's Ubuntu system

Distributor ID: Ubuntu
Description:    Ubuntu 18.04.2 LTS
Release:        18.04
Codename:       bionic

CamBam plus [1.0] Rel 12 Linux
Copyright © 2017 HexRay Ltd
CamBam.CAD : 1.0.6223.39436
CamBam : 1.0.6223.39437
Build Date : 1/14/2017 9:54:32 PM
Framework Version : 4.0.30319.4200

Mono JIT compiler version 5.10.1.20

V-engrave plugin B0012

Jim