comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: HISTOGRAM data type bug?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: HISTOGRAM data type bug? [message #71348 is a reply to message #71347] Mon, 14 June 2010 01:57 Go to previous message
Timm Weitkamp is currently offline  Timm Weitkamp
Messages: 66
Registered: August 2002
Member
chris wrote:
> Hi,
> I observed that IDL 6.4 x64 and 7.1 x64 (Windows 7 x64) crashes each
> time I'd like to do the following:
>
> IDL> test_histo_bug
> % Compiled module: TEST_HISTO_BUG.
> L INT = Array[5, 5]
> L DOUBLE = Array[5, 5]
> H LONG = Array[7]
>
> IDL> test_histo_bug,/crashme
> ->IDL crashes completely
>
>
> pro test_histo_bug,crashme=crashme
> l=$
> [[0,0,0,0,0],$
> [0,1,1,1,1],$
> [0,1,1,1,1],$
> [0,1,1,1,1],$
> [0,1,1,1,2]]
> help,l
> l=keyword_set(crashme)? ulong(l) : double(l)
> h=histogram(l,reverse_indices=r,nbins=7,min=1)
> help,l,h
> end
>
> Is it possible that HISTOGRAMM can't *handle* ULONG values? May be
> someone can shed some light on this behaviour?

This may not shed much light on it, but:

(1) I can reproduce this crash:

IDL> print, !version
{ x86_64 linux unix linux 7.0 Oct 25 2007 64 64}
IDL> test_histo_bug
% Compiled module: TEST_HISTO_BUG.
L INT = Array[5, 5]
L DOUBLE = Array[5, 5]
H LONG = Array[7]
IDL> test_histo_bug,/crashme
L INT = Array[5, 5]
Floating point exception

(2) In the past, I had already seen IDL systematically crashing when I
did certain operations with unsigned integer data types (not only
ULONG, but also UINT; but I don't remember the operations).

Timm
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: symbol font not expoting correctly to EPS from iplot in OSX
Next Topic: Re: Locating sequence of bytes within binary file

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 18:25:40 PDT 2025

Total time taken to generate the page: 0.00172 seconds