Author Topic: PixInsight 1.06.01.0625 Keeps Crashing on Minty9 (Ubuntu based)  (Read 5318 times)

Offline Snaved

  • Newcomer
  • Posts: 8
Hi

Having an issue with PixInsight 01.06.01.0625 on Minty 9.  I have tried a number of things to try to get it up and running, but it keeps crashing on me when try to do anything within the application.  I even try to just do a Help-->About and it crashes.

The message it creates it the following...


---------------------------------------------------------------------------------------------------------
devans@devans-desktop ~/PixInsight/bin $ ./PixInsight.sh

** A previous instance of the PixInsight Core application crashed.
Reusing instance slot #1.

PixInsight Core 01.06.01.0625 (x86)
Copyright (C) 2003-2010 Pleiades Astrophoto

terminate called after throwing an instance of 'pcl::EUnixSegmentationViolation'
./PixInsight.sh: line 9:  8976 Aborted                 $dirname/$appname $*
devans@devans-desktop ~/PixInsight/bin $
------------------------------------------------------------------------------------------------------------------


This is from using the following script...


-------------------------------------------------------------------------------------------------------------------

#!/bin/bash
appname=`basename $0 | sed s,\.sh$,,`
dirname=`dirname $0`
if [ "${dirname:0:1}" != "/" ]; then
  dirname=$PWD/$dirname
fi
LD_LIBRARY_PATH=$dirname/lib:$dirname
export LD_LIBRARY_PATH
$dirname/$appname $*

--------------------------------------------------------------------------------------------------------------------


I tried to experiment in a number of ways, and tried to track down where the issue may lie using the following script.


---------------------------------------------------------------------------------------------------------------------

#!/bin/bash
appname=`basename $0 | sed s,\.sh$,,`

  echo ------------------------------------------------------ >> /home/devans/Downloads/test.txt
  echo appname = $appname > /home/devans/Downloads/test.txt
  echo basename = $basename >> /home/devans/Downloads/test.txt
  echo ------------------------------------------------------ >> /home/devans/Downloads/test.txt

dirname=`dirname $0`

  echo dirname = $dirname >> /home/devans/Downloads/test.txt

if [ "${dirname:0:1}" != "/" ]; then
  dirname=$PWD/$dirname
 
  echo ------------------------------------------------------ >> /home/devans/Downloads/test.txt
  echo In the IF statement >> /home/devans/Downloads/test.txt
  echo dirname = $dirname >> /home/devans/Downloads/test.txt
  echo ------------------------------------------------------ >> /home/devans/Downloads/test.txt

fi

LD_LIBRARY_PATH=$dirname/lib:$dirname
# LD_LIBRARY_PATH= /home/devans/PixInsight/bin/./lib:/home/devans/PixInsight/bin/.


  echo ------------------------------------------------------ >> /home/devans/Downloads/test.txt
  echo LD_LIBRARY_PATH = $LD_LIBRARY_PATH >> /home/devans/Downloads/test.txt
  echo ------------------------------------------------------ >> /home/devans/Downloads/test.txt


  echo hitting EXPORT HERE  >> /home/devans/Downloads/test.txt
export LD_LIBRARY_PATH
# export LD_LIBRARY_PATH="."; ./PixInsight
# export LD_LIBRARY_PATH= /home/devans/PixInsight ; /home/devans/PixInsight/bin ; /home/devans/PixInsight/bin/lib

  echo ------------------------------------------------------ >> /home/devans/Downloads/test.txt
  echo dirname = $dirname >> /home/devans/Downloads/test.txt
  echo appname = $appname >> /home/devans/Downloads/test.txt
  echo ------------------------------------------------------ >> /home/devans/Downloads/test.txt
#  echo hitting EXPORT HERE  >> /home/devans/Downloads/test.txt
#  echo "export LD_LIBRARY_PATH=.; ldd PixInsight-core"  >> /home/devans/Downloads/test.txt
#  export LD_LIBRARY_PATH=.; ldd PixInsight-core >> /home/devans/Downloads/test.txt
#  ldd PixInsight-core >> /home/devans/Downloads/test.txt
#  echo ------------------------------------------------------ >> /home/devans/Downloads/test.txt

