Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Problems viewing images with pv: (4 Items)
   
Problems viewing images with pv  
Hi,

Photon installation on my embedded sh7780 target seems to work well - I can start ped, shelf and other applications. I 
cannot view files with pv or use bkgdmgr, however.

Here is my session

# Welcome to QNX Neutrino on HiCO.SH7780
# uname -a
QNX localhost 6.4.1 2009/05/20-17:34:08EDT hico7780 shle
# photon
# # <photon up and running ok>
# DL_DEBUG=1 pv /usr/photon/images/example.jpg
load_object: attempt load of libAp.so.3
load_elf32: loaded lib at addr 78200000(text) 7820efa0(data)
load_object: attempt load of libph.so.3
load_elf32: loaded lib at addr 78210000(text) 78304390(data)
load_object: attempt load of libm.so.2
load_elf32: loaded lib at addr 78310000(text) 7833aa20(data)
load_object: attempt load of libphexlib.so.3
load_elf32: loaded lib at addr 78340000(text) 7836e810(data)
load_object: attempt load of libimg.so.1
load_elf32: loaded lib at addr 7836f000(text) 7837dcc0(data)
load_object: attempt load of libfont.so.1
load_elf32: loaded lib at addr 7837e000(text) 78385060(data)
dlopen("PtHook.so",0)
load_object: attempt load of PtHook.so
load_elf32: loaded lib at addr 7830c000(text) 7830d710(data)
dlsym(0x8052000,_btext)=0x8042580
Library loaded; type 'add-sym pt_multihook.so 0x8042580' in gdb to load symbols
dlsym(0x8052000,PtHook)=0x7830c51c

# #< ctrl-C >
# sloginfo
Time             Sev Major Minor Args
Jan 01 00:00:00    5    14     0 tcpip starting
Jan 01 00:00:00    3    14     0 Using pseudo random generator.  See "random" option
Jan 01 00:00:15    1     8     0 phfont.so: init...
Jan 01 00:00:15    1     8     0 phfont.so: initialized.
Jan 01 00:00:15    1     8     0 phfont.so: '/dev/phfont[<32|64>]' server installed.
Jan 01 00:00:15    6     8     0 pci_init: found PCI device 126f:501
Jan 01 00:02:03    5     5     0 RegionSet(): rid=62 not found
Jan 01 00:02:03    5     5     0 RegionSet(): rid=42 not found
Jan 01 00:02:03    5     5     0 RegionSet(): rid=42 not found
#           

pv starts and shows an error window with text "Unable to load example.jpg file"

The example.jpg is a simple image from our web site (I have also tried different images).                               
             

What do the "RegionSet(): rid=42 not found..." mean? Am I maybe missing some resources on the target? 

BTW: On linux I always use 'strace -e open <program>' in situations like this. Is there a similiar way to get a trace of
 all resources which a given process tries to open on QNX? I'm aware of the dtrace project, but it probably won't yet 
work on SH architecture.

 - Martin
          
RE: Problems viewing images with pv  
Hmm ...

Do you have:

/etc/system/config/img.conf
/lib/dll/img_codec_*.so

?

-----Original Message-----
From: Martin Nylund [mailto:community-noreply@qnx.com] 
Sent: Friday, November 27, 2009 8:46 AM
To: photon-graphics
Subject: Problems viewing images with pv

Hi,

Photon installation on my embedded sh7780 target seems to work well - I
can start ped, shelf and other applications. I cannot view files with pv
or use bkgdmgr, however.

Here is my session

