View Issue Details

IDProjectCategoryView StatusLast Update
0002269SkyChart1-Softwarepublic20-01-26 20:34
ReporterThomas Assigned ToPatrick Chevalley  
PrioritynormalSeverityblockReproducibilityalways
Status resolvedResolutionfixed 
Platformaarch64OSRaspberry Pi 4OS VersionManjaro
Product Version4.2 
Target Version4.4Fixed in Version4.3 beta 
Summary0002269: Could not load library libpasplan404.so.1
Descriptiondownloaded from https://sourceforge.net/projects/skychart/files/1-software/version_4.2.1/skychart-4.2.1-4073-linux_arm64.tar.bz2/download
TagsNo tags attached.

Activities

Patrick Chevalley

20-01-20 18:23

administrator   ~0006255

There is indication on the main download page: https://www.ap-i.net/skychart/en/download
and the Sourceforge page: https://sourceforge.net/projects/skychart/files/1-software/version_4.2.1/

"On Linux you must also install the package libpasastro available from https://sourceforge.net/projects/libpasastro/ "

Thomas

20-01-20 18:35

reporter   ~0006256

libpasastro has been installed, see https://www.ap-i.net/mantis/view_all_bug_page.php

This error has also been reported in the past on https://aur.archlinux.org/packages/skychart/

Patrick Chevalley

20-01-20 19:22

administrator   ~0006258

Sorry, I not make the relation.

Skychart try to load the file libpasplan404.so.1 using the system standard library path.

Where do you install this file?
Is the path listed in /etc/ld.so.conf or a file in /etc/ld.so.conf.d/ ?
Do you run sudo ldconfig after installing the file ?

Thomas

20-01-23 21:38

reporter   ~0006280

[pi@pi ~]$ cat /etc/ld.so.conf
# Dynamic linker/loader configuration.
# See ld.so(8) and ldconfig(8) for details.

