2010/5/11 Jan Groenewald <[email protected]>:
> Hi

  Hi,

> On Fri, May 07, 2010 at 09:55:02AM -0700, Rob Beezer wrote:
>> Sounds like Dan Drake has a simple test working on a clean 10.04
>> install (thanks, Dan!), so that is good news, I believe.  If you want
>> to test your setup, in the notebook, try something simple like just
>>
>> var('x y')
>> plot3d(x^2+y^2, (x,-2,2), (y,-2,2))
>> and that should be good enough for openers.
>
> Maybe something to do with either
> 1) my crappy graphics card
> a...@numsha:~$ lspci|grep VGA
> 01:00.0 VGA compatible controller: ATI Technologies Inc RV350 [Mobility 
> Radeon 9600 M10], (using open source drivers, I always found fglrx 
> proprietary ATI drivers buggy), or
> 2) that I had sun-java6 installed and purged it again (and confirmed 
> /etc/alternatives pointed at openjdk)
>
> But then above plot does not work for me :(
>
> The plot is just black, clicking Get Image opens
> a separate window which shows another black plot,
> which when attempting to drag to the desktop says
> error getting information about "=9k" and fails to copy.
> When you right clikc you can copy, but "paste" is disabled
> (greyed out) in the context menu when attempting to put this
> on the desktop. Also right click on the image and save as
> gives a black square window when opened in the default viewer,
> eog (eye of gnome).
>
> During this firefox at "about:plugins" (in the address bar)
> says: IcedTea NPR Web Browser Plugin (using IcedTea6 1.8 (6b18-1.8-0ubuntu1))
>    File: IcedTeaPlugin.so
>    Version:
>    The IcedTea NPR Web Browser Plugin (using IcedTea6 1.8 
> (6b18-1.8-0ubuntu1)) executes Java applets.
> and then lists versions from 1.1 to 1.6.0_18 all enabled.
>
> The terminal where sage was launched says:
>
> 2010-05-11 09:39:00+0200 [-] Starting factory 
> <twisted.web2.channel.http.HTTPFactory instance at 0xb6c912c>
> java version "1.6.0_18"
> OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8-0ubuntu1)
> OpenJDK Client VM (build 14.0-b16, mixed mode, sharing)
> java.io.FileNotFoundException: /home/jan/.icedteaplugin/java.stderr (No such 
> file or directory)
>        at java.io.FileOutputStream.open(Native Method)
>        at java.io.FileOutputStream.<init>(FileOutputStream.java:209)
>        at java.io.FileOutputStream.<init>(FileOutputStream.java:160)
>        at sun.applet.PluginMain.<init>(PluginMain.java:130)
>        at sun.applet.PluginMain.main(PluginMain.java:116)
> 2010-05-11 09:42:12+0200 [HTTPChannel,6,127.0.0.1] Request error: Connection 
> to the other side was lost in a non-clean fashion.
> script compiler ERROR: command expected
> ----line 1 command 1 of /home/admin/0/cells/2/sage0-size500.jmol?1273563709:
>          >>>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <<<<
> script ERROR: script compiler ERROR: command expected
> ----line 1 command 1 of /home/admin/0/cells/2/sage0-size500.jmol?1273563709:
>          >>>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <<<<
> eval ERROR:
> ----line 1 command 1:
>         script >> "/home/admin/0/cells/2/sage0-size500.jmol?1273563709" <<

  Does jmol work from the command line?