$dirname/$appname $*

  echo ------------------------------------------------------ >> /home/devans/Downloads/test.txt
  echo dirname = $dirname >> /home/devans/Downloads/test.txt
  echo appname = $appname >> /home/devans/Downloads/test.txt
  echo ------------------------------------------------------ >> /home/devans/Downloads/test.txt


# exit

------------------------------------------------------------------------------------------------------------------------------------------------



The above script still produces the same result...



------------------------------------------------------------------------------------------------------------------------------------------------

devans@devans-desktop ~/PixInsight/bin $ ./PixInsight.sh

** A previous instance of the PixInsight Core application crashed.
Reusing instance slot #1.

PixInsight Core 01.06.01.0625 (x86)
Copyright (C) 2003-2010 Pleiades Astrophoto

terminate called after throwing an instance of 'pcl::EUnixSegmentationViolation'
./PixInsight.sh: line 47:  9023 Aborted                 $dirname/$appname $*
devans@devans-desktop ~/PixInsight/bin $

-----------------------------------------------------------------------------------------------------------------------------------



The test.txt file produces the following results....



-----------------------------------------------------------------------------------------------------------------------------------

appname = PixInsight
basename =
------------------------------------------------------
dirname = .
------------------------------------------------------
In the IF statement
dirname = /home/devans/PixInsight/bin/.
------------------------------------------------------
------------------------------------------------------
LD_LIBRARY_PATH = /home/devans/PixInsight/bin/./lib:/home/devans/PixInsight/bin/.
------------------------------------------------------
hitting EXPORT HERE
------------------------------------------------------
dirname = /home/devans/PixInsight/bin/.
appname = PixInsight
------------------------------------------------------
------------------------------------------------------
dirname = /home/devans/PixInsight/bin/.
appname = PixInsight
------------------------------------------------------
test.txt (END)

--------------------------------------------------------------------------------------------------------------



I've made changes to the permissions of the PixInsight directory, as well as all sub-directories and files to be 777.  It still will not work.

I've used the following command:  export LD_LIBRARY_PATH=.; ldd PixInsight-core
...and get the following result...



----------------------------------------------------------------------------------------------------------------

devans@devans-desktop ~/PixInsight/bin $ export LD_LIBRARY_PATH=.; ldd PixInsight-core
ldd: ./PixInsight-core: No such file or directory
devans@devans-desktop ~/PixInsight/bin $

----------------------------------------------------------------------------------------------------------------


If anyone can please assist me with this, it would very much appreciated.

David



Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: PixInsight 1.06.01.0625 Keeps Crashing on Minty9 (Ubuntu based)
« Reply #1 on: 2010 October 19 00:31:36 »
Hi David,

Are you running a 32-bit operating system? This seems exactly the same problem reported by another Linux user in this thread (sorry, the thread is in Spanish).

It seems we have some weird problem with the current 32-bit Linux version. There are no significant problems with the 64-bit version AFAIK.

I suspect this problem comes from the fact that the 32-bit version of PixInsight for Linux is being cross-compiled on 64-bit systems. I'm going to install a 32-bit Linux virtual machine to make thorough tests; allow me a few days to download and put all the pieces together.

Sorry for the inconvenience!
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Snaved

  • Newcomer
  • Posts: 8
Re: PixInsight 1.06.01.0625 Keeps Crashing on Minty9 (Ubuntu based)
« Reply #2 on: 2010 October 19 06:11:57 »
Hi Juan,

Very much appreciate your assistance with this.  The OS is definitely 32 bit, as evidenced below...


---------------------------------------------------------------------------------------------------------------------------------------------------------------
devans@devans-desktop ~ $ file /sbin/init
/sbin/init: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped
devans@devans-desktop ~ $ uname -a
Linux devans-desktop 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010 i686 GNU/Linux
devans@devans-desktop ~ $ cat /proc/version
Linux version 2.6.32-21-generic (buildd@rothera) (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) ) #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010
devans@devans-desktop ~ $

