StatSVN on remote system throwing GTK Display issue

14 messages Options
Embed this post
Permalink
pnathan

StatSVN on remote system throwing GTK Display issue

Reply Threaded More More options
Print post
Permalink
I am trying to set up StatSVN towards the end that it will be a cron job run every night.
However, statSVN dies with a GTK issue. I do not see an option to manage this in the help anywhere.
How do I deal with this?


Detailed situation:
I am SSH'd into a remote system; headless I believe.
(uname: Linux SERVERNAME-REMOVED 2.6.18-92.1.13.el5 #1 SMP Thu Sep 4 03:51:01 EDT 2008 i686 i686 i386 GNU/Linux)

I have my local SVN repository set up and checking out correctly.
I create a log:
 
svn -v --xml > svn.log

I run:

 java -jar statsvn.jar -output-dir ~/public_html/svnstats/statsvn ~/temp/masters-svn/svn.log ~/temp/masters-svn

I get back:
(.:27686): Gtk-WARNING **: cannot open display:
And a set of files in my specified directory:
                         -  
[IMG] bug.png                 08-Oct-2008 17:06  774  
[IMG] file-deleted.png        08-Oct-2008 17:06  359  
[IMG] file.png                08-Oct-2008 17:06  341  
[IMG] folder-deleted.png      08-Oct-2008 17:06  376  
[IMG] folder.png              08-Oct-2008 17:06  379  
[TXT] statcvs.css             08-Oct-2008 17:06  3.2K  


jkealey

Re: StatSVN on remote system throwing GTK Display issue

Reply Threaded More More options
Print post
Permalink
Good evening,

- You're not the first to complain about problems in a headless environment.

- I think StatCVS/StatSVN are supposed to work in a headless environment and
we have some AWT settings so that JFreeChart does work in a headless
environment.
- We probably are doing something wrong in the code to cause this error.
- It merits investigation.

Would you volunteer to file the issue in our issue tracker and track the
issue down?

Thanks,

---
Jason Kealey - [hidden email]
LavaBlast Franchise Software - http://www.lavablast.com
Simplifying day-to-day franchise operations






-----Original Message-----
From: pnathan [mailto:[hidden email]]
Sent: October-08-08 8:13 PM
To: [hidden email]
Subject: [Statsvn-users] StatSVN on remote system throwing GTK Display issue


I am trying to set up StatSVN towards the end that it will be a cron job run
every night.
However, statSVN dies with a GTK issue. I do not see an option to manage
this in the help anywhere.
How do I deal with this?


Detailed situation:
I am SSH'd into a remote system; headless I believe.
(uname: Linux SERVERNAME-REMOVED 2.6.18-92.1.13.el5 #1 SMP Thu Sep 4
03:51:01 EDT 2008 i686 i686 i386 GNU/Linux)

I have my local SVN repository set up and checking out correctly.
I create a log:
 
svn -v --xml > svn.log

I run:

 java -jar statsvn.jar -output-dir ~/public_html/svnstats/statsvn
~/temp/masters-svn/svn.log ~/temp/masters-svn

I get back:
(.:27686): Gtk-WARNING **: cannot open display:
And a set of files in my specified directory:
                         -  
[IMG] bug.png                 08-Oct-2008 17:06  774  
[IMG] file-deleted.png        08-Oct-2008 17:06  359  
[IMG] file.png                08-Oct-2008 17:06  341  
[IMG] folder-deleted.png      08-Oct-2008 17:06  376  
[IMG] folder.png              08-Oct-2008 17:06  379  
[TXT] statcvs.css             08-Oct-2008 17:06  3.2K  



--
View this message in context:
http://n2.nabble.com/StatSVN-on-remote-system-throwing-GTK-Display-issue-tp1
308153p1308153.html
Sent from the StatSVN Users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Statsvn-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/statsvn-users


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Statsvn-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/statsvn-users
pnathan

Re: StatSVN on remote system throwing GTK Display issue

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Hi,
I'll try to get it hooked into the Sourceforge bugtracker.
However, my java knowledge is finite and I may not be able to actually fix it.
I'll do what I can though.



Paul Nathan



On Oct 8, 2008, at 6:39 PM, Jason Kealey wrote:

Good evening,

- You're not the first to complain about problems in a headless environment.

- I think StatCVS/StatSVN are supposed to work in a headless environment and
we have some AWT settings so that JFreeChart does work in a headless
environment. 
- We probably are doing something wrong in the code to cause this error. 
- It merits investigation. 

Would you volunteer to file the issue in our issue tracker and track the
issue down? 

Thanks,

---
Jason Kealey - [hidden email]
LavaBlast Franchise Software - http://www.lavablast.com
Simplifying day-to-day franchise operations






-----Original Message-----
From: pnathan [[hidden email]] 
Sent: October-08-08 8:13 PM
Subject: [Statsvn-users] StatSVN on remote system throwing GTK Display issue


I am trying to set up StatSVN towards the end that it will be a cron job run
every night.
However, statSVN dies with a GTK issue. I do not see an option to manage
this in the help anywhere.
How do I deal with this?


Detailed situation:
I am SSH'd into a remote system; headless I believe.
(uname: Linux SERVERNAME-REMOVED 2.6.18-92.1.13.el5 #1 SMP Thu Sep 4
03:51:01 EDT 2008 i686 i686 i386 GNU/Linux) 

I have my local SVN repository set up and checking out correctly.
I create a log:

svn -v --xml > svn.log

I run:

 java -jar statsvn.jar -output-dir ~/public_html/svnstats/statsvn
~/temp/masters-svn/svn.log ~/temp/masters-svn

I get back: 
(.:27686): Gtk-WARNING **: cannot open display:
And a set of files in my specified directory:
                         -   
[IMG] bug.png                 08-Oct-2008 17:06  774   
[IMG] file-deleted.png        08-Oct-2008 17:06  359   
[IMG] file.png                08-Oct-2008 17:06  341   
[IMG] folder-deleted.png      08-Oct-2008 17:06  376   
[IMG] folder.png              08-Oct-2008 17:06  379   
[TXT] statcvs.css             08-Oct-2008 17:06  3.2K  



-- 
View this message in context:
308153p1308153.html
Sent from the StatSVN Users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
_______________________________________________
Statsvn-users mailing list



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Statsvn-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/statsvn-users
jkealey

Re: StatSVN on remote system throwing GTK Display issue

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

Pinpointing where/when the exception is thrown would be a great start. Usually, with a debugger, it would be easy, but since you’re running on a headless machine, it could be tricky.

 

Thanks,

Jason

 

From: Paul Nathan [mailto:[hidden email]]
Sent: October-08-08 10:32 PM
To: Jason Kealey
Cc: [hidden email]
Subject: Re: [Statsvn-users] StatSVN on remote system throwing GTK Display issue

 

Hi,

I'll try to get it hooked into the Sourceforge bugtracker.

However, my java knowledge is finite and I may not be able to actually fix it.

I'll do what I can though.

 

 

 

Paul Nathan

 

 

 

On Oct 8, 2008, at 6:39 PM, Jason Kealey wrote:



Good evening,

 

- You're not the first to complain about problems in a headless environment.

 

- I think StatCVS/StatSVN are supposed to work in a headless environment and

we have some AWT settings so that JFreeChart does work in a headless

environment. 

- We probably are doing something wrong in the code to cause this error. 

- It merits investigation. 

 

Would you volunteer to file the issue in our issue tracker and track the

issue down? 

 

Thanks,

 

---

Jason Kealey - [hidden email]

LavaBlast Franchise Software - http://www.lavablast.com

Simplifying day-to-day franchise operations

 

 

 

 

 

 

-----Original Message-----

From: pnathan [[hidden email]] 

Sent: October-08-08 8:13 PM

Subject: [Statsvn-users] StatSVN on remote system throwing GTK Display issue

 

 

I am trying to set up StatSVN towards the end that it will be a cron job run

every night.

However, statSVN dies with a GTK issue. I do not see an option to manage

this in the help anywhere.

How do I deal with this?

 

 

Detailed situation:

I am SSH'd into a remote system; headless I believe.

(uname: Linux SERVERNAME-REMOVED 2.6.18-92.1.13.el5 #1 SMP Thu Sep 4

03:51:01 EDT 2008 i686 i686 i386 GNU/Linux) 

 

I have my local SVN repository set up and checking out correctly.

I create a log:

 

svn -v --xml > svn.log

 

I run:

 

 java -jar statsvn.jar -output-dir ~/public_html/svnstats/statsvn

~/temp/masters-svn/svn.log ~/temp/masters-svn

 

I get back: 

(.:27686): Gtk-WARNING **: cannot open display:

And a set of files in my specified directory:

                         -   

[IMG] bug.png                 08-Oct-2008 17:06  774   

[IMG] file-deleted.png        08-Oct-2008 17:06  359   

[IMG] file.png                08-Oct-2008 17:06  341   

[IMG] folder-deleted.png      08-Oct-2008 17:06  376   

[IMG] folder.png              08-Oct-2008 17:06  379   

[TXT] statcvs.css             08-Oct-2008 17:06  3.2K  

 

 

 

-- 

View this message in context:

308153p1308153.html

Sent from the StatSVN Users mailing list archive at Nabble.com.

 

 

-------------------------------------------------------------------------

This SF.Net email is sponsored by the Moblin Your Move Developer's challenge

Build the coolest Linux based applications with Moblin SDK & win great

prizes

Grand prize is a trip for two to an Open Source event anywhere in the world

_______________________________________________

Statsvn-users mailing list

 

 


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Statsvn-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/statsvn-users
pnathan

Re: StatSVN on remote system throwing GTK Display issue

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Out of curiousity, do you know which classes use the JFreeClass code?
 
Thanks,
Paul Nathan



On Oct 8, 2008, at 7:54 PM, Jason Kealey wrote:

Pinpointing where/when the exception is thrown would be a great start. Usually, with a debugger, it would be easy, but since you’re running on a headless machine, it could be tricky.
 
Thanks,
Jason
 
From: Paul Nathan [[hidden email]] 
Sent: October-08-08 10:32 PM
To: Jason Kealey
Cc: [hidden email]
Subject: Re: [Statsvn-users] StatSVN on remote system throwing GTK Display issue
 
Hi,
I'll try to get it hooked into the Sourceforge bugtracker.
However, my java knowledge is finite and I may not be able to actually fix it.
I'll do what I can though.
 
 
 
Paul Nathan
 
 
 
On Oct 8, 2008, at 6:39 PM, Jason Kealey wrote:


Good evening,
 
- You're not the first to complain about problems in a headless environment.
 
- I think StatCVS/StatSVN are supposed to work in a headless environment and
we have some AWT settings so that JFreeChart does work in a headless
environment. 
- We probably are doing something wrong in the code to cause this error. 
- It merits investigation. 
 
Would you volunteer to file the issue in our issue tracker and track the
issue down? 
 
Thanks,
 
---
Jason Kealey - [hidden email]
LavaBlast Franchise Software - http://www.lavablast.com
Simplifying day-to-day franchise operations
 
 
 
 
 
 
-----Original Message-----
From: pnathan [[hidden email]] 
Sent: October-08-08 8:13 PM
Subject: [Statsvn-users] StatSVN on remote system throwing GTK Display issue
 
 
I am trying to set up StatSVN towards the end that it will be a cron job run
every night.
However, statSVN dies with a GTK issue. I do not see an option to manage
this in the help anywhere.
How do I deal with this?
 
 
Detailed situation:
I am SSH'd into a remote system; headless I believe.
(uname: Linux SERVERNAME-REMOVED 2.6.18-92.1.13.el5 #1 SMP Thu Sep 4
03:51:01 EDT 2008 i686 i686 i386 GNU/Linux) 
 
I have my local SVN repository set up and checking out correctly.
I create a log:
 
svn -v --xml > svn.log
 
I run:
 
 java -jar statsvn.jar -output-dir ~/public_html/svnstats/statsvn
~/temp/masters-svn/svn.log ~/temp/masters-svn
 
I get back: 
(.:27686): Gtk-WARNING **: cannot open display:
And a set of files in my specified directory:
                         -   
[IMG] bug.png                 08-Oct-2008 17:06  774   
[IMG] file-deleted.png        08-Oct-2008 17:06  359   
[IMG] file.png                08-Oct-2008 17:06  341   
[IMG] folder-deleted.png      08-Oct-2008 17:06  376   
[IMG] folder.png              08-Oct-2008 17:06  379   
[TXT] statcvs.css             08-Oct-2008 17:06  3.2K  
 
 
 
-- 
View this message in context:
308153p1308153.html
Sent from the StatSVN Users mailing list archive at Nabble.com.
 
 
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
_______________________________________________
Statsvn-users mailing list
 
 


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Statsvn-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/statsvn-users
jkealey

Re: StatSVN on remote system throwing GTK Display issue

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

You can find all references in Eclipse pretty quickly but basically I’m guessing none of the files in StatSVN will make direct references to it and all the references are in StatCVS (which StatSVN extends).

 

In StatSVN, the Main.java file includes this code:

 

    // make JFreeChart work on systems without GUI

    System.setProperty("java.awt.headless", "true");

 

 

In StatCVS, the following directories are good places to look.

 

/src/net/sf/statcvs/charts/*

and

/src/net/sf/statcvs/output/*

 

 

 

By the way, try setting that system property (java.awt.headless) in your command line session to see if it makes a difference.

 

Thanks,

Jason

 

 

 

From: Paul Nathan [mailto:[hidden email]]
Sent: October-09-08 12:30 AM
To: Jason Kealey
Cc: [hidden email]
Subject: Re: [Statsvn-users] StatSVN on remote system throwing GTK Display issue

 

Out of curiousity, do you know which classes use the JFreeClass code?

 

Thanks,

Paul Nathan

 

 

 

On Oct 8, 2008, at 7:54 PM, Jason Kealey wrote:



Pinpointing where/when the exception is thrown would be a great start. Usually, with a debugger, it would be easy, but since you’re running on a headless machine, it could be tricky.

 

Thanks,

Jason

 

From: Paul Nathan [[hidden email]] 
Sent: October-08-08 10:32 PM
To: Jason Kealey
Cc: [hidden email]
Subject: Re: [Statsvn-users] StatSVN on remote system throwing GTK Display issue

 

Hi,

I'll try to get it hooked into the Sourceforge bugtracker.

However, my java knowledge is finite and I may not be able to actually fix it.

I'll do what I can though.

 

 

 

Paul Nathan

 

 

 

On Oct 8, 2008, at 6:39 PM, Jason Kealey wrote:




Good evening,

 

- You're not the first to complain about problems in a headless environment.

 

- I think StatCVS/StatSVN are supposed to work in a headless environment and

we have some AWT settings so that JFreeChart does work in a headless

environment. 

- We probably are doing something wrong in the code to cause this error. 

- It merits investigation. 

 

Would you volunteer to file the issue in our issue tracker and track the

issue down? 

 

Thanks,

 

---

Jason Kealey - [hidden email]

LavaBlast Franchise Software - http://www.lavablast.com

Simplifying day-to-day franchise operations

 

 

 

 

 

 

-----Original Message-----

From: pnathan [[hidden email]] 

Sent: October-08-08 8:13 PM

Subject: [Statsvn-users] StatSVN on remote system throwing GTK Display issue

 

 

I am trying to set up StatSVN towards the end that it will be a cron job run

every night.

However, statSVN dies with a GTK issue. I do not see an option to manage

this in the help anywhere.

How do I deal with this?

 

 

Detailed situation:

I am SSH'd into a remote system; headless I believe.

(uname: Linux SERVERNAME-REMOVED 2.6.18-92.1.13.el5 #1 SMP Thu Sep 4

03:51:01 EDT 2008 i686 i686 i386 GNU/Linux) 

 

I have my local SVN repository set up and checking out correctly.

I create a log:

 

svn -v --xml > svn.log

 

I run:

 

 java -jar statsvn.jar -output-dir ~/public_html/svnstats/statsvn

~/temp/masters-svn/svn.log ~/temp/masters-svn

 

I get back: 

(.:27686): Gtk-WARNING **: cannot open display:

And a set of files in my specified directory:

                         -   

[IMG] bug.png                 08-Oct-2008 17:06  774   

[IMG] file-deleted.png        08-Oct-2008 17:06  359   

[IMG] file.png                08-Oct-2008 17:06  341   

[IMG] folder-deleted.png      08-Oct-2008 17:06  376   

[IMG] folder.png              08-Oct-2008 17:06  379   

[TXT] statcvs.css             08-Oct-2008 17:06  3.2K  

 

 

 

-- 

View this message in context:

308153p1308153.html

Sent from the StatSVN Users mailing list archive at Nabble.com.

 

 

-------------------------------------------------------------------------

This SF.Net email is sponsored by the Moblin Your Move Developer's challenge

Build the coolest Linux based applications with Moblin SDK & win great

prizes

Grand prize is a trip for two to an Open Source event anywhere in the world

_______________________________________________

Statsvn-users mailing list

 

 

 


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Statsvn-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/statsvn-users
pnathan

Re: StatSVN on remote system throwing GTK Display issue

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

Correct, StatCVS fails with the same issue.
I've tried a System.out.println(/*filename/line */);  dump before each creation of a chart object. It dies sometime after line 108 in the the LOCChartmaker file is passed and before any other calls to my printfs.

