JMule project forum

JMule - Java file sharing client
 

It is currently Tue Nov 21, 2017 7:50 am

Your Ad Here


Post new topic Reply to topic  [ 13 posts ]  Go to page 1, 2  Next
Author Message
Offline
 Post subject: Mac OS X Problem
PostPosted: Wed Jan 27, 2010 12:27 pm 
 Profile

Joined: Wed Jan 27, 2010 12:12 pm
Posts: 6
System: Mac os X Snow Leopard
Java: 1.6 64 bit

java -XstartOnFirstThread -Xmx128m org.jmule.main.Main

2010-01-27 13:09:58.030 java[6234:e0b] [Java CocoaComponent compatibility mode]: Enabled
2010-01-27 13:09:58.033 java[6234:e0b] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.100000
***WARNING: Display must be created on main thread due to Cocoa restrictions.
27-gen-2010 13.09.58 org.jmule.core.aspects.JMuleCoreLogger ajc$afterThrowing$org_jmule_core_aspects_JMuleCoreLogger$4$9a1ee6f9
AVVERTENZA: org.eclipse.swt.SWTException: Invalid thread access
at org.eclipse.swt.SWT.error(Unknown Source)
at org.eclipse.swt.SWT.error(Unknown Source)
at org.eclipse.swt.SWT.error(Unknown Source)
at org.eclipse.swt.widgets.Display.error(Unknown Source)
at org.eclipse.swt.widgets.Display.createDisplay(Unknown Source)
at org.eclipse.swt.widgets.Display.create(Unknown Source)
at org.eclipse.swt.graphics.Device.<init>(Unknown Source)
at org.eclipse.swt.widgets.Display.<init>(Unknown Source)
at org.eclipse.swt.widgets.Display.<init>(Unknown Source)
at org.jmule.ui.swt.SWTThread$JMSWTThread.run(SWTThread.java:106)

Exception in thread "SWT Thread" org.eclipse.swt.SWTException: Invalid thread access
at org.eclipse.swt.SWT.error(Unknown Source)
at org.eclipse.swt.SWT.error(Unknown Source)
at org.eclipse.swt.SWT.error(Unknown Source)
at org.eclipse.swt.widgets.Display.error(Unknown Source)
at org.eclipse.swt.widgets.Display.createDisplay(Unknown Source)
at org.eclipse.swt.widgets.Display.create(Unknown Source)
at org.eclipse.swt.graphics.Device.<init>(Unknown Source)
at org.eclipse.swt.widgets.Display.<init>(Unknown Source)
at org.eclipse.swt.widgets.Display.<init>(Unknown Source)
at org.jmule.ui.swt.SWTThread$JMSWTThread.run(SWTThread.java:106)

Question: Why if JMule is already usable you don't create jar file with inside already the swt and swingx jar for standard platform (Leopard/Snow Leopard, Windows Vista/7)??


Top
 

Offline
 Post subject: Re: Mac OS X Problem
PostPosted: Wed Jan 27, 2010 3:23 pm 
JMule staff member
JMule staff member
 WWW  Profile

Joined: Fri Jul 11, 2008 4:34 pm
Posts: 43
Hello,

1. JMule is not stable yet
2. We do not have resources to test/package JMule for MacOS platform
3. In future we'll build a unified installer for Linux(and other UNIX-es), Windows, not sure for MacOS

- javajox, JMule developer


Top
 

Offline
 Post subject: Re: Mac OS X Problem
PostPosted: Thu Jan 28, 2010 8:05 pm 
 Profile

Joined: Wed Jan 27, 2010 12:12 pm
Posts: 6
I can test and package it for you on Mac Os :D
But first you have to resolve the thread problem... :geek: http://www.eclipse.org/swt/faq.php#uithread


Top
 

Offline
 Post subject: Re: Mac OS X Problem
PostPosted: Fri Jan 29, 2010 9:26 am 
JMule staff member
JMule staff member
 WWW  Profile

Joined: Fri Jul 11, 2008 4:34 pm
Posts: 43
> I can test and package it for you on Mac Os
I'm glad to hear this :) we really need testers for JMule testing on different platforms

> But first you have to resolve the thread problem..
We are working now to solve this issue

Is JMule running ok with Swing interface on MacOS ?

Thank you


Top
 

Offline
 Post subject: Re: Mac OS X Problem
PostPosted: Sat Jan 30, 2010 12:19 pm 
 Profile

Joined: Wed Jan 27, 2010 12:12 pm
Posts: 6
I don't know how to start the simple Swing UI :?


Top
 

Offline
 Post subject: Re: Mac OS X Problem
PostPosted: Sat Jan 30, 2010 3:53 pm 
JMule staff member
JMule staff member
User avatar
 Profile

Joined: Fri Jul 11, 2008 4:10 pm
Posts: 33
    1. Open settings/jmule_ui.properties
    2. Edit/Add following line :
    for SWING UI :
    Code:
    org.jmule.ui.ui_type=SWING

    for SWT UI :
    Code:
    org.jmule.ui.ui_type=SWT



Top
 

Offline
 Post subject: Re: Mac OS X Problem
PostPosted: Sat Jan 30, 2010 6:18 pm 
 Profile

Joined: Wed Jan 27, 2010 12:12 pm
Posts: 6
With the swing interface the program start, and I can use it. There are still many problems with the program, use a lots of memory, sometimes freeze and I can't click buttons, but seems to work (I download something to test).


Top
 

Offline
 Post subject: Re: Mac OS X Problem
PostPosted: Sun Jan 31, 2010 7:10 am 
JMule staff member
JMule staff member
 WWW  Profile

Joined: Fri Jul 11, 2008 4:34 pm
Posts: 43
Hi,

We have made some fixes for MacOS platform, now it should work with SWT UI, please try this version : http://jmule.org/files/testing/jmule-0. ... fix.tar.gz and give us some feedback, particularly if something goes wrong. If all the things will be ok this bugfix will be available in the next version of JMule.
Strange that the Swing UI has such a behaviour, it should work fine... I'll try to run it for a longer time on MacOS maybe I'm missing something

Thank you for collaboration, your effort is greatly appreciated


Top
 

Offline
 Post subject: Re: Mac OS X Problem
PostPosted: Sun Jan 31, 2010 7:08 pm 
 Profile

Joined: Wed Jan 27, 2010 12:12 pm
Posts: 6
There are a lot of problem:
with SWING:
if from console you start the program with the option -XstartOnFirstThread, you can't do anything when the program start (click or do other thing), without the program start. After it connect to a Server the button Connect doesn't change in Disconnect :? and if I re-click it obviously say "JMule is already connected (connecting) to another server".

with SWT:
Now the program start, but inside the program is impossible to select a different UI, when I click on UI Chooser the program stops responding and I have to kill it from shell. When I start the program, even if I don't do nothing (I don't connect to any server) after a few minutes the CPU goes to 100% :cry: (I don't know why, but I think is a problem of SWT).

Ivan.


Top
 

Offline
 Post subject: Re: Mac OS X Problem
PostPosted: Mon Feb 01, 2010 4:44 pm 
JMule staff member
JMule staff member
 WWW  Profile

Joined: Fri Jul 11, 2008 4:34 pm
Posts: 43
The problem is not related to UIs only, we started the JMule core only (without any UI stuff), and the CPU is 100% :( under mac. We are trying to solve these issues as soon as possible... Would you like to find and try some other SWT based applications and see how they work under MacOs ? What problems/issues rise ?


Top
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ]  Go to page 1, 2  Next


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Contact : jmule [at] jmule.org
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group