View Issue Details

IDProjectCategoryView StatusLast Update
0002223SkyChart1-Softwarepublic19-11-06 11:50
ReporterTom Assigned ToPatrick Chevalley  
PriorityhighSeveritymajorReproducibilityalways
Status assignedResolutionopen 
PlatformRaspberry PiOSRaspbian BusterOS Version10 32bit
Product Version4.3 beta 
Target Version4.4 
Summary0002223: Invalid raw image format. 16bit found but at least 24bit expected.
DescriptionHi,

the program will start with a pop-up dialog showing:

Invalid raw image format. 16bit found but at least 24bit expected.
Press OK to ignore and risk data corruption.
Press Abort to kill the program.

After clicking on OK, the program will startup without any icons and labels.
TagsNo tags attached.

Activities

Patrick Chevalley

19-11-05 11:42

administrator   ~0006039

Hi,

I cannot reproduce the problem with Ubuntu on ARM, maybe something specific to Raspbian?

I just upload the debug binary that where missing for ARM.
Can you install the debug binary from https://sourceforge.net/projects/skychart/files/0-beta/debug/2019-11-04/
Extract the tar and run with gdb :
gdb debug/skychart
run
after the crash:
bt
continue to scroll until the end of trace.

Copy here the trace content.

Tom

19-11-05 12:50

reporter   ~0006040

<http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from skychart...done.
(gdb) run
Starting program: /home/pi/Downloads/debug/skychart
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
[Detaching after fork from child process 12413]
2019-11-05T19:49:08.823 Start trace
2019-11-05T19:49:08.823 Program version : 4.3-4058-c034943
2019-11-05T19:49:08.823 Program compiled: 2019/11/04 03:44:19
2019-11-05T19:49:08.823 Compiler version: Lazarus 2.0.4.0 Free Pascal 3.0.4 Linux-arm-gtk2
2019-11-05T19:49:08.858 Screen scaling : True
2019-11-05T19:49:08.859 Screen scale : 111%
2019-11-05T19:49:08.862 Try language: en_US, en
2019-11-05T19:49:08.868 Language: en
2019-11-05T19:49:10.695 Connected to the SQL database /home/pi/.skychart/database/cdc.db
[Detaching after fork from child process 12436]
[New Thread 0xb07d5280 (LWP 12441)]
2019-11-05T19:49:11.240 Listen on port: 3292
[New Thread 0xaf803280 (LWP 12449)]
[New Thread 0xaeeff280 (LWP 12450)]
2019-11-05T19:49:12.625 Draw chart, draw label error: Invalid raw image format. 16bit found but at least 24bit expected
2019-11-05T19:49:12.630 Draw chart, draw label error: Invalid raw image format. 16bit found but at least 24bit expected
2019-11-05T19:49:21.495 Draw chart, draw label error: Invalid raw image format. 16bit found but at least 24bit expected
2019-11-05T19:49:21.497 Draw chart, draw label error: Invalid raw image format. 16bit found but at least 24bit expected
2019-11-05T19:49:31.879 Draw chart, draw label error: Invalid raw image format. 16bit found but at least 24bit expected
2019-11-05T19:49:31.882 Draw chart, draw label error: Invalid raw image format. 16bit found but at least 24bit expected
2019-11-05T19:49:33.409 Draw chart, draw label error: Invalid raw image format. 16bit found but at least 24bit expected
2019-11-05T19:49:33.411 Draw chart, draw label error: Invalid raw image format. 16bit found but at least 24bit expected
2019-11-05T19:49:42.160 Draw chart, draw label error: Invalid raw image format. 16bit found but at least 24bit expected
2019-11-05T19:49:42.162 Draw chart, draw label error: Invalid raw image format. 16bit found but at least 24bit expected
2019-11-05T19:49:44.737 Stop TCP/IP server
[Thread 0xb07d5280 (LWP 12441) exited]
2019-11-05T19:49:45.561 Exiting ...
[TGtk2WidgetSet.Destroy] WARNING: There are 5 unreleased DCs, a detailed dump follows:
[TGtk2WidgetSet.Destroy] DCs: B56ADD90 B56AD940 B56AD7D0 B56AD660 B56A9A00
[TGtk2WidgetSet.Destroy] WARNING: There are 27 unreleased GDIObjects, a detailed dump follows:
[TGtk2WidgetSet.Destroy] GDIOs: AFE37160 AFE37460 AFE376A0 AFE37580 AFE37D00 AFE37A60 AFE374C0
[TGtk2WidgetSet.Destroy] gdiBitmap: 15
[TGtk2WidgetSet.Destroy] gdiBrush: 6
[TGtk2WidgetSet.Destroy] gdiFont: 6
[Thread 0xaeeff280 (LWP 12450) exited]
[Thread 0xaf803280 (LWP 12449) exited]
[Inferior 1 (process 12392) exited normally]
(gdb) bt
No stack.
(gdb)

