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

Home » Public Forums » archive » Re: Segmentation fault on Mac Intel Core 2 Duo
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
Re: Segmentation fault on Mac Intel Core 2 Duo [message #50353] Thu, 28 September 2006 06:50 Go to next message
Maarten[1] is currently offline  Maarten[1]
Messages: 176
Registered: November 2005
Senior Member
Xavi Llort wrote:

> I've installed IDL 6.1 on a brand new Mac Intel Core-2-Duo (so, running
> on rossetta), and it works fine with calculations. But it is not able
> to create windows:
>
> IDL> window,1
> Segmentation fault
> pluja:/Applications/rsi/idl_6.1/bin xavi$
>
> Any ideas of what can be wrong?

X11 not running? DISPLAY environment variable not set correctly? What
does
print, getenv("DISPLAY")
give you?

Maarten
Re: Segmentation fault on Mac Intel Core 2 Duo [message #50355 is a reply to message #50353] Thu, 28 September 2006 05:11 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Xavi Llort writes:

>
> I've installed IDL 6.1 on a brand new Mac Intel Core-2-Duo (so, running
> on rossetta), and it works fine with calculations. But it is not able
> to create windows:
>
> IDL> window,1
> Segmentation fault
> pluja:/Applications/rsi/idl_6.1/bin xavi$
>
> Any ideas of what can be wrong?

Have you read this article?

http://www.dfanning.com/tips/maccrash.html

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: Segmentation fault on Mac Intel Core 2 Duo [message #50473 is a reply to message #50355] Fri, 29 September 2006 09:18 Go to previous message
Karl Schultz is currently offline  Karl Schultz
Messages: 341
Registered: October 1999
Senior Member
On Thu, 28 Sep 2006 06:11:08 -0600, David Fanning wrote:

> Xavi Llort writes:
>
>>
>> I've installed IDL 6.1 on a brand new Mac Intel Core-2-Duo (so, running
>> on rossetta), and it works fine with calculations. But it is not able
>> to create windows:
>>
>> IDL> window,1
>> Segmentation fault
>> pluja:/Applications/rsi/idl_6.1/bin xavi$
>>
>> Any ideas of what can be wrong?
>
> Have you read this article?
>
> http://www.dfanning.com/tips/maccrash.html
>
Good thought, but he's running 6.1 and IDL 6.1 uses :0.0 if DISPLAY is not
set. 6.3 might segfault on a mac if DISPLAY is not set. The next release
of IDL fixes this problem, going back to using :0.0 if DISPLAY is not set.

But I still strongly suggest that Mac users make some effort to set
DISPLAY to the correct value by launching from an xterm or doing some
other script magic if they insist on using Terminal. Note that if the
machine is being used by more than one person with Fast User Switching, a
given X server may not always be at :0.0!!!!

Xavi should consider getting the IDL 6.3 release, which contains Mac Intel
binaries. They will run about twice as fast as the ppc bits under Rosetta
emulation.

I doubt we (ITTVIS) would look into this problem very deeply since 6.1 is
an old release. But there should be a crash log on the machine for idl
and if Xavi wants to send me the crash log (kschultz at ittvis dot com), I
could take a quick look.

Karl
Re: Segmentation fault on Mac Intel Core 2 Duo [message #50480 is a reply to message #50353] Fri, 29 September 2006 01:57 Go to previous message
Xavi Llort is currently offline  Xavi Llort
Messages: 15
Registered: September 2006
Junior Member
Variable DISPLAY seem to be fine.. And X11 work well for all the other
programs (including those who generate windows). I will continue
searching...

IDL> print, getenv("DISPLAY")
:0.0


>
> X11 not running? DISPLAY environment variable not set correctly? What
> does
> print, getenv("DISPLAY")
> give you?
>
> Maarten
Re: Segmentation fault on Mac Intel Core 2 Duo [message #50491 is a reply to message #50355] Thu, 28 September 2006 10:59 Go to previous message
Xavi Llort is currently offline  Xavi Llort
Messages: 15
Registered: September 2006
Junior Member
Thank you for the help, but did not solve my problem. I used the
solution proposed and I got the same problem even asking "help,
/device"

pluja:~ xavi$ echo $DISPLAY
:0.0
pluja:~ xavi$ currentUser=`(set \`whoami\`; echo $1)`
pluja:~ xavi$ X11_FOLDER=/tmp/.X11-unix
pluja:~ xavi$ bb=`ls -l $X11_FOLDER | grep $currentUser`
pluja:~ xavi$ bbb=${bb/*X/:}
pluja:~ xavi$ usedDISPLAY=$bbb.0
pluja:~ xavi$ export DISPLAY=$usedDISPLAY
pluja:~ xavi$ echo $DISPLAY
:0.0

And then iside IDL:

IDL> help, /DEVICE
Available Graphics Devices: CGM HP LJ NULL PCL PRINTER PS REGIS TEK X Z
Current graphics device: X
Segmentation fault
pluja:/Applications/rsi/idl_6.1/bin xavi$

Thanks again,
Xavi

David Fanning wrote:
> Xavi Llort writes:
>
>>
>> I've installed IDL 6.1 on a brand new Mac Intel Core-2-Duo (so, running
>> on rossetta), and it works fine with calculations. But it is not able
>> to create windows:
>>
>> IDL> window,1
>> Segmentation fault
>> pluja:/Applications/rsi/idl_6.1/bin xavi$
>>
>> Any ideas of what can be wrong?
>
> Have you read this article?
>
> http://www.dfanning.com/tips/maccrash.html
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: READ TOMS AEROSOL
Next Topic: RMS of background

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

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

Total time taken to generate the page: 0.00458 seconds