include /etc/ld.so.conf.d/*.conf
[pi@pi ~]$ sudo ldconfig
[pi@pi ~]$ cat /etc/ld.so.conf
# Dynamic linker/loader configuration.
# See ld.so(8) and ldconfig(8) for details.

include /etc/ld.so.conf.d/*.conf
[pi@pi ~]$ ls -al /etc/ld.so.conf.d
total 16
drwxr-xr-x 2 root root 4096 Jan 23 20:50 .
drwxr-xr-x 71 root root 4096 Jan 23 21:31 ..
-rw-r--r-- 1 root root 21 Nov 19 06:03 fakeroot.conf
-rw-r--r-- 1 root root 17 Dec 23 18:32 openmpi.conf
[pi@pi ~]$ locate libpasplan404.so.1
/home/pi/libpasastro/plan404/libpasplan404.so.1.1
[pi@pi ~]$ cd libpasastro/
[pi@pi libpasastro]$ sudo ldconfig

[pi@pi bin]$ ./skychart
2020-01-23T21:34:14.224 Start trace
2020-01-23T21:34:14.224 Program version : 4.2.1-4073-ee8141c
2020-01-23T21:34:14.224 Program compiled: 2019/11/24 16:37:40
2020-01-23T21:34:14.224 Compiler version: Lazarus 2.0.6.0 Free Pascal 3.2.0 Linux-aarch64-gtk2
2020-01-23T21:34:14.262 Screen scaling : True
2020-01-23T21:34:14.262 Screen scale : 125%
2020-01-23T21:34:14.263 Try language: en_GB, en
2020-01-23T21:34:14.293 Language: en

Could not load library libpasplan404.so.1
Please try to reinstall the program.

Patrick Chevalley

20-01-23 22:16

administrator   ~0006281

So the file libpasplan404.so.1 is only in this location: /home/pi/libpasastro/plan404/libpasplan404.so.1.1
It is impossible for skychart to guess it is here.

You have two solution, install in /usr/lib or add /home/pi/libpasastro/plan404/ to ldconfig.
Installing is the preferred way, otherwise you will get the same problem with the next library libpasgetdss.so
do:
- cd /home/pi/libpasastro/plan404
- sudo make install PREFIX=/usr
- sudo ldconfig

Thomas

20-01-24 22:20

reporter   ~0006284

Good advice, works like a charm, just cd /home/pi/libpasastro/ is required and Cartes du Ciel starts up but then a half light blue screen is see as attached. Any advice?

[pi@pi bin]$ ./skychart
2020-01-24T22:11:58.550 Start trace
2020-01-24T22:11:58.551 Program version : 4.2.1-4073-ee8141c
2020-01-24T22:11:58.551 Program compiled: 2019/11/24 16:37:40
2020-01-24T22:11:58.551 Compiler version: Lazarus 2.0.6.0 Free Pascal 3.2.0 Linux-aarch64-gtk2
2020-01-24T22:11:58.593 Screen scaling : True
2020-01-24T22:11:58.593 Screen scale : 126%
2020-01-24T22:11:58.594 Try language: en_GB, en
2020-01-24T22:11:58.611 Language: en
2020-01-24T22:11:58.860 Load Healpix library failed
2020-01-24T22:12:00.918 Create table cdc_ast_name ... Ok
2020-01-24T22:12:00.935 Create table cdc_ast_elem_list ... Ok
2020-01-24T22:12:00.952 Create table cdc_ast_elem ... Ok
2020-01-24T22:12:01.103 Create table cdc_ast_mag ... Ok
2020-01-24T22:12:01.119 Create table cdc_com_name ... Ok
2020-01-24T22:12:01.132 Create table cdc_com_elem_list ... Ok
2020-01-24T22:12:01.146 Create table cdc_com_elem ... Ok
2020-01-24T22:12:01.174 Create table cdc_fits ... Ok
2020-01-24T22:12:01.188 Create table cdc_country ... Ok
2020-01-24T22:12:01.231 Create table cdc_location ... Ok
2020-01-24T22:12:01.239 Connected to the SQL database /home/pi/.skychart/database/cdc.db
2020-01-24T22:13:37.947 Listen on port: 3292
2020-01-24T22:13:54.366 It take too long to draw the Stars from catalog Extended Hipparcos Compilation, please consider to not use this catalog for this FOV.
2020-01-24T22:14:18.963 It take too long to draw the Stars from catalog Extended Hipparcos Compilation, please consider to not use this catalog for this FOV.
2020-01-24T22:14:33.247 It take too long to draw the Stars from catalog Extended Hipparcos Compilation, please consider to not use this catalog for this FOV.
2020-01-24T22:14:33.344 Mouseup error: Access violation
2020-01-24T22:14:55.334 It take too long to draw the Stars from catalog Extended Hipparcos Compilation, please consider to not use this catalog for this FOV.
2020-01-24T22:15:06.869 It take too long to draw the Stars from catalog Extended Hipparcos Compilation, please consider to not use this catalog for this FOV.
2020-01-24T22:15:17.541 It take too long to draw the Stars from catalog Extended Hipparcos Compilation, please consider to not use this catalog for this FOV.
2020-01-24T22:15:17.603 Mouseup error: Access violation
2020-01-24T22:15:33.395 It take too long to draw the Stars from catalog Extended Hipparcos Compilation, please consider to not use this catalog for this FOV.
2020-01-24T22:15:44.121 It take too long to draw the Stars from catalog Extended Hipparcos Compilation, please consider to not use this catalog for this FOV.
2020-01-24T22:15:44.243 Mouseup error: Access violation
2020-01-24T22:15:55.418 It take too long to draw the Stars from catalog Extended Hipparcos Compilation, please consider to not use this catalog for this FOV.

Patrick Chevalley

20-01-24 22:48

administrator   ~0006285

The main problem is it cannot draw the main star catalog.

Can you run with the --verbose option: ./skychart --verbose
and report the console log.

Thomas

20-01-25 10:20

reporter   ~0006286

Voila!

[pi@pi ~]$ cat /etc/lsb-release
DISTRIB_ID=Manjaro-ARM
DISTRIB_RELEASE=19.12
DISTRIB_CODENAME=
DISTRIB_DESCRIPTION="Manjaro ARM Linux"
[pi@pi ~]$ cd Keep/skychart/bin/
[pi@pi bin]$ ./skychart --verbose
Check other instance
Init
Create config
Create cursor
Application directory
appdir=/home/pi/Keep/skychart/bin/
appdir=/home/pi/Keep/skychart/bin/
Try /home/pi/Keep/skychart/bin
Try /home/pi/Keep/skychart/bin/
Try /home/pi/Keep/skychart/share/skychart
appdir=/home/pi/Keep/skychart/share/skychart
privatedir=/home/pi/.skychart
ZoneDir=/home/pi/Keep/skychart/share/skychart/data/zoneinfo/
Try /usr/share/zoneinfo/
ZoneDir=/usr/share/zoneinfo/
Trace
2020-01-25T10:18:14.927 Start trace
2020-01-25T10:18:14.927 Program version : 4.2.1-4073-ee8141c
2020-01-25T10:18:14.927 Program compiled: 2019/11/24 16:37:40
2020-01-25T10:18:14.927 Compiler version: Lazarus 2.0.6.0 Free Pascal 3.2.0 Linux-aarch64-gtk2
2020-01-25T10:18:14.927 Privatedir: /home/pi/.skychart
2020-01-25T10:18:14.927 Appdir: /home/pi/Keep/skychart/share/skychart
2020-01-25T10:18:14.927 Scaling
2020-01-25T10:18:14.981 Screen scaling : True
2020-01-25T10:18:14.981 Screen scale : 126%
2020-01-25T10:18:14.982 Language
2020-01-25T10:18:14.987 Try language: en_GB, en
2020-01-25T10:18:15.005 Language: en
2020-01-25T10:18:15.005 Multiframe
2020-01-25T10:18:15.005 Size control
2020-01-25T10:18:15.005 Load zlib
2020-01-25T10:18:15.005 Load plan404
2020-01-25T10:18:15.011 Load cdcwcs
2020-01-25T10:18:15.021 Multiframe border
2020-01-25T10:18:15.021 Bitmap
2020-01-25T10:18:15.021 Load timezone
2020-01-25T10:18:15.029 SAMP
2020-01-25T10:18:15.029 Toolbar
2020-01-25T10:18:15.029 Script panel
2020-01-25T10:18:15.272 Load Healpix library
2020-01-25T10:18:15.273 Load Healpix library failed
2020-01-25T10:18:15.273 SetLang
2020-01-25T10:18:15.281 Exit Tf_main.FormCreate
2020-01-25T10:18:15.281 Create splash
2020-01-25T10:18:15.315 Show splash
2020-01-25T10:18:15.637 Create f_position
2020-01-25T10:18:15.653 Create f_search
2020-01-25T10:18:15.669 Create f_zoom
2020-01-25T10:18:15.674 Create f_getdss
2020-01-25T10:18:15.681 Loadlibrary libpasgetdss.so.1
2020-01-25T10:18:15.703 Library ok
2020-01-25T10:18:15.703 Create f_manualtelescope
2020-01-25T10:18:15.705 Create f_detail
2020-01-25T10:18:15.707 Create f_info
2020-01-25T10:18:15.719 Create f_calendar
2020-01-25T10:18:15.760 Create Tf_image
2020-01-25T10:18:15.762 Create f_printsetup
2020-01-25T10:18:15.770 Create f_print
2020-01-25T10:18:15.775 Create f_obslist
2020-01-25T10:18:15.782 Create f_edittoolbar
2020-01-25T10:18:15.815 Create f_mosaic
2020-01-25T10:18:15.836 Main Init
2020-01-25T10:18:15.836 Enter Tf_main.Init
2020-01-25T10:18:15.836 SetDefault
2020-01-25T10:18:15.866 ReadDefault
2020-01-25T10:18:15.888 Create forms
2020-01-25T10:18:15.895 InitDS2000
2020-01-25T10:18:15.897 Load deltat
2020-01-25T10:18:15.908 Create DB
2020-01-25T10:18:15.908 Background Image
2020-01-25T10:18:15.908 Constellation
2020-01-25T10:18:17.279 Connect DB
2020-01-25T10:18:17.293 DB connected
2020-01-25T10:18:17.299 Connected to the SQL database /home/pi/.skychart/database/cdc.db
2020-01-25T10:18:17.299 Cursor
2020-01-25T10:18:17.302 Compass
2020-01-25T10:18:17.307 Starshape file
2020-01-25T10:18:17.307 Timezone
2020-01-25T10:18:17.308 Init calendar
2020-01-25T10:18:17.308 Create default chart
2020-01-25T10:18:17.339 Create new chart
2020-01-25T10:18:17.806 SkyChart : Init chart
2020-01-25T10:18:18.026 Read params
2020-01-25T10:18:18.026 Start server
2020-01-25T10:18:18.026 Add signal handler
2020-01-25T10:18:18.026 InitScript
2020-01-25T10:18:18.107 Listen on port: 3292
2020-01-25T10:18:19.011 InitScript end
2020-01-25T10:18:19.011 Exit Tf_main.Init
2020-01-25T10:18:19.011 Application Run
2020-01-25T10:18:19.022 Chart_1 ChartResize
2020-01-25T10:18:19.029 Chart_1 ChartResize
2020-01-25T10:18:19.043 Enter Tf_main.FormShow
2020-01-25T10:18:19.066 Chart_1 ChartResize
2020-01-25T10:18:19.372 Chart_1 ChartResize
2020-01-25T10:18:19.392 Chart_1 ChartResize
2020-01-25T10:18:19.425 Chart_1 ChartResize
2020-01-25T10:18:21.901 Chart_1 ChartResize
2020-01-25T10:18:21.927 Chart_1 ChartResize
2020-01-25T10:18:21.948 Exit Tf_main.FormShow
2020-01-25T10:18:22.043 Chart_1 ChartResize
2020-01-25T10:18:22.052 Chart_1 ChartResize
2020-01-25T10:18:22.072 Chart_1 ChartResize
2020-01-25T10:18:22.089 Chart_1 ChartResize
2020-01-25T10:18:22.099 Enter Tf_main.InitTimerTimer
2020-01-25T10:18:22.099 Exit Tf_main.InitTimerTimer
2020-01-25T10:18:22.301 ImageSetFocus
2020-01-25T10:18:22.574 Chart Chart_1: RefreshTimer
2020-01-25T10:18:22.574 Chart Chart_1: Refresh
2020-01-25T10:18:22.574 Chart Chart_1: Get refresh lock
2020-01-25T10:18:22.608 Chart Chart_1: Init 1255x857
2020-01-25T10:18:22.610 Chart Chart_1: Draw map
2020-01-25T10:18:22.610 SkyChart Chart_1: Full Refresh
2020-01-25T10:18:22.610 SkyChart Chart_1: Init
2020-01-25T10:18:22.610 SkyChart Chart_1: Init observatory
2020-01-25T10:18:22.610 SkyChart Chart_1: Init time
2020-01-25T10:18:22.610 SkyChart Chart_1: Init chart
2020-01-25T10:18:22.610 SkyChart Chart_1: Init coordinates
2020-01-25T10:18:22.617 SkyChart Chart_1: Compute planet position
2020-01-25T10:18:22.626 SkyChart Chart_1: end Compute planet position
2020-01-25T10:18:22.626 SkyChart Chart_1: Init labels
2020-01-25T10:18:22.628 SkyChart Chart_1: Init colors
2020-01-25T10:18:22.630 SkyChart Chart_1: Open catalogs
2020-01-25T10:18:22.630 SkyChart Chart_1: Init catalogs
2020-01-25T10:18:22.631 SkyChart Chart_1: begin drawing
2020-01-25T10:18:22.633 SkyChart Chart_1: draw milky way
2020-01-25T10:18:22.757 SkyChart Chart_1: draw alt/az EQ grid
2020-01-25T10:18:22.757 SkyChart Chart_1: draw deepsky objects
2020-01-25T10:18:22.921 SkyChart Chart_1: draw nebula outlines
2020-01-25T10:18:22.952 SkyChart Chart_1: draw outlines
2020-01-25T10:18:22.952 SkyChart Chart_1: draw comets
2020-01-25T10:18:22.960 SkyChart Chart_1: draw grid
2020-01-25T10:18:23.007 SkyChart Chart_1: draw constellation figures
2020-01-25T10:18:23.018 SkyChart Chart_1: draw stars
2020-01-25T10:18:33.083 SkyChart Chart_1: draw double stars
2020-01-25T10:18:33.083 SkyChart Chart_1: draw variable stars
2020-01-25T10:18:33.083 SkyChart Chart_1: draw asteroids
2020-01-25T10:18:33.124 SkyChart Chart_1: draw planets
2020-01-25T10:18:33.125 Created /home/pi/.skychart/tmp/origin.txt
2020-01-25T10:18:33.501 SkyChart Chart_1: draw labels
2020-01-25T10:18:33.502 SkyChart Chart_1: Optimize labels
2020-01-25T10:18:33.550 SkyChart Chart_1: Labels optimized
2020-01-25T10:18:33.922 SkyChart Chart_1: draw horizon
2020-01-25T10:18:34.019 SkyChart Chart_1: draw grid
2020-01-25T10:18:34.105 SkyChart Chart_1: draw chart border
2020-01-25T10:18:34.166 SkyChart Chart_1: end drawing
2020-01-25T10:18:34.166 SkyChart Chart_1: end Refresh
2020-01-25T10:18:34.166 Chart Chart_1: Draw map end
2020-01-25T10:18:34.173 Chart Chart_1: Release refresh lock
2020-01-25T10:18:34.174 It take too long to draw the Stars from catalog Extended Hipparcos Compilation, please consider to not use this catalog for this FOV.
2020-01-25T10:18:34.186 Chart Chart_1: Refresh end

Patrick Chevalley

20-01-25 14:09

administrator   ~0006287

The problem is it really take more than 10 seconds to search the star catalog:
2020-01-25T10:18:23.018 SkyChart Chart_1: draw stars
2020-01-25T10:18:33.083 SkyChart Chart_1: draw double stars

In this case I have a safety check to abort the catalog after 10 seconds. Normally you can get this condition only with big catalog like GAIA or USNO-B when you use them on large FOV, thus the text of the message show at the end.

I never see this message with the base star catalog except sometime with the RPi-1.
With my RPi-2 this step take about 2 seconds just after the program is started and about 0.5 seconds afterward when the data are in memory cache. But you get this error repeatedly because when it is aborted the cache is not filled.

This let me think of very poor performance with the SD card.
Are you sure of the quality of the card? Is it at minimum of class 10? or better a A1 card for the Pi-4.

Thomas

20-01-25 17:31

reporter   ~0006288

Sandisk microSDXC UHS-I A1 128GB Class10

in a 4GB Pi-4. I thought to use the aarch64 Manjaro because it is true 64-bit unlike Raspian and faster.

Any ideas how to track down the problem? Are you able to reproduce the problem for https://manjaro.org/download/#raspberry-pi-4-xfce ?

Patrick Chevalley

20-01-25 18:17

administrator   ~0006289

It is difficult for me to test the aarch64 version because I not have a Pi-4, only a Pi-2.
For the compilation I use a KVM virtual machine with processor emulation, but running skychart from there is very difficult.

You have a good SD card that must not be the problem.
The next point to check is if there is some specific problem with the star drawing function.
After the program is started and it show the wrong display, can you open the menu Setup / Display, set both Deep sky and Star display to "Line mode".
At the bottom of this screen uncheck "Anti alias drawing".
Click OK to apply.

Patrick Chevalley

20-01-26 14:10

administrator   ~0006290

Hi,

I find a way to debug the program from the virtual machine using a remote Xserver because it is impossible to run a Xserver with the processor emulation. This is very slow but I can make some test.

The issue is really with the star drawing. It look like a bug with the single precision floating point number with this processor. I try to find a workaround, probably by using double precision instead. When it work I make a test version for you.



Thomas

20-01-26 14:14

reporter   ~0006291

I confirm, I found the same. I look forward to the test version. Thanks!

Patrick Chevalley

20-01-26 18:01

administrator   ~0006292

Finally the problem was a bug with the compiler optimization with this processor.
So I revert all the other change and just change the makefile:
https://github.com/pchev/skychart/commit/17cd32d97c49bdd24f377692cd06621ddf011cf5

You can get a test version here :
https://vega.ap-i.net/tmp/skychart/

Thomas

20-01-26 20:14

reporter   ~0006293

Good job: all modes work fine, much faster responsive and no blanking when zooming out. If all software developers fixed the problems that fast and effective, the world would be a better place. Thanks again!

Patrick Chevalley

20-01-26 20:34

administrator   ~0006294

Good!
Thank you very much to report this issues.

Issue History

Date Modified Username Field Change
20-01-20 17:44 Thomas New Issue
20-01-20 18:23 Patrick Chevalley Status new => resolved
20-01-20 18:23 Patrick Chevalley Resolution open => no change required
20-01-20 18:23 Patrick Chevalley Note Added: 0006255
20-01-20 18:35 Thomas Status resolved => new
20-01-20 18:35 Thomas Resolution no change required => reopened
20-01-20 18:35 Thomas Note Added: 0006256
20-01-20 19:22 Patrick Chevalley Note Added: 0006258
20-01-20 19:22 Patrick Chevalley Status new => feedback
20-01-23 21:38 Thomas Note Added: 0006280
20-01-23 21:38 Thomas Status feedback => new
20-01-23 22:16 Patrick Chevalley Note Added: 0006281
20-01-24 22:20 Thomas File Added: Screenshot_2020-01-24_22-20-01.png
20-01-24 22:20 Thomas Note Added: 0006284
20-01-24 22:48 Patrick Chevalley Note Added: 0006285
20-01-25 10:20 Thomas Note Added: 0006286
20-01-25 14:09 Patrick Chevalley Status new => feedback
20-01-25 14:09 Patrick Chevalley Note Added: 0006287
20-01-25 17:31 Thomas Note Added: 0006288
20-01-25 17:31 Thomas Status feedback => new
20-01-25 18:17 Patrick Chevalley Note Added: 0006289
20-01-26 14:10 Patrick Chevalley Assigned To => Patrick Chevalley
20-01-26 14:10 Patrick Chevalley Status new => assigned
20-01-26 14:10 Patrick Chevalley Target Version => 4.4
20-01-26 14:10 Patrick Chevalley Note Added: 0006290
20-01-26 14:14 Thomas Note Added: 0006291
20-01-26 18:01 Patrick Chevalley Status assigned => feedback
20-01-26 18:01 Patrick Chevalley Note Added: 0006292
20-01-26 20:14 Thomas Note Added: 0006293
20-01-26 20:14 Thomas Status feedback => assigned
20-01-26 20:34 Patrick Chevalley Status assigned => resolved
20-01-26 20:34 Patrick Chevalley Resolution reopened => fixed
20-01-26 20:34 Patrick Chevalley Fixed in Version => 4.3 beta
20-01-26 20:34 Patrick Chevalley Note Added: 0006294