Patrick Chevalley

19-11-05 14:39

administrator   ~0006041

Strange ...

Is your X display configured for TrueColor 24 bit depth? Skychart do not support to run on 16 or 8 bit indexed color display.

What is the output of the command:
xwininfo -root

Patrick Chevalley

19-11-05 16:06

administrator   ~0006042

I tested with my screen set to 16bit and I get exactly the same error as you.

I commit a change to check this value on startup to abort with a more explicit message:
https://github.com/pchev/skychart/commit/4c968a15ce5e0e6f09d950796ffeb5bad630135a

You need to change the Screen section in your /etc/X11/xorg.conf:
Section "Screen"
    Identifier "Screen0"
    Device "Device0"
    Monitor "Monitor0"
    DefaultDepth 24
    SubSection "Display"
        Depth 24
    EndSubSection
EndSection

Or if using vncserver add the option "-depth 24"

Tom

19-11-06 02:56

reporter   ~0006043

No /etc/X11/xorg.conf in Raspbian OS. So, can't change anything. Even though I've added framebuffer_depth=24 in config.txt also no luck.

I am just wondering why we need a 24bit display skychart in raspberry pi? I believe 16bit already enough for RPi. Maybe I should downgrade skychart to the oldest version.

Tom

19-11-06 03:08

reporter   ~0006044

xwininfo: Window id: 0x2d5 (the root window) (has no name)

  Absolute upper-left X: 0
  Absolute upper-left Y: 0
  Relative upper-left X: 0
  Relative upper-left Y: 0
  Width: 1600
  Height: 900
  Depth: 16
  Visual: 0x21
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x20 (installed)
  Bit Gravity State: ForgetGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners: +0+0 -0+0 -0-0 +0-0
  -geometry 1600x900+0+0

Patrick Chevalley

19-11-06 10:05

administrator   ~0006045

Strange that Raspbian default to 16bit color and they advertise multi-media use.
I always use Ubuntu with my RPi and never get this issue.
No previous version will solve the problem, this part of the code is the same since 7 years.

But I see you must also set framebuffer_ignore_alpha to make depth=24 to work:
framebuffer_depth=24
framebuffer_ignore_alpha=1

Tom

19-11-06 11:50

reporter   ~0006046

Still, no luck after added that line.

mode "1600x900"
    geometry 1600 900 1600 900 16
    timings 0 0 0 0 0 0 0
    rgba 5/11,6/5,5/0,0/16
endmode

Issue History

Date Modified Username Field Change
19-11-05 10:43 Tom New Issue
19-11-05 11:42 Patrick Chevalley Note Added: 0006039
19-11-05 11:42 Patrick Chevalley Assigned To => Patrick Chevalley
19-11-05 11:42 Patrick Chevalley Status new => feedback
19-11-05 11:42 Patrick Chevalley Target Version => 4.4
19-11-05 12:50 Tom Note Added: 0006040
19-11-05 12:50 Tom Status feedback => assigned
19-11-05 14:39 Patrick Chevalley Status assigned => feedback
19-11-05 14:39 Patrick Chevalley Note Added: 0006041
19-11-05 16:06 Patrick Chevalley Note Added: 0006042
19-11-06 02:56 Tom Note Added: 0006043
19-11-06 02:56 Tom Status feedback => assigned
19-11-06 03:08 Tom Note Added: 0006044
19-11-06 10:05 Patrick Chevalley Note Added: 0006045
19-11-06 10:06 Patrick Chevalley Status assigned => feedback
19-11-06 11:50 Tom Note Added: 0006046
19-11-06 11:50 Tom Status feedback => assigned