----------------------------------------------------------------------------------------------------------------------------------------------------------------

I'll keep trying to research things from my side, as well.

Thank you!

David

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: PixInsight 1.06.01.0625 Keeps Crashing on Minty9 (Ubuntu based)
« Reply #3 on: 2010 October 19 06:35:46 »
It crashes here too, with 32 bits Ubuntu, but I blamed the CPU, since it is not supported :D
Regards,

Carlos Milovic F.
--------------------------------
PixInsight Project Developer
http://www.pixinsight.com

Offline Snaved

  • Newcomer
  • Posts: 8
Re: PixInsight 1.06.01.0625 Keeps Crashing on Minty9 (Ubuntu based)
« Reply #4 on: 2010 October 19 17:17:44 »
Hi Juan and Carlos,

Here is my CPU information...



-------------------------------------------------------------------------------------------------------------------------------------------- 

devans@devans-desktop ~ $ cat /proc/cpuinfo
processor   : 0
vendor_id   : AuthenticAMD
cpu family   : 15
model      : 37
model name   : AMD Opteron(tm) Processor 248 HE
stepping   : 1
cpu MHz      : 1000.000
cache size   : 1024 KB
fdiv_bug   : no
hlt_bug      : no
f00f_bug   : no
coma_bug   : no
fpu      : yes
fpu_exception   : yes
cpuid level   : 1
wp      : yes
flags      : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt lm 3dnowext 3dnow extd_apicid pni lahf_lm
bogomips   : 1991.31
clflush size   : 64
cache_alignment   : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp

processor   : 1
vendor_id   : AuthenticAMD
cpu family   : 15
model      : 37
model name   : AMD Opteron(tm) Processor 248 HE
stepping   : 1
cpu MHz      : 1000.000
cache size   : 1024 KB
fdiv_bug   : no
hlt_bug      : no
f00f_bug   : no
coma_bug   : no
fpu      : yes
fpu_exception   : yes
cpuid level   : 1
wp      : yes
flags      : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt lm 3dnowext 3dnow extd_apicid pni lahf_lm
bogomips   : 1991.31
clflush size   : 64
cache_alignment   : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp

-------------------------------------------------------------------------------------------------------------------

Thank you!

David

Offline papaf

  • PixInsight Addict
  • ***
  • Posts: 182
Re: PixInsight 1.06.01.0625 Keeps Crashing on Minty9 (Ubuntu based)
« Reply #5 on: 2010 October 20 07:12:54 »
David,
the good news for you is that your system can support a 64 bits OS. So in any case, you could try that.

Offline Snaved

  • Newcomer
  • Posts: 8
Re: PixInsight 1.06.01.0625 Keeps Crashing on Minty9 (Ubuntu based)
« Reply #6 on: 2010 October 20 08:07:07 »
I knew that, but am really hoping I do not have to go through having to back everything off and then reinstall the OS and everything else.  That said, that may be what I am reduced to...

David

Offline papaf

  • PixInsight Addict
  • ***
  • Posts: 182
Re: PixInsight 1.06.01.0625 Keeps Crashing on Minty9 (Ubuntu based)
« Reply #7 on: 2010 October 20 23:33:19 »
Well, don't see it as a "reduction"! 64bits it's the future anyway, so you could well anticipate times. Also, one thing I do when upgrading ubuntu, even when changing architectures, is reinstall the OS partition only. I keep my home partition intact and usually the only thing I do is reinstall the programs.

Offline Snaved

  • Newcomer
  • Posts: 8
Re: PixInsight 1.06.01.0625 Keeps Crashing on Minty9 (Ubuntu based)
« Reply #8 on: 2010 October 26 08:02:53 »
OK.... Here is what I had to end up doing to fix my issue....