# Welcome to QNX Neutrino on HiCO.SH7780
# uname -a
QNX localhost 6.4.1 2009/05/20-17:34:08EDT hico7780 shle
# photon
# # <photon up and running ok>
# DL_DEBUG=1 pv /usr/photon/images/example.jpg
load_object: attempt load of libAp.so.3
load_elf32: loaded lib at addr 78200000(text) 7820efa0(data)
load_object: attempt load of libph.so.3
load_elf32: loaded lib at addr 78210000(text) 78304390(data)
load_object: attempt load of libm.so.2
load_elf32: loaded lib at addr 78310000(text) 7833aa20(data)
load_object: attempt load of libphexlib.so.3
load_elf32: loaded lib at addr 78340000(text) 7836e810(data)
load_object: attempt load of libimg.so.1
load_elf32: loaded lib at addr 7836f000(text) 7837dcc0(data)
load_object: attempt load of libfont.so.1
load_elf32: loaded lib at addr 7837e000(text) 78385060(data)
dlopen("PtHook.so",0)
load_object: attempt load of PtHook.so
load_elf32: loaded lib at addr 7830c000(text) 7830d710(data)
dlsym(0x8052000,_btext)=0x8042580
Library loaded; type 'add-sym pt_multihook.so 0x8042580' in gdb to load
symbols
dlsym(0x8052000,PtHook)=0x7830c51c

# #< ctrl-C >
# sloginfo
Time             Sev Major Minor Args
Jan 01 00:00:00    5    14     0 tcpip starting
Jan 01 00:00:00    3    14     0 Using pseudo random generator.  See
"random" option
Jan 01 00:00:15    1     8     0 phfont.so: init...
Jan 01 00:00:15    1     8     0 phfont.so: initialized.
Jan 01 00:00:15    1     8     0 phfont.so: '/dev/phfont[<32|64>]'
server installed.
Jan 01 00:00:15    6     8     0 pci_init: found PCI device 126f:501
Jan 01 00:02:03    5     5     0 RegionSet(): rid=62 not found
Jan 01 00:02:03    5     5     0 RegionSet(): rid=42 not found
Jan 01 00:02:03    5     5     0 RegionSet(): rid=42 not found
#           

pv starts and shows an error window with text "Unable to load
example.jpg file"

The example.jpg is a simple image from our web site (I have also tried
different images).                                            

What do the "RegionSet(): rid=42 not found..." mean? Am I maybe missing
some resources on the target? 

BTW: On linux I always use 'strace -e open <program>' in situations like
this. Is there a similiar way to get a trace of all resources which a
given process tries to open on QNX? I'm aware of the dtrace project, but
it probably won't yet work on SH architecture.

 - Martin
          



_______________________________________________

Photon microGUI
http://community.qnx.com/sf/go/post42725
Re: RE: Problems viewing images with pv  
I do have the libraries

# ls /lib/dll/img_codec_*
/lib/dll/img_codec_bmp.so              /lib/dll/img_codec_png.so
/lib/dll/img_codec_gif.so              /lib/dll/img_codec_sgi.so
/lib/dll/img_codec_jpg.so              /lib/dll/img_codec_tga.so
/lib/dll/img_codec_pcx.so

but the img.conf was missing. After copying /opt/qnx641/target/qnx6/etc/system/config/img.conf to my root filesystem I 
am able to view images.

Thanks!
RE: RE: Problems viewing images with pv  
Great! :)

-----Original Message-----
From: Martin Nylund [mailto:community-noreply@qnx.com] 
Sent: Friday, November 27, 2009 9:43 AM
To: photon-graphics
Subject: Re: RE: Problems viewing images with pv

I do have the libraries

# ls /lib/dll/img_codec_*
/lib/dll/img_codec_bmp.so              /lib/dll/img_codec_png.so
/lib/dll/img_codec_gif.so              /lib/dll/img_codec_sgi.so
/lib/dll/img_codec_jpg.so              /lib/dll/img_codec_tga.so
/lib/dll/img_codec_pcx.so

but the img.conf was missing. After copying
/opt/qnx641/target/qnx6/etc/system/config/img.conf to my root filesystem
I am able to view images.

Thanks!




_______________________________________________

Photon microGUI
http://community.qnx.com/sf/go/post42737