LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PDA v8.2 Load PNG Crash Bug

Hi All:
 
If one loads a big PNG file (233 KB) in PDA v8.2 using the PDA Load Image File.vi primitive with Windows Mobile 5.0 device, you get a crash.
 
Attached is a project set to debugging mode with a breakpoint set at the PDA Load Image File.vi primitive.  Before downloading the program, make sure map.png is placed in the My Documents Folder of your Windows Mobile directory.  Download the program in Debug mode.  After stepping through the breakpoint, the device crashes.  I tested this project using a real Windows Mobile 5.0 device.  Don't know about emulator mode.
 
I also attached the original bitmap that I converted to the PNG file using photoshop.  The bitmap is 8-bit (3.3 Megs!) and photoshop tells me the converted PNG is 8 bit.
 
Loading the original large bitmap using PDA Read BMP File.vi primitive works fine.
 
Thanks
Robert
 
 
0 Kudos
Message 1 of 24
(6,981 Views)
Actually Download this attached file.  The previous one may have an incomplete Project.
0 Kudos
Message 2 of 24
(6,980 Views)
Hello Again:
 
I believe the image depth error may be a cause of the crash.  Since LV PDA v8.2 thinks it is loading a 233KB png file with 24 bits, the Windows Mobile device crashes.  The above image files are 8-bit.  See this thread for a history of this image depth bug.  I've also attached another project in that thread.
 
 
Thanks
Robert
0 Kudos
Message 3 of 24
(6,941 Views)
Good Morning Robert,
       Does the error occur with a small PNG file also?  Thanks for including the link to the thread that talks about the image depth bug.  Looking through the bug report, it does not document a crash on a Windows Mobile 5.0 device.  I will look into this issue further and either add the crash behavior to the existing bug report (# 3WG8D7Z0) or create a new one.  I will let you know what I end up doing.  Thank you for your feedback.

NathanT
0 Kudos
Message 4 of 24
(6,927 Views)
Hi Nathan:
 
For small PNG images, the primitive does not crash.
 
Thanks
Robert
0 Kudos
Message 5 of 24
(6,922 Views)
Robert,
      This was reported to R&D (# 42QHE1ZQ).  Thanks for the feedback!

Cheers,

NathanT
0 Kudos
Message 6 of 24
(6,872 Views)
Hi NI:

Whats the status on this bug.  Being able to load large bitmap files & NOT large PNGs or JPGs on PDAs and Mobile Devices really blows.

Robert
0 Kudos
Message 7 of 24
(3,515 Views)

Robert,

I tried re-creating your issue with LabVIEW 8.5 and the PDA module 8.5 found it to be in a similar state in my preliminary testing. I will check with R&D to get an update on the status of the CAR and issue.

Thanks,

Jonah
Applications Engineer
National Instruments 

Jonah Paul
Marketing Manager, NI Software
0 Kudos
Message 8 of 24
(3,480 Views)

Robert,

After discussing the issue further with R&D, I found that the PDA module does not currently support displaying PNG files using the PDA Load Image File VI (only BMP, JPG and GIF file formats are supported). Currently, PNG files can only be used as front panel images, in which it is only available if the LabVIEW PNG support is installed on the PDA.

Cheers,

Jonah
Applications Engineer
National Instruments

Jonah Paul
Marketing Manager, NI Software
0 Kudos
Message 9 of 24
(3,471 Views)
Hi JPaul:

Thanks for replying.  I didn't make myself clear on the last post.  The PDA load image (either JPG, GIF or PNG) does NOT load any file size greater than 250K.  At least that's what I tested so far.  I can probably give you an exact threshold but I don't think a 250K file is that big nor do I have time at the moment.  This error occurs NO MATTER WHAT IMAGE IS LOADED.  It could be JPG, GIF or PNG.  Please look into this because right now only large BMP can be loaded without error.  I can load a 3M bitmap using Load BMP File primitive!

Thank you
Robert
0 Kudos
Message 10 of 24
(3,448 Views)