tronghuyict56 / openhab

Automatically exported from code.google.com/p/openhab
0 stars 0 forks source link

Designer doesn't launch on Mac #439

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Launch Designer

What is the expected output? What do you see instead?
Expect it launches.  Instead, it doesn't.

What version of the product are you using? On what operating system?
1.3.0 on mac

Please provide any additional information below.

Original issue reported on code.google.com by lamt...@gmail.com on 9 Sep 2013 at 9:34

GoogleCodeExporter commented 8 years ago
Could you please tell us your Mac OSX version and the installed Java version?
It correctly starts up for me on a Mac.

Original comment by kai.openhab on 11 Sep 2013 at 1:34

GoogleCodeExporter commented 8 years ago
Same problem OSX 10.8.4
java version "1.6.0_51"
Java(TM) SE Runtime Environment (build 1.6.0_51-b11-456-11M4508)
Java HotSpot(TM) 64-Bit Server VM (build 20.51-b01-456, mixed mode)

Original comment by N.Schnit...@gmail.com on 11 Sep 2013 at 5:32

GoogleCodeExporter commented 8 years ago
on my OSX 10.8.4 with Java

TEEs-MacBook-Pro:openhab thomasee$ java -version
java version "1.7.0_15"
Java(TM) SE Runtime Environment (build 1.7.0_15-b03)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)

it works pretty well. Seems to be related to the the Java Version? Are there 
any logs to share (.log - inside the *.app file)

Original comment by teichsta on 11 Sep 2013 at 5:39

GoogleCodeExporter commented 8 years ago
OSX 10.7.5

java version "1.6.0_51"
Java(TM) SE Runtime Environment (build 1.6.0_51-b11-457-11M4509)
Java HotSpot(TM) 64-Bit Server VM (build 20.51-b01-457, mixed mode)

I downloaded the previous version of the designer (1.2.0), and it launched fine.

Original comment by lamt...@gmail.com on 11 Sep 2013 at 5:54

GoogleCodeExporter commented 8 years ago
Stepping back to Java 1.6 on my Mac, I was indeed able to reproduce the problem.
Using the debugger, I then saw that the application was hanging when loading 
the awt libraries.
Searching the web for such a problem, I found 
http://stackoverflow.com/questions/17399688/swt-timeout-on-osx-application-hangs
which led me to a solution:
Adding the line
-Djava.awt.headless=true
to the file /Applications/openHAB 
Designer.app/Contents/MacOS/openHAB-Designer.ini
seems to solve the problem.
Could you please test this as well? If it works for you as well, we might 
publish a Designer 1.3.1 for Mac as a hotfix.

Original comment by kai.openhab on 11 Sep 2013 at 8:30

GoogleCodeExporter commented 8 years ago
Verified as fixed on my machine.

OSX 10.7.5

java version "1.6.0_51"
Java(TM) SE Runtime Environment (build 1.6.0_51-b11-457-11M4509)
Java HotSpot(TM) 64-Bit Server VM (build 20.51-b01-457, mixed mode)

Original comment by lamt...@gmail.com on 11 Sep 2013 at 8:56

GoogleCodeExporter commented 8 years ago
Fixed with 
https://code.google.com/p/openhab/source/detail?r=12c78e7ce60ea1c5ed02dc4698a887
c8de23ad1f&name=1.3.1

Original comment by kai.openhab on 12 Sep 2013 at 8:40

GoogleCodeExporter commented 8 years ago
This bug seems to be part of the 1.4.0 release of the Designer for the Mac too. 
Because on my Mac it didn't start.
After adding the line -Djava.awt.headless=true to the ini file it starts as 
expected.

Original comment by heiko.haensel@googlemail.com on 14 Mar 2014 at 9:07

GoogleCodeExporter commented 8 years ago
worked for me as well - problem in 1.4.0 reoccurs..

Original comment by johannes...@gmail.com on 1 May 2014 at 8:54

GoogleCodeExporter commented 8 years ago
same problem, verified fixed mentioned above in post #5

OSX 10.9.3
Java 7, Update 55

Original comment by joe.barn...@gmail.com on 26 May 2014 at 8:17

GoogleCodeExporter commented 8 years ago
Hello
Same for me. Post 5 helped to solve the problem

Original comment by fredrik....@gmail.com on 24 Sep 2014 at 6:31

GoogleCodeExporter commented 8 years ago
just for info. Add this line to the bottom of the fil

Original comment by fredrik....@gmail.com on 24 Sep 2014 at 6:31

GoogleCodeExporter commented 8 years ago
I can confirm that

a. the problem still exists in the current download of the designer and
b. that adding the line as described in post #5 solves the problem

My OS X is Yosemite (aka 10.10) with java 1.6.0_65 (the suggested download on 
start of the designer).

Greetings
  Matthias

Original comment by mstol...@googlemail.com on 19 Oct 2014 at 10:53

GoogleCodeExporter commented 8 years ago
The problem still exists for me too (with the latest download, as of today).

The fix in post five also fixed the problem for me.

Original comment by hicr...@gmail.com on 20 Oct 2014 at 6:48

GoogleCodeExporter commented 8 years ago
Same issue here, just downloaded. Fix works.

Original comment by rutb...@gmail.com on 22 Oct 2014 at 7:50

GoogleCodeExporter commented 8 years ago
Just downloaded openHAB Designer v1.5.1 and experienced the same issue on OS X 
Yosemite v10.10.1 with Java v1.6.0_65. The fix mentioned above, adding 
-Djava.awt.headless=true to /Contents/openHAB-Designer.ini, worked for me.

Original comment by charles....@gmail.com on 23 Nov 2014 at 5:29

GoogleCodeExporter commented 8 years ago
Just downloaded 1.6.2 - issue on OS X 10.10.2 with Java v1.6.0_65 still exists. 
Fix works.

Original comment by dirkma...@googlemail.com on 11 Apr 2015 at 2:39

GoogleCodeExporter commented 8 years ago
So what about users that are using Java 8 Update 45 on Yosemite? its the newest 
version. I like to stay up to date because of obvious past security issues and 
many programs are needing the newer versions. Right now it doesnt launch for me 
either

Original comment by mac...@gmail.com on 19 Jun 2015 at 11:02