Coder Social home page Coder Social logo

Comments (11)

ktsujister avatar ktsujister commented on August 17, 2024

I'm using ssh -Y from my Mac OS X Lion to ubuntu 12 machine which has incanter (1.3.0) code, and graphs are displayed properly.
What's your environment, and is environmental variable $DISPLAY set?

from incanter.

rlbdv avatar rlbdv commented on August 17, 2024

Kei Tsuji [email protected] writes:

I'm using ssh -Y from my Mac OS X Lion to ubuntu 12 machine which has
incanter (1.3.0) code, and graphs are displayed properly. What's your
environment, and is environmental variable $DISPLAY set?

I tested with a relatively current Debian unstable machine connecting to
itself via "ssh -Y foo@localhost"; other X apps like xeyes work fine
over that link.

Also, I'm using this project.clj:

(defproject incanter-helloworld "0.1.0"
:description "The Incanter version of hello world."
:dependencies [[incanter "1.3.0"]])

this core.clj:

(ns incanter-test.core
(:use (incanter core stats charts)))

(defn main [& args](let [lengths %28read%29]
%28view %28histogram lengths :nbins 100%29%29))

(main command-line-args)

and this invocation:

java -cp 'lib/*' clojure.main src/incanter_test/core.clj < lengths

That works fine when logged in directly, but not over ssh.

Oh, and here's the java version:

$ java -version
java version "1.7.0_03"
OpenJDK Runtime Environment (IcedTea7 2.1.3) (7u3-2.1.3-1)
OpenJDK 64-Bit Server VM (build 22.0-b10, mixed mode)

Thanks for the help.

Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4

from incanter.

ktsujister avatar ktsujister commented on August 17, 2024

From: rlbdv [email protected]
Subject: Re: [incanter] Incanter produces a blank window over ssh -X or -Y (#97)
Date: Thu, 08 Nov 2012 19:38:22 -0800

I tested with a relatively current Debian unstable machine connecting to
itself via "ssh -Y foo@localhost"; other X apps like xeyes work fine
over that link.
..
and this invocation:

java -cp 'lib/*' clojure.main src/incanter_test/core.clj < lengths

That works fine when logged in directly, but not over ssh.

Oh, and here's the java version:

$ java -version
java version "1.7.0_03"
OpenJDK Runtime Environment (IcedTea7 2.1.3) (7u3-2.1.3-1)
OpenJDK 64-Bit Server VM (build 22.0-b10, mixed mode)

I tested like below.

project.clj
(defproject incanter-helloworld "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:dependencies [[org.clojure/clojure "1.4.0"]
[incanter/incanter-core "1.3.0"]
[incanter/incanter-charts "1.3.0"]]
:main incanter-helloworld.core)

core.clj
(ns incanter-helloworld.core
(:use (incanter core stats charts))
(:gen-class))

(defn -main [& args](let [lengths %28read%29]
%28view %28histogram lengths%29%29))

% lein version
Leiningen 2.0.0-preview10 on Java 1.7.0 Java HotSpot(TM) 64-Bit Server VM

% java -version
java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) 64-Bit Server VM (build 21.0-b17, mixed mode)

and I tested with
% lein trampoline run < lengths

and your sample still worked.

So I'm not sure if this is incanter's issue.

ktsuji

from incanter.

rlbdv avatar rlbdv commented on August 17, 2024

Kei Tsuji [email protected] writes:

I tested like below.

[...]

and your sample still worked.

So I'm not sure if this is incanter's issue.

I tried something similar to your example, and still saw the blank
screen.

Though I'm also running xmonad; perhaps its insistence on resizing the
window is causing trouble -- I'll see about testing without it.

I suppose it could also have something to do with Debian (or just Linux)
as the ssh (X) client. I don't know if it's convenient, but if you
happen to have vnc access (or similar) to your Ubuntu machine, you might
be able to test that too.

Thanks

Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4

from incanter.

samrat avatar samrat commented on August 17, 2024

@rlbdv I was just wondering if you ever fixed this. I'm using xmonad too and having the same issue as you. I'm not ssh-ing though.

from incanter.

rlbdv avatar rlbdv commented on August 17, 2024

Samrat Man Singh [email protected] writes:

@rlbdv I was just wondering if you ever fixed this. I'm using xmonad
too and having the same issue as you. I'm not ssh-ing though.

I haven't tried in a while, but no I never got it to work.

I believe it worked when I ran incanter locally, but I'm not sure I was
using xmonad with that account -- so I suppose it could be related to
xmonad rather than to ssh X forwarding.

I'll try to test locally with xmonad when I get a chance.

Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4

from incanter.

rlbdv avatar rlbdv commented on August 17, 2024

I finally got around to testing this more directly, and it looks like it probably does have something to do with xmonad. For example, on a (recent) Debian system, with xmonad installed, a "(view (histogram (sample-normal 1000)))" produces a blank window if I log in via gdm3 to an xmonad or xmonad+gnome session. It behaves normally with a plain gnome session.

Please let me know if I can provide any further information, and I'll probably contact the xmonad developers as well.

Thanks.

from incanter.

rlbdv avatar rlbdv commented on August 17, 2024

The xmonad community had the answer -- it appears to be a known java (AWT) problem, and one solution is to export _JAVA_AWT_WM_NONREPARENTING=1 before running incanter.

http://code.google.com/p/xmonad/issues/detail?id=544

So I suspect it's safe to close this bug.

from incanter.

alexott avatar alexott commented on August 17, 2024

Thank you, I'lm closing the bug

from incanter.

denlab avatar denlab commented on August 17, 2024

Just for info: A friend of mine ( @ardumont ) has the same kind of problem with the StumpWM window manager.

from incanter.

ardumont avatar ardumont commented on August 17, 2024

Yes, I concur with @denlab, I have the problem on stumpwm.
And yes, this export variable solve this. So, not a incanter problem.

Thanks, I will no longer need to switch!!!

from incanter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.