> So I close sage and install sun-java6 from the partner repositories:
>
> aptitude install sun-java6-jdk sun-java6-jre sun-java6-bin sun-java6-fonts 
> sun-java6-plugin (and agree to the licenses)
>
> It seems alternatives are now updated for me, and I do not need to.
>
> <snip>
> The following NEW packages will be installed:
>  sun-java6-bin sun-java6-fonts sun-java6-jdk sun-java6-jre sun-java6-plugin
> 0 packages upgraded, 5 newly installed, 0 to remove and 3 not upgraded.
> Need to get 56.6MB of archives. After unpacking 165MB will be used.
> Writing extended state information... Done
> Get:1 http://proxy.aims.ac.za/apt-cacher/archive.canonical.com/ubuntu/ 
> lucid/partner sun-java6-jre 6.20dlj-1ubuntu3 [6,410kB]
> Get:2 http://proxy.aims.ac.za/apt-cacher/archive.canonical.com/ubuntu/ 
> lucid/partner sun-java6-bin 6.20dlj-1ubuntu3 [29.4MB]
> Get:3 http://proxy.aims.ac.za/apt-cacher/archive.canonical.com/ubuntu/ 
> lucid/partner sun-java6-jdk 6.20dlj-1ubuntu3 [20.7MB]
> Get:4 http://proxy.aims.ac.za/apt-cacher/archive.canonical.com/ubuntu/ 
> lucid/partner sun-java6-fonts 6.20dlj-1ubuntu3 [1,876B]
> Get:5 http://proxy.aims.ac.za/apt-cacher/archive.canonical.com/ubuntu/ 
> lucid/partner sun-java6-plugin 6.20dlj-1ubuntu3 [1,850B]
> Fetched 56.6MB in 8s (6,917kB/s)
> Preconfiguring packages ...
> Selecting previously deselected package sun-java6-jre.
> (Reading database ... 55%
> (Reading database ... 238600 files and directories currently installed.)
> Unpacking sun-java6-jre (from .../sun-java6-jre_6.20dlj-1ubuntu3_all.deb) ...
> Selecting previously deselected package sun-java6-bin.
> Unpacking sun-java6-bin (from .../sun-java6-bin_6.20dlj-1ubuntu3_i386.deb) ...
> sun-dlj-v1-1 license has already been accepted
> Selecting previously deselected package sun-java6-jdk.
> Unpacking sun-java6-jdk (from .../sun-java6-jdk_6.20dlj-1ubuntu3_i386.deb) ...
> sun-dlj-v1-1 license has already been accepted
> Selecting previously deselected package sun-java6-fonts.
> Unpacking sun-java6-fonts (from .../sun-java6-fonts_6.20dlj-1ubuntu3_all.deb) 
> ...
> Selecting previously deselected package sun-java6-plugin.
> Unpacking sun-java6-plugin (from 
> .../sun-java6-plugin_6.20dlj-1ubuntu3_i386.deb) ...
> Processing triggers for shared-mime-info ...
> Processing triggers for desktop-file-utils ...
> Processing triggers for python-gmenu ...
> Rebuilding /usr/share/applications/desktop.en_ZA.utf8.cache...
> Processing triggers for doc-base ...
> Processing 1 added doc-base file(s)...
> Registering documents with scrollkeeper...
> Processing triggers for fontconfig ...
> Processing triggers for python-support ...
> Setting up sun-java6-jre (6.20dlj-1ubuntu3) ...
>
> Setting up sun-java6-fonts (6.20dlj-1ubuntu3) ...
> Updating fontconfig cache for /usr/share/fonts/truetype/ttf-lucida
> No CIDSupplement specified for Batang-Bold, defaulting to 0.
> No CIDSupplement specified for Dotum-Bold, defaulting to 0.
> No CIDSupplement specified for Batang-Regular, defaulting to 0.
> No CIDSupplement specified for Dotum-Regular, defaulting to 0.
>
> Setting up sun-java6-bin (6.20dlj-1ubuntu3) ...
> update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/ControlPanel to 
> provide /usr/bin/ControlPanel (ControlPanel) in auto mode.
> update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/java_vm to provide 
> /usr/bin/java_vm (java_vm) in auto mode.
> update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/jcontrol to 
> provide /usr/bin/jcontrol (jcontrol) in auto mode.
>
> Setting up sun-java6-jdk (6.20dlj-1ubuntu3) ...
> update-alternatives: using /usr/lib/jvm/java-6-sun/bin/HtmlConverter to 
> provide /usr/bin/HtmlConverter (HtmlConverter) in auto mode.
> update-alternatives: using /usr/lib/jvm/java-6-sun/bin/appletviewer to 
> provide /usr/bin/appletviewer (appletviewer) in auto mode.
> update-alternatives: using /usr/lib/jvm/java-6-sun/bin/apt to provide 
> /usr/bin/apt (apt) in auto mode.
> update-alternatives: using /usr/lib/jvm/java-6-sun/bin/extcheck to provide 
> /usr/bin/extcheck (extcheck) in auto mode.
> update-alternatives: using /usr/lib/jvm/java-6-sun/bin/idlj to provide 
> /usr/bin/idlj (idlj) in auto mode.
> update-alternatives: using /usr/lib/jvm/java-6-sun/bin/jar to provide 
> /usr/bin/jar (jar) in auto mode.
> update-alternatives: using /usr/lib/jvm/java-6-sun/bin/jarsigner to provide 
> /usr/bin/jarsigner (jarsigner) in auto mode.
> update-alternatives: using /usr/lib/jvm/java-6-sun/bin/java-rmi.cgi to 
> provide /usr/bin/java-rmi.cgi (java-rmi.cgi) in auto mode.
> update-alternatives: using /usr/lib/jvm/java-6-sun/bin/javac to provide 
> /usr/bin/javac (javac) in auto mode.
> update-alternatives: using /usr/lib/jvm/java-6-sun/bin/javadoc to provide 
> /usr/bin/javadoc (javadoc) in auto mode.
> update-alternatives: using /usr/lib/jvm/java-6-sun/bin/javah to provide 
> /usr/bin/javah (javah) in auto mode.
> update-alternatives: using /usr/lib/jvm/java-6-sun/bin/javap to provide 
> /usr/bin/javap (javap) in auto mode.
> update-alternatives: using /usr/lib/jvm/java-6-sun/bin/jconsole to provide 
> /usr/bin/jconsole (jconsole) in auto mode.
> update-alternatives: using /usr/lib/jvm/java-6-sun/bin/jdb to provide 
> /usr/bin/jdb (jdb) in auto mode.
> update-alternatives: using /usr/lib/jvm/java-6-sun/bin/jhat to provide 
> /usr/bin/jhat (jhat) in auto mode.
> update-alternatives: using /usr/lib/jvm/java-6-sun/bin/jinfo to provide 
> /usr/bin/jinfo (jinfo) in auto mode.
> update-alternatives: using /usr/lib/jvm/java-6-sun/bin/jmap to provide 
> /usr/bin/jmap (jmap) in auto mode.
> update-alternatives: using /usr/lib/jvm/java-6-sun/bin/jps to provide 
> /usr/bin/jps (jps) in auto mode.
> update-alternatives: using /usr/lib/jvm/java-6-sun/bin/jrunscript to provide 
> /usr/bin/jrunscript (jrunscript) in auto mode.
> update-alternatives: using /usr/lib/jvm/java-6-sun/bin/jsadebugd to provide 
> /usr/bin/jsadebugd (jsadebugd) in auto mode.
> update-alternatives: using /usr/lib/jvm/java-6-sun/bin/jstack to provide 
> /usr/bin/jstack (jstack) in auto mode.
> update-alternatives: using /usr/lib/jvm/java-6-sun/bin/jstat to provide 
> /usr/bin/jstat (jstat) in auto mode.
> update-alternatives: using /usr/lib/jvm/java-6-sun/bin/jstatd to provide 
> /usr/bin/jstatd (jstatd) in auto mode.
> update-alternatives: using /usr/lib/jvm/java-6-sun/bin/native2ascii to 
> provide /usr/bin/native2ascii (native2ascii) in auto mode.
> update-alternatives: using /usr/lib/jvm/java-6-sun/bin/rmic to provide 
> /usr/bin/rmic (rmic) in auto mode.
> update-alternatives: using /usr/lib/jvm/java-6-sun/bin/schemagen to provide 
> /usr/bin/schemagen (schemagen) in auto mode.
> update-alternatives: using /usr/lib/jvm/java-6-sun/bin/serialver to provide 
> /usr/bin/serialver (serialver) in auto mode.
> update-alternatives: using /usr/lib/jvm/java-6-sun/bin/wsgen to provide 
> /usr/bin/wsgen (wsgen) in auto mode.
> update-alternatives: using /usr/lib/jvm/java-6-sun/bin/wsimport to provide 
> /usr/bin/wsimport (wsimport) in auto mode.
> update-alternatives: using /usr/lib/jvm/java-6-sun/bin/xjc to provide 
> /usr/bin/xjc (xjc) in auto mode.
>
> Setting up sun-java6-plugin (6.20dlj-1ubuntu3) ...
>
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Reading extended state information
> Initializing package states... Done
> Writing extended state information... Done
> </snip>
>
> Well, almost all alternatives were updated...
>
> r...@numsha:/usr/local/src/sage# ls -l /etc/alternatives/|grep jvm|wc -l
> 88
> r...@numsha:/usr/local/src/sage# ls -l /etc/alternatives/|grep jvm|grep 
> openjdk|wc -l
> 26
> r...@numsha:/usr/local/src/sage# ls -l /etc/alternatives/|grep jvm|grep 
> openjdk|grep -v  gz|wc -l
> (the gz files cannot be set as alternatives, perhaps they are docs)
> 0 r...@numsha:/usr/local/src/sage# ls -l /etc/alternatives/|grep jvm|grep 
> openjdk|grep -v  gz|awk '{print $8}'
> java
> javaws
> jexec
> jexec-binfmt
> keytool
> mozilla-javaplugin.so
> orbd
> pack200
> pluginappletviewer
> policytool
> rmid
> rmiregistry
> servertool
> tnameserv
> unpack200
>
> Firefox still says at about:plugins:
> IcedTea NPR Web Browser Plugin (using IcedTea6 1.8 (6b18-1.8-0ubuntu1))
> and after this
>
> r...@numsha:/usr/local/src/sage# update-alternatives --list 
> mozilla-javaplugin.so
> /usr/lib/jvm/java-6-openjdk/jre/lib/i386/IcedTeaPlugin.so
> /usr/lib/jvm/java-6-sun/jre/lib/i386/libnpjp2.so
> r...@numsha:/usr/local/src/sage# update-alternatives --set 
> mozilla-javaplugin.so /usr/lib/jvm/java-6-sun/jre/lib/i386/libnpjp2.so
> update-alternatives: using /usr/lib/jvm/java-6-sun/jre/lib/i386/libnpjp2.so 
> to provide /usr/lib/mozilla/plugins/libjavaplugin.so (mozilla-javaplugin.so) 
> in manual mode
>
> firefox says Java(TM) Plug-in 1.6.0_20 (without even restarting firefox).
>    File: libnpjp2.so
>    Version:
>    The next generation Java plug-in for Mozilla browsers.
>
> I update all the other alternatives for completeness.
>
>
> t...@numsha:/usr/local/src/sage# for i in `ls -l /etc/alternatives/|grep 
> jvm|grep openjdk|grep -v  gz|awk '{print $8}'`; do update-alternatives --list 
> $i|grep sun; done
> /usr/lib/jvm/java-6-sun/jre/bin/java
> /usr/lib/jvm/java-6-sun/jre/bin/javaws
> /usr/lib/jvm/java-6-sun/jre/lib/jexec
> update-alternatives: error: no alternatives for jexec-binfmt.
> /usr/lib/jvm/java-6-sun/jre/bin/keytool
> /usr/lib/jvm/java-6-sun/jre/bin/orbd
> /usr/lib/jvm/java-6-sun/jre/bin/pack200
> /usr/lib/jvm/java-6-sun/jre/bin/policytool
> /usr/lib/jvm/java-6-sun/jre/bin/rmid
> /usr/lib/jvm/java-6-sun/jre/bin/rmiregistry
> /usr/lib/jvm/java-6-sun/jre/bin/servertool
> /usr/lib/jvm/java-6-sun/jre/bin/tnameserv
> /usr/lib/jvm/java-6-sun/jre/bin/unpack200
>
> ...
>
> update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/java to provide 
> /usr/bin/java (java) in manual mode.
> update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/javaws to provide 
> /usr/bin/javaws (javaws) in manual mode.
> update-alternatives: using /usr/lib/jvm/java-6-sun/jre/lib/jexec to provide 
> /usr/bin/jexec (jexec) in manual mode.
> update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/keytool to provide 
> /usr/bin/keytool (keytool) in manual mode.
> update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/orbd to provide 
> /usr/bin/orbd (orbd) in manual mode.
> update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/pack200 to provide 
> /usr/bin/pack200 (pack200) in manual mode.
> update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/policytool to 
> provide /usr/bin/policytool (policytool) in manual mode.
> update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/rmid to provide 
> /usr/bin/rmid (rmid) in manual mode.
> update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/rmiregistry to 
> provide /usr/bin/rmiregistry (rmiregistry) in manual mode.
> update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/servertool to 
> provide /usr/bin/servertool (servertool) in manual mode.
> update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/tnameserv to 
> provide /usr/bin/tnameserv (tnameserv) in manual mode.
> update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/unpack200 to 
> provide /usr/bin/unpack200 (unpack200) in manual mode.
>
> ...
>
> r...@numsha:/usr/local/src/sage# ls -l /etc/alternatives/|grep jvm|grep 
> openjdk|grep -v  gz|awk '{print $8}'
> pluginappletviewer
> r...@numsha:/usr/local/src/sage# update-alternatives --list pluginappletviewer
> /usr/lib/jvm/java-6-openjdk/jre/bin/pluginappletviewer
> r...@numsha:/usr/local/src/sage#
>
> I.e. only pluginappletviewer has no alternative. I also restart firefox for 
> good measure, though it is using the new plugin already.
>
> It plots OK, the rotation works, clickin on get image opens
> the new window, dragging to desktop fails similarly to before
> (filename issue??) and save image to desktop works, but introduces
> odd background as attached (not in the main notebook, only after
> clicking on 'get image' for a new window.
>
> No errors in the terminal window where sage was launched.
>
>
> regards,
> Jan

  In the mandriva sagemath package, I used signed jmol jars, but may
later revert to the same approach of sagemath.
I did it just to workaround a bug in (at least previous openjdk
versions) where it would not allow popup windows
on tcp connections, even tough the connection is to localhost.

  But I am doing some extra tests in with openjdk, and noticed that it
may not work correctly sometimes if the computer
is not "almost idle" when loading the applet. I did some debugging
yesterday to try to find some problems in opendjk,
and currently, my guess is some pthread_cond_timedwait timing out, and
doing "evil" things, based on the kinds of
stack/data corruptions I found when loading the plugin under a very high load...

  Either way, you should open a bug report at ubuntu, as it may be
some small detail preventing it work correctly.

> --
>   .~.
>   /V\     Jan Groenewald
>  /( )\    www.aims.ac.za
>  ^^-^^
>
> --
> To post to this group, send an email to [email protected]
> To unsubscribe from this group, send an email to 
> [email protected]
> For more options, visit this group at 
> http://groups.google.com/group/sage-devel
> URL: http://www.sagemath.org

Paulo

-- 
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to