[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[IDV #AKQ-639460]: isl script not working today, worked yesterday - X server?



Brian,

The IDV needs a "screen" (virtual or otherwise) to display to. I don't have much
experience working with Xvfb.

Googling around, I found this old post on this topic

http://www.unidata.ucar.edu/mailing_lists/archives/idvusers/2010/msg00002.html

Some the information therein is irrelevant so you will have to separate the
wheat from the chaff.

So it looks like you will have to download and install Xvfb on the host system
in question.

Then you start it with

Xvfb :9 -screen 0 1280x1280x24 &

As explained, you should be able to find that process in the process table.

Then, theoretically, you should be able to run your ISL script from cron.

I am curious to know the result of this exercise.

Best,

Unidata IDV Support

> The problem depends on the X11 of the laptop I am ssh -Y ing in from.
> I restarted the X11 on the laptop, and now it runs.
> 
> But what will happen if I try to make it a cron job??
> I know nothing about Xvfb or how to set that up. Tom, were you going to help 
> me with that?
> 
> 
> ----------------------
> So now I get these errors: sounds like IDV 5.0 stuff for sure.
> ERROR: Error invoking method: 
> ucar.unidata.data.GeoSelection.setUseViewBounds(boolean)
> Unable to find method: ucar.unidata.data.GeoSelection.setUseViewBounds
> java.lang.IllegalArgumentException: Unable to find method: 
> ucar.unidata.data.GeoSelection.setUseViewBounds
> 
> --------------
> But the process does go on:
> Line and element ratio = 1
> 3D [dev] 1.6.0-pre9-daily-experimental daily
> new x y strides: 1 1
> new x y strides: 0 0
> new x y strides: 0 0
> new x y strides: 1 1
> new x y strides: 0 0
> new x y strides: 1 1
> new x y strides: 0 0
> new x y strides: 1 1
> new x y strides: 0 0
> ...
> 
> 
> And, in the end, it does finish and creates a loop file, but with the wind 
> vector striding lost (way too many arrows), and some time frames missing (the 
> early ones with satellite data on them -- only the forecast times with 
> model-only displays are in the animated .gif).
> http://weather.rsmas.miami.edu/repository/entry/show/RSMAS-UM+Repository+for+atm-ocean+data+and+its+science/The+Mapes+IDV+collection/IDV+Bundles/Displays+of+remote+datasets+%28.xidv%29/1.+Favorite+current-weather+loops/Asia/Latest+Monsoon+Loop/MonsoonLoop.gif?entryid=synth%3A210b09fa-9aba-4810-a442-b899b00ae665%3AL01vbnNvb25Mb29wLmdpZg%3D%3D<http://weather.rsmas.miami.edu/repository/entry/show/RSMAS-UM+Repository+for+atm-ocean+data+and+its+science/The+Mapes+IDV+collection/IDV+Bundles/Displays+of+remote+datasets+(.xidv)/1.+Favorite+current-weather+loops/Asia/Latest+Monsoon+Loop/MonsoonLoop.gif?entryid=synth:210b09fa-9aba-4810-a442-b899b00ae665:L01vbnNvb25Mb29wLmdpZg==>
> 
> 
> ...
> final error messages:
> 
> X11Util.Display: Shutdown (JVM shutdown: true, open (no close attempt): 4/4, 
> reusable (open, marked uncloseable): 0, pending (open in creation order): 4)
> X11Util: Open X11 Display Connections: 4
> X11Util: Open[0]: NamedX11Display[localhost:10.0, 0x7f55d40065c0, refCount 1, 
> unCloseable false]
> X11Util: Open[1]: NamedX11Display[localhost:10.0, 0x7f55d401c700, refCount 1, 
> unCloseable false]
> X11Util: Open[2]: NamedX11Display[localhost:10.0, 0x7f55d402c280, refCount 1, 
> unCloseable false]
> X11Util: Open[3]: NamedX11Display[localhost:10.0, 0x7f55d4045bc0, refCount 1, 
> unCloseable false]
> 
> 
> 
> On Jun 12, 2014, at 11:04 AM, Unidata IDV Support wrote:
> 
> Brian,
> 
> Please do the following experiment for me.
> 
> Instead of running an ISL script, simply start the IDV. What happens?
> 
> Also if this is a machine with no console, I assume you have figured out the X
> virtual framebuffer (Xvfb) business?
> 
> Also is this a new problem since 5.0?
> 
> Please keep us up-to-date on your progress.
> 
> Best,
> 
> Unidata IDV Support
> 
> 
> When I launch this simple isl script, it fails.
> 
> MIT-MAGIC-COOKIE smells like an X window thing.
> How is that handled on a machine with no console?
> Is there something I need to restart?
> 
> Thanx,
> Brian
> 
> 
> ---------- ERROR:
> 
> weather.rsmas.miami.edu<http://weather.rsmas.miami.edu>{bmapes} 104:  
> /home/bmapes/makeIDVloop 6:43:45pm: ~bmapes/IDV_5.0/runIDV5GB myloop.isl &
> 
> weather.rsmas.miami.edu<http://weather.rsmas.miami.edu>{bmapes} 105:  
> /home/bmapes/makeIDVloop 6:43:54pm: Invalid MIT-MAGIC-COOKIE-1 keyException 
> in thread "main" java.lang.NoClassDefFoundError: Could not initialize class 
> javax.swing.RepaintManager
> at javax.swing.JComponent.repaint(Unknown Source)
> at java.awt.Component.repaint(Unknown Source)
> at javax.swing.text.JTextComponent.setEditable(Unknown Source)
> at javax.swing.text.JTextComponent.<init>(Unknown Source)
> at javax.swing.JTextArea.<init>(Unknown Source)
> at javax.swing.JTextArea.<init>(Unknown Source)
> at ucar.unidata.util.LogUtil.checkConsole(LogUtil.java:690)
> at ucar.unidata.util.LogUtil.consoleMessage(LogUtil.java:702)
> at ucar.unidata.util.LogUtil.printException(LogUtil.java:897)
> at ucar.unidata.util.LogUtil.printException(LogUtil.java:817)
> at 
> ucar.unidata.idv.IntegratedDataViewer.logException(IntegratedDataViewer.java:3072)
> at ucar.unidata.idv.IntegratedDataViewer.<init>(IntegratedDataViewer.java:310)
> at ucar.unidata.idv.IntegratedDataViewer.<init>(IntegratedDataViewer.java:225)
> at ucar.unidata.idv.DefaultIdv.<init>(DefaultIdv.java:84)
> at ucar.unidata.idv.DefaultIdv.main(DefaultIdv.java:165)
> 
> [1]    Exit 1                        ~bmapes/IDV_5.0/runIDV5GB myloop.isl
> 
> 
> 
> the simple isl script:
> 
> 
> weather.rsmas.miami.edu<http://weather.rsmas.miami.edu>{bmapes} 105:  
> /home/bmapes/makeIDVloop 6:43:54pm: more myloop.isl
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <isl debug="true" loop="1" offscreen="true" sleep="60.0minutes">
> <bundle clear="true" 
> file="/home/bmapes/makeIDVloop/Monsoon-GEFS-7day-from-1day-obs.xidv" 
> wait="true"/>
> <movie file="/data2/brian/IDVloops/MonsoonLoop.gif"/>
> </isl>
> 
> 
> Brian Mapes
> address@hidden<mailto:address@hidden>
> 
> 
> 
> 
> 
> 
> Ticket Details
> ===================
> Ticket ID: AKQ-639460
> Department: Support IDV
> Priority: Normal
> Status: Closed
> 
> 
> Brian Mapes
> address@hidden<mailto:address@hidden>
> 
> 
> 
> 
> 


Ticket Details
===================
Ticket ID: AKQ-639460
Department: Support IDV
Priority: Normal
Status: Closed


NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.