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

Home » Public Forums » archive » IDE internal error
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
IDE internal error [message #92717] Tue, 16 February 2016 09:10 Go to next message
greg.addr is currently offline  greg.addr
Messages: 160
Registered: May 2007
Senior Member
IDL Version 8.4, Microsoft Windows (Win32 x86_64 m64).



Here's a weird one. Enter:

IDL> s=['[65.6943,17.4105]','[65.6768,17.4409]','[65.6451,17.4626 ]','[65.6148,17.4793]','[65.5749,17.5018]']
IDL> a=strjoin(s)

then click on 'A' in the 'Variables' window of the IDE. It pops up a window saying -

An internal error occurred during: "compute variable details".
For input string: "65.6943"

But if you reset and delete the last element of s:

IDL> s=['[65.6943,17.4105]','[65.6768,17.4409]','[65.6451,17.4626 ]','[65.6148,17.4793]']
IDL> a=strjoin(s)

everything works as it should.


With 5 elements, this produces the same error:

IDL> s=['[65.6943,17.4105]','[65.6768,17.4409]','[65.6451,17.4626 ]','[65.6148,17.4793]','3']


but this doesn't:

IDL> s=['[65.6943,17.4105]','[65.6768,17.4409]','[65.6451,17.4626 ]','3','3']


What's going on here?
Greg
Re: IDE internal error [message #92719 is a reply to message #92717] Tue, 16 February 2016 12:16 Go to previous messageGo to next message
Dick Jackson is currently offline  Dick Jackson
Messages: 347
Registered: August 1998
Senior Member
On Tuesday, 16 February 2016 09:10:58 UTC-8, greg...@googlemail.com wrote:
> IDL Version 8.4, Microsoft Windows (Win32 x86_64 m64).
>
>
>
> Here's a weird one. Enter:
>
> IDL> s=['','','','','']
> IDL> a=strjoin(s)
>
> then click on 'A' in the 'Variables' window of the IDE. It pops up a window saying -
>
> An internal error occurred during: "compute variable details".
> For input string: "65.6943"
>
> But if you reset and delete the last element of s:
>
> IDL> s=['','','','']
> IDL> a=strjoin(s)
>
> everything works as it should.
>
>
> With 5 elements, this produces the same error:
>
> IDL> s=['','','','','3']
>
>
> but this doesn't:
>
> IDL> s=['','','','3','3']
>
>
> What's going on here?
> Greg

That is indeed strange. I see the same thing with "IDL Version 8.5.1, Microsoft Windows (Win32 x86 m32)."

You can make the test even simpler:

IDL> a=''
; works fine

IDL> a=' '
; even adding a blank causes failure in variable inspector

These strings cause errors reporting the number I mark below (view this with a fixed-width font... and with a width > 80!):

IDL> a='11.1111,22.2222] '
IDL> ; ^^^^^^^
IDL> a=' '
IDL> ; ^^^^^^^
IDL> a='111.1111,22.2222]333.3333,44.4444] '
IDL> ; ^^^^^^^
IDL> c='123456789012345678901234567890123456789012345678901234567 8901234567890'
IDL> ; OK!

This caused a different error:
IDL> c='[12345678901234567890123456789012345678901234567890123456 78901234567890'
IDL> ;An internal error occurred during: "compute variable details".
IDL> ;String index out of range: -1
IDL> c='123456789012345678901234567890123456789012345678901234567 8901234567890'
IDL> ; OK!
IDL> c='123456789012345678901234567890123456789012345678901234567 8901234567['
IDL> ; OK
IDL> c='123456789012345678901234567890123456789012345678901234567 89012345678['
IDL> ; String index out of range: -1

IDL> c='[12345][6789012345678901234567890123456789012345678901234 56789012345678'
IDL> ; displays value as: "null"!

If you file a bug report, I'll bet it will get fixed. Very curious.

Cheers,
-Dick

Dick Jackson Software Consulting Inc.
Victoria, BC, Canada --- http://www.d-jackson.com
Re: IDE internal error [message #92721 is a reply to message #92719] Wed, 17 February 2016 02:48 Go to previous message
greg.addr is currently offline  greg.addr
Messages: 160
Registered: May 2007
Senior Member
On Tuesday, February 16, 2016 at 9:16:19 PM UTC+1, Dick Jackson wrote:
> On Tuesday, 16 February 2016 09:10:58 UTC-8, greg...@googlemail.com wrote:
>> IDL Version 8.4, Microsoft Windows (Win32 x86_64 m64).
>>
>>
>>
>> Here's a weird one. Enter:
>>
>> IDL> s=['[65.6943,17.4105]','[65.6768,17.4409]','[65.6451,17.4626 ]','[65.6148,17.4793]','[65.5749,17.5018]']
>> IDL> a=strjoin(s)
>>
>> then click on 'A' in the 'Variables' window of the IDE. It pops up a window saying -
>>
>> An internal error occurred during: "compute variable details".
>> For input string: "65.6943"
>>
>> But if you reset and delete the last element of s:
>>
>> IDL> s=['[65.6943,17.4105]','[65.6768,17.4409]','[65.6451,17.4626 ]','[65.6148,17.4793]']
>> IDL> a=strjoin(s)
>>
>> everything works as it should.
>>
>>
>> With 5 elements, this produces the same error:
>>
>> IDL> s=['[65.6943,17.4105]','[65.6768,17.4409]','[65.6451,17.4626 ]','[65.6148,17.4793]','3']
>>
>>
>> but this doesn't:
>>
>> IDL> s=['[65.6943,17.4105]','[65.6768,17.4409]','[65.6451,17.4626 ]','3','3']
>>
>>
>> What's going on here?
>> Greg
>
> That is indeed strange. I see the same thing with "IDL Version 8.5.1, Microsoft Windows (Win32 x86 m32)."
>
> You can make the test even simpler:
>
> IDL> a='[65.6944,17.4105][65.6768,17.4409][65.6451,17.4626][65.61 48,17.4793]'
> ; works fine
>
> IDL> a='[65.6943,17.4105][65.6768,17.4409][65.6451,17.4626][65.61 48,17.4793] '
> ; even adding a blank causes failure in variable inspector
>
> These strings cause errors reporting the number I mark below (view this with a fixed-width font... and with a width > 80!):
>
> IDL> a='11.1111,22.2222][33.3333,44.4444][55.5555,66.6666][77.777 7,88.8888] '
> IDL> ; ^^^^^^^
> IDL> a='[11.1111,22.2222][33.3333,44.4444][55.5555,66.6666][77.77 77,88.8888] '
> IDL> ; ^^^^^^^
> IDL> a='111.1111,22.2222]333.3333,44.4444][55.5555,66.6666][77.77 77,88.8888] '
> IDL> ; ^^^^^^^
> IDL> c='123456789012345678901234567890123456789012345678901234567 8901234567890'
> IDL> ; OK!
>
> This caused a different error:
> IDL> c='[12345678901234567890123456789012345678901234567890123456 78901234567890'
> IDL> ;An internal error occurred during: "compute variable details".
> IDL> ;String index out of range: -1
> IDL> c='123456789012345678901234567890123456789012345678901234567 8901234567890'
> IDL> ; OK!
> IDL> c='123456789012345678901234567890123456789012345678901234567 8901234567['
> IDL> ; OK
> IDL> c='123456789012345678901234567890123456789012345678901234567 89012345678['
> IDL> ; String index out of range: -1
>
> IDL> c='[12345][6789012345678901234567890123456789012345678901234 56789012345678'
> IDL> ; displays value as: "null"!
>
> If you file a bug report, I'll bet it will get fixed. Very curious.
>
> Cheers,
> -Dick
>
> Dick Jackson Software Consulting Inc.
> Victoria, BC, Canada --- http://www.d-jackson.com

Perhaps the IDE is trying to do some regex processing on the displayed values, since the guilty strings contain '[', ']' and '.' (might explain why it always displays '\' as '\\')

I sent a bug report.
cheers,
Greg
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Dimension Keywords
Next Topic: Connect STK and IDL ?

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

Current Time: Wed Oct 08 09:22:44 PDT 2025

Total time taken to generate the page: 0.00397 seconds