StatCVS also sets java.awt.headless to true. From what I can tell, that's *supposed* to be a global property. I also don't see it being reset anywhere. 

I'll keep you posted.

Paul Nathan



On Oct 8, 2008, at 9:44 PM, Jason Kealey wrote:

You can find all references in Eclipse pretty quickly but basically I’m guessing none of the files in StatSVN will make direct references to it and all the references are in StatCVS (which StatSVN extends).
 
In StatSVN, the Main.java file includes this code:
 
    // make JFreeChart work on systems without GUI
    System.setProperty("java.awt.headless", "true");
 
 
In StatCVS, the following directories are good places to look.
 
/src/net/sf/statcvs/charts/*
and
/src/net/sf/statcvs/output/*
 
 
 
By the way, try setting that system property (java.awt.headless) in your command line session to see if it makes a difference.
 
Thanks,
Jason
 
 

[snip]
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Statsvn-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/statsvn-users
pnathan

Re: [Statsvn-users] StatSVN on remote system throwing GTK Display issue

Reply Threaded More More options
Print post
Permalink
In reply to this post by jkealey
Some javascript/style in this post has been disabled (why?)
Isolating the function down to LOCChartMaker. I forced a stack dump exception and got this trace:

   at net.sf.statcvs.charts.LOCChartMaker.createLOCChart(LOCChartMaker.java:111)
   at net.sf.statcvs.charts.LOCChartMaker.<init>(LOCChartMaker.java:99)
   at net.sf.statcvs.charts.LOCChartMaker$AllDevelopersLOCChartMaker.<init>(LOCChartMaker.java:226)
   at net.sf.statcvs.pages.AllDevelopersPageMaker.toFile(AllDevelopersPageMaker.java:40)
   at net.sf.statcvs.pages.ReportSuiteMaker.toFile(ReportSuiteMaker.java:88)
   at net.sf.statcvs.Main.generateDefaultHTMLSuite(Main.java:211)
   at net.sf.statcvs.Main.main(Main.java:76)

It appears that this line causes the fault:
        final JFreeChart chart = ChartFactory.createTimeSeriesChart(this.config.getProjectName() + ": " + title, domain, range, data, legend, false, false);
in LOCChartMaker.java
Setting the property to headless immediately prior to that call does not change the crash.

Hope this helps.

Paul Nathan



On Oct 8, 2008, at 9:44 PM, Jason Kealey wrote:

You can find all references in Eclipse pretty quickly but basically I’m guessing none of the files in StatSVN will make direct references to it and all the references are in StatCVS (which StatSVN extends).

 

In StatSVN, the Main.java file includes this code:

 

    // make JFreeChart work on systems without GUI

    System.setProperty("java.awt.headless", "true");

 

 

In StatCVS, the following directories are good places to look.

 

/src/net/sf/statcvs/charts/*

and

/src/net/sf/statcvs/output/*

 

 

 

By the way, try setting that system property (java.awt.headless) in your command line session to see if it makes a difference.

 

Thanks,

Jason

 

 

 

From: Paul Nathan [mailto:pnathan@...]
Sent: October-09-08 12:30 AM
To: Jason Kealey
Cc: statsvn-users@...
Subject: Re: [Statsvn-users] StatSVN on remote system throwing GTK Display issue

 

Out of curiousity, do you know which classes use the JFreeClass code?

 

Thanks,

Paul Nathan

 

 

 

On Oct 8, 2008, at 7:54 PM, Jason Kealey wrote:



Pinpointing where/when the exception is thrown would be a great start. Usually, with a debugger, it would be easy, but since you’re running on a headless machine, it could be tricky.

 

Thanks,

Jason

jkealey

Re: StatSVN on remote system throwing GTK Display issue

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

From what I can see, we’re doing everything we can in StatSVN/CVS. It appears that either:

-          Your default AWT toolkit isn’t behaving properly.

-          There’s something different on your OS.

 

Here are some references:

http://java.sun.com/products/java-media/2D/reference/faqs/index.html#xvfb

http://www.jfree.org/phpBB2/viewtopic.php?t=1012

 

 

There are a few workarounds listed at the URLs above. (virtual X servers,trying another AWT toolkit). Can you try one and if it works, let us know and we’ll create an entry in the StatSVN wiki?

 

Thanks for doing this research!

 

Jason

 

 

From: pnathan [mailto:[hidden email]]
Sent: October-09-08 5:27 PM
To: [hidden email]
Subject: Re: [Statsvn-users] StatSVN on remote system throwing GTK Display issue

 

Isolating the function down to LOCChartMaker. I forced a stack dump exception and got this trace:

 

   at net.sf.statcvs.charts.LOCChartMaker.createLOCChart(LOCChartMaker.java:111)

   at net.sf.statcvs.charts.LOCChartMaker.<init>(LOCChartMaker.java:99)

   at net.sf.statcvs.charts.LOCChartMaker$AllDevelopersLOCChartMaker.<init>(LOCChartMaker.java:226)

   at net.sf.statcvs.pages.AllDevelopersPageMaker.toFile(AllDevelopersPageMaker.java:40)

   at net.sf.statcvs.pages.ReportSuiteMaker.toFile(ReportSuiteMaker.java:88)

   at net.sf.statcvs.Main.generateDefaultHTMLSuite(Main.java:211)

   at net.sf.statcvs.Main.main(Main.java:76)

 

It appears that this line causes the fault:

        final JFreeChart chart = ChartFactory.createTimeSeriesChart(this.config.getProjectName() + ": " + title, domain, range, data, legend, false, false);

in LOCChartMaker.java

Setting the property to headless immediately prior to that call does not change the crash.

 

Hope this helps.

 

Paul Nathan

 

 

 

On Oct 8, 2008, at 9:44 PM, Jason Kealey wrote:



You can find all references in Eclipse pretty quickly but basically I’m guessing none of the files in StatSVN will make direct references to it and all the references are in StatCVS (which StatSVN extends).

 

In StatSVN, the Main.java file includes this code:

 

    // make JFreeChart work on systems without GUI

    System.setProperty("java.awt.headless", "true");

 

 

In StatCVS, the following directories are good places to look.

 

/src/net/sf/statcvs/charts/*

and

/src/net/sf/statcvs/output/*

 

 

 

By the way, try setting that system property (java.awt.headless) in your command line session to see if it makes a difference.

 

Thanks,

Jason

 

 

 

From: Paul Nathan [mailto:pnathan@...]
Sent: October-09-08 12:30 AM
To: Jason Kealey
Cc: statsvn-users@...
Subject: Re: [Statsvn-users] StatSVN on remote system throwing GTK Display issue

 

Out of curiousity, do you know which classes use the JFreeClass code?

 

Thanks,

Paul Nathan

 

 

 

On Oct 8, 2008, at 7:54 PM, Jason Kealey wrote:

 

Pinpointing where/when the exception is thrown would be a great start. Usually, with a debugger, it would be easy, but since you’re running on a headless machine, it could be tricky.

 

Thanks,

Jason

 


View this message in context: Re: [Statsvn-users] StatSVN on remote system throwing GTK Display issue
Sent from the StatSVN Users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Statsvn-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/statsvn-users
pnathan

Re: StatSVN on remote system throwing GTK Display issue

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Well, I'm glad to see that Stat* is working correctly. My bet is it's something mis/unconfigured with the system I was using. I'm using Java 1.4.2, as best as I can tell. 
Thanks for your assistance.

~Paul


On Oct 9, 2008, at 5:19 PM, Jason Kealey wrote:

From what I can see, we’re doing everything we can in StatSVN/CVS. It appears that either:
-          Your default AWT toolkit isn’t behaving properly.
-          There’s something different on your OS.
 
Here are some references:
 
 
There are a few workarounds listed at the URLs above. (virtual X servers,trying another AWT toolkit). Can you try one and if it works, let us know and we’ll create an entry in the StatSVN wiki?
 
Thanks for doing this research!
 
Jason
 
 
From: pnathan [[hidden email]] 
Sent: October-09-08 5:27 PM
To: [hidden email]
Subject: Re: [Statsvn-users] StatSVN on remote system throwing GTK Display issue
 
Isolating the function down to LOCChartMaker. I forced a stack dump exception and got this trace:
 
   at net.sf.statcvs.charts.LOCChartMaker.createLOCChart(LOCChartMaker.java:111)
   at net.sf.statcvs.charts.LOCChartMaker.<init>(LOCChartMaker.java:99)
   at net.sf.statcvs.charts.LOCChartMaker$AllDevelopersLOCChartMaker.<init>(LOCChartMaker.java:226)
   at net.sf.statcvs.pages.AllDevelopersPageMaker.toFile(AllDevelopersPageMaker.java:40)
   at net.sf.statcvs.pages.ReportSuiteMaker.toFile(ReportSuiteMaker.java:88)
   at net.sf.statcvs.Main.generateDefaultHTMLSuite(Main.java:211)
   at net.sf.statcvs.Main.main(Main.java:76)
 
It appears that this line causes the fault:
        final JFreeChart chart = ChartFactory.createTimeSeriesChart(this.config.getProjectName() + ": " + title, domain, range, data, legend, false, false);
in LOCChartMaker.java
Setting the property to headless immediately prior to that call does not change the crash.
 
Hope this helps.
 
Paul Nathan
 
 
 
On Oct 8, 2008, at 9:44 PM, Jason Kealey wrote:


You can find all references in Eclipse pretty quickly but basically I’m guessing none of the files in StatSVN will make direct references to it and all the references are in StatCVS (which StatSVN extends).
 
In StatSVN, the Main.java file includes this code:
 
    // make JFreeChart work on systems without GUI
    System.setProperty("java.awt.headless", "true");
 
 
In StatCVS, the following directories are good places to look.
 
/src/net/sf/statcvs/charts/*
and
/src/net/sf/statcvs/output/*
 
 
 
By the way, try setting that system property (java.awt.headless) in your command line session to see if it makes a difference.
 
Thanks,
Jason
 
 
 
From: Paul Nathan [mailto:pnathan@...] 
Sent: October-09-08 12:30 AM
To: Jason Kealey
Cc: statsvn-users@...
Subject: Re: [Statsvn-users] StatSVN on remote system throwing GTK Display issue
 
Out of curiousity, do you know which classes use the JFreeClass code?
 
Thanks,
Paul Nathan
 
 
 
On Oct 8, 2008, at 7:54 PM, Jason Kealey wrote:
 
Pinpointing where/when the exception is thrown would be a great start. Usually, with a debugger, it would be easy, but since you’re running on a headless machine, it could be tricky.
 
Thanks,
Jason
 



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Statsvn-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/statsvn-users
jkealey

Re: StatSVN on remote system throwing GTK Display issue

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

I would truly appreciate if you could communicate back to us what solution you find to this issue as you are not the first to experience it.

 

Thanks,

Jason

 

From: Paul Nathan [mailto:[hidden email]]
Sent: October-09-08 11:52 PM
To: Jason Kealey
Cc: [hidden email]
Subject: Re: [Statsvn-users] StatSVN on remote system throwing GTK Display issue

 

Well, I'm glad to see that Stat* is working correctly. My bet is it's something mis/unconfigured with the system I was using. I'm using Java 1.4.2, as best as I can tell. 

Thanks for your assistance.

 

~Paul

 

 

On Oct 9, 2008, at 5:19 PM, Jason Kealey wrote:



From what I can see, we’re doing everything we can in StatSVN/CVS. It appears that either:

-          Your default AWT toolkit isn’t behaving properly.

-          There’s something different on your OS.

 

Here are some references:

 

 

There are a few workarounds listed at the URLs above. (virtual X servers,trying another AWT toolkit). Can you try one and if it works, let us know and we’ll create an entry in the StatSVN wiki?

 

Thanks for doing this research!

 

Jason

 

 

From: pnathan [[hidden email]] 
Sent: October-09-08 5:27 PM
To: [hidden email]
Subject: Re: [Statsvn-users] StatSVN on remote system throwing GTK Display issue

 

Isolating the function down to LOCChartMaker. I forced a stack dump exception and got this trace:

 

   at net.sf.statcvs.charts.LOCChartMaker.createLOCChart(LOCChartMaker.java:111)

   at net.sf.statcvs.charts.LOCChartMaker.<init>(LOCChartMaker.java:99)

   at net.sf.statcvs.charts.LOCChartMaker$AllDevelopersLOCChartMaker.<init>(LOCChartMaker.java:226)

   at net.sf.statcvs.pages.AllDevelopersPageMaker.toFile(AllDevelopersPageMaker.java:40)

   at net.sf.statcvs.pages.ReportSuiteMaker.toFile(ReportSuiteMaker.java:88)

   at net.sf.statcvs.Main.generateDefaultHTMLSuite(Main.java:211)

   at net.sf.statcvs.Main.main(Main.java:76)

 

It appears that this line causes the fault:

        final JFreeChart chart = ChartFactory.createTimeSeriesChart(this.config.getProjectName() + ": " + title, domain, range, data, legend, false, false);

in LOCChartMaker.java

Setting the property to headless immediately prior to that call does not change the crash.

 

Hope this helps.

 

Paul Nathan

 

 

 

On Oct 8, 2008, at 9:44 PM, Jason Kealey wrote:




You can find all references in Eclipse pretty quickly but basically I’m guessing none of the files in StatSVN will make direct references to it and all the references are in StatCVS (which StatSVN extends).

 

In StatSVN, the Main.java file includes this code:

 

    // make JFreeChart work on systems without GUI

    System.setProperty("java.awt.headless", "true");

 

 

In StatCVS, the following directories are good places to look.

 

/src/net/sf/statcvs/charts/*

and

/src/net/sf/statcvs/output/*

 

 

 

By the way, try setting that system property (java.awt.headless) in your command line session to see if it makes a difference.

 

Thanks,

Jason

 

 

 

From: Paul Nathan [mailto:pnathan@...] 
Sent: October-09-08 12:30 AM
To: Jason Kealey
Cc: statsvn-users@...
Subject: Re: [Statsvn-users] StatSVN on remote system throwing GTK Display issue

 

Out of curiousity, do you know which classes use the JFreeClass code?

 

Thanks,

Paul Nathan

 

 

 

On Oct 8, 2008, at 7:54 PM, Jason Kealey wrote:

 

Pinpointing where/when the exception is thrown would be a great start. Usually, with a debugger, it would be easy, but since you’re running on a headless machine, it could be tricky.

 

Thanks,

Jason

 


 


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Statsvn-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/statsvn-users
pnathan

Re: [Statsvn-users] StatSVN on remote system throwing GTK Display issue

Reply Threaded More More options
Print post
Permalink
Hi Jason,

(A year later, due to obscure laziness and a workaround involving a headed server)

I grubbed around and traced the immediate problem back to the graph generation library. I suppose one solution here is to tear out the graph generation library and replace it with X-independent code.

However, I did some rummaging around and it seems to be a problem either in Java or my server's installation. This demo article here fails with the identical error.

http://www.j2ee.me/developer/technicalArticles/J2SE/Desktop/headless/

I'm in contact with my sysadmin now to see if he's willing to work with me here, but I'm not optimistic that he'll devote a large slice of his time for one user out of several hundred. ;-)

If someone with root could reproduce the GTK error on the above code, I think we might be able to move forward on this.

Thanks,
Paul

On Thu, Oct 9, 2008 at 9:27 PM, Jason Kealey <[hidden email]> wrote:

I would truly appreciate if you could communicate back to us what solution you find to this issue as you are not the first to experience it.

 

Thanks,

Jason

 


Jason Kealey-2

Re: StatSVN on remote system throwing GTK Display issue

Reply Threaded More More options
Print post
Permalink
What you claim here sounds consistent with what I've heard. 

We use the same headless parameters as in that article and, to my knowledge, most people don't have any issues with it. However, you're not the only one who has encountered this kind of issue. It seems entirely plausible that some versions of certain libraries on certain setups don't work properly. In the past year, I think we've updated the JFreeChart library that Stat(CVS/SVN) use - have you tried out the most recent versions?

Thanks,
---
Jason Kealey - [hidden email]
LavaBlast Franchise Software - http://www.lavablast.com
Simplifying day-to-day franchise operations


On Thu, Sep 17, 2009 at 1:26 AM, pnathan <[hidden email]> wrote:
Hi Jason,

(A year later, due to obscure laziness and a workaround involving a headed server)

I grubbed around and traced the immediate problem back to the graph generation library. I suppose one solution here is to tear out the graph generation library and replace it with X-independent code.

However, I did some rummaging around and it seems to be a problem either in Java or my server's installation. This demo article here fails with the identical error.

http://www.j2ee.me/developer/technicalArticles/J2SE/Desktop/headless/

I'm in contact with my sysadmin now to see if he's willing to work with me here, but I'm not optimistic that he'll devote a large slice of his time for one user out of several hundred. ;-)

If someone with root could reproduce the GTK error on the above code, I think we might be able to move forward on this.

Thanks,
Paul

On Thu, Oct 9, 2008 at 9:27 PM, Jason Kealey <[hidden email]> wrote:

I would truly appreciate if you could communicate back to us what solution you find to this issue as you are not the first to experience it.

 

Thanks,

Jason

 




View this message in context: Re: [Statsvn-users] StatSVN on remote system throwing GTK Display issue
Sent from the StatSVN Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Statsvn-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/statsvn-users



------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Statsvn-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/statsvn-users
pnathan

Re: [Statsvn-users] StatSVN on remote system throwing GTK Display issue

Reply Threaded More More options
Print post
Permalink
Yes; same issue.

My Java info:
java version "1.4.2"
gij (GNU libgcj) version 4.1.2 20080704 (Red Hat 4.1.2-46).

My StatSVN info is version 0.5. 
I strongly suspect the error something to do with the Java AWT libs installed for a particular configuration. 

After some rummaging, I found a possible solution is to load Xvfb and engage StatSVN.

Xvfb :1 &

DISPLAY:=1 java (command line)
Still setting the headless values, needs some iteration to determine if this negates the need for headlessness period or if Xvfb + headless is required.

This worked correctly, from what I could tell. I'd appreciate it if someone else could repro the fix on their systems. I'll be investigating this over the next few days as well, but I don't have Root.

Thanks,
Paul

On Thu, Sep 17, 2009 at 4:54 AM, Jason Kealey-2 (via Nabble) <[hidden email]> wrote:
What you claim here sounds consistent with what I've heard. 

We use the same headless parameters as in that article and, to my knowledge, most people don't have any issues with it. However, you're not the only one who has encountered this kind of issue. It seems entirely plausible that some versions of certain libraries on certain setups don't work properly. In the past year, I think we've updated the JFreeChart library that Stat(CVS/SVN) use - have you tried out the most recent versions?

Thanks,
---
Jason Kealey - [hidden email]

LavaBlast Franchise Software - http://www.lavablast.com
Simplifying day-to-day franchise operations