I bit the bullet and upgraded the system to 64 bit Minty 9.  However, I still had an issue with the application crashing.  At this point I did the following....

1.  Made a backup copy of the PixInsight,sh file.  (note: the ~ symbol puts you into your home directory)
         From a terminal...
          cd ~/PixInsight/bin
          cp ./PixInsight.sh ./PixInsight.BU.sh
          At this point you can either use vim or gedit.  For ease of use, I chose gedit.
          gedit ./PixInsight.sh
         The editor application will open up at this time.

2.  The changes I made are the following...  Make sure to save your changes.

------------------------------------------------------------------------------
        #!/bin/bash
        appname=`basename $0 | sed s,\.sh$,,`
        dirname=`dirname $0`
        if [ "${dirname:0:1}" != "/" ]; then
          dirname=$PWD/$dirname
        fi
        LD_LIBRARY_PATH=$dirname/lib:$dirname
        # export LD_LIBRARY_PATH
        export LD_LIBRARY_PATH=".:./lib"; ./PixInsight
        $dirname/$appname $*
------------------------------------------------------------------------------

        Admittedly, I neglected to comment out the last line, thus allowing
        the application to restart on its own once it crashed.  This allowed me
        to see the error that was being created.  See below where the error
        should be in bold lettering.

------------------------------------------------------------------------------
~/PixInsight/bin/PixInsight.sh

PixInsight Core 01.06.01.0625 (x86_64)
Copyright (C) 2003-2010 Pleiades Astrophoto

./PixInsight: symbol lookup error: /usr/lib/libxml2.so.2: undefined symbol: gzopen64

** A previous instance of the PixInsight Core application crashed.
Reusing instance slot #1.

PixInsight Core 01.06.01.0625 (x86_64)
Copyright (C) 2003-2010 Pleiades Astrophoto

------------------------------------------------------------------------------

3.  From here, I was able to find in the forum another hit on the same issue for Ubuntu based systems.  The issue seems to be related to the libz files.  There should be two of them.  See: http://ubuntuforums.org/showthread.php?t=610789  and  http://pixinsight.com/forum/index.php?topic=1876.0  if you are curious.

I will delineate the steps here.   From a terminal...
        cd ~/PixInsight/bin/lib
        ls -l libz*
        You should get a listing of the two files.
           libz.so.1
           libz.so.1.2.3
        Now change the name of the files.
        mv ./libz.so.1 ./ZZZ.libz.so.1
        mv ./libz.so.1.2.3 ./ZZZ.libz.so.1.2.3

4.  Now retry to use PixInsight.     
     ~/PixInsight/bin/PixInsight.sh
     At this point, I am now able to use PixInsight on Minty9 using the 64 bit version.
     Note, if you did not change the PixInsight.sh back, you will see PixInsight restart automatically once you exit it.
     Make sure to return the script back to its original form, and then save it.
----------------------------------------------------------------------------
          #!/bin/bash
          appname=`basename $0 | sed s,\.sh$,,`
          dirname=`dirname $0`
          if [ "${dirname:0:1}" != "/" ]; then
            dirname=$PWD/$dirname
          fi
          LD_LIBRARY_PATH=$dirname/lib:$dirname
          export LD_LIBRARY_PATH
          # export LD_LIBRARY_PATH=".:./lib"; ./PixInsight
          $dirname/$appname $*


----------------------------------------------------------------------------

 Hopefully, you are now good to go.  I hope this helps someone out there.

David


« Last Edit: 2010 October 26 08:41:11 by Snaved »

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: PixInsight 1.06.01.0625 Keeps Crashing on Minty9 (Ubuntu based)
« Reply #9 on: 2010 October 26 09:27:04 »
Hey David

I'm glad you were able to make it work. Since Minty is based on Ubuntu, the libz problem was something to expect... Anyway, it still puzzles me the problems with the 32bit versions. It seems that it won't work either on fedora x32....
Regards,

Carlos Milovic F.
--------------------------------
PixInsight Project Developer
http://www.pixinsight.com