kearygriffin / streambaby

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

Can't stream if starting streambaby from server commandline #52

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. log in to my server
2. start "screen"
3. run streambaby within the screen session.

What is the expected output? What do you see instead?

When I try to play a stream I select my movie from the server and hit play,
 the Tivo Exits the stream, the console gives an error:

05/16/10 17:20:58 Listener: Unexpected error: java.lang.InternalError:
Can't connect to X11 window server using 'localhost:14.0' as the value of
the DISPLAY variable.
05/16/10 17:20:58 Listener: java.lang.InternalError: Can't connect to X11
window server using 'localhost:14.0' as the value of the DISPLAY variable.
        at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
        at
sun.awt.X11GraphicsEnvironment.access$100(X11GraphicsEnvironment.java:52)
        at
sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:155)
        at java.security.AccessController.doPrivileged(Native Method)
        at
sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:131)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.jav
a:68)
        at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1135)
        at
com.unwiredappeal.tivo.views.util.ViewImageGenerator.generateRoundedCorners(View
ImageGenerator.java:48)
        at
com.unwiredappeal.tivo.views.util.ViewImageGenerator.createRoundedCorners(ViewIm
ageGenerator.java:38)
        at
com.unwiredappeal.tivo.views.BRoundedPanel.<init>(BRoundedPanel.java:25)
        at
com.unwiredappeal.tivo.streambaby.ViewScreen.startStream(ViewScreen.java:217)
        at
com.unwiredappeal.tivo.streambaby.ViewScreen.handleEnter(ViewScreen.java:405)
        at com.tivo.hme.bananas.BScreen.handleEvent(BScreen.java:141)
        at
com.unwiredappeal.tivo.streambaby.ViewScreen.handleEvent(ViewScreen.java:684)
        at com.tivo.hme.sdk.View.postEvent(View.java:684)
        at
com.tivo.hme.bananas.BApplication$StackFrame.doEnter(BApplication.java:482)
        at com.tivo.hme.bananas.BApplication.push(BApplication.java:287)
        at com.tivo.hme.bananas.BApplication.push(BApplication.java:256)
        at
com.unwiredappeal.tivo.streambaby.PlayScreen.beginPlay(PlayScreen.java:576)
        at
com.unwiredappeal.tivo.streambaby.PlayScreen.access$100(PlayScreen.java:37)
        at
com.unwiredappeal.tivo.streambaby.PlayScreen$1.select(PlayScreen.java:471)
        at
com.unwiredappeal.tivo.streambaby.ButtonScreen.handleKeyPress(ButtonScreen.java:
304)
        at
com.unwiredappeal.tivo.streambaby.PlayScreen.handleKeyPress(PlayScreen.java:582)
        at com.tivo.hme.sdk.HmeObject.handleEvent(HmeObject.java:115)
        at com.tivo.hme.bananas.BView.handleEvent(BView.java:217)
        at com.tivo.hme.bananas.BScreen.handleEvent(BScreen.java:146)
        at com.tivo.hme.sdk.View.postEvent(View.java:684)
        at com.tivo.hme.sdk.View.postEvent(View.java:686)
        at com.tivo.hme.sdk.View.postEvent(View.java:686)
        at
com.tivo.hme.bananas.BApplication.dispatchKeyEvent(BApplication.java:196)
        at
com.tivo.hme.bananas.BApplication.dispatchEvent(BApplication.java:159)
        at
com.tivo.hme.bananas.BApplicationPlus.handleChunk(BApplicationPlus.java:187)
        at
com.unwiredappeal.tivo.streambaby.host.Listener.readEvents(Listener.java:339)
        at
com.unwiredappeal.tivo.streambaby.host.Listener.handleHME(Listener.java:316)
        at
com.unwiredappeal.tivo.streambaby.host.Listener.handle(Listener.java:417)
        at
com.tivo.hme.host.http.server.HttpConnection.run(HttpConnection.java:123)
        at java.lang.Thread.run(Thread.java:619)

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

Tivo Premier or HD

Please provide any additional information below.

Original issue reported on code.google.com by robert.l...@gmail.com on 16 May 2010 at 11:21

GoogleCodeExporter commented 9 years ago
Try editing the streambaby startup script to include:
-Djava.awt.headless=true 

This should start java in headless mode so it won't require an X display.

Original comment by kearygri...@gmail.com on 18 May 2010 at 4:10

GoogleCodeExporter commented 9 years ago
Thanks! Had the EXACT same problem and this fixed my issue on Fedora 14.

Original comment by ebiancar...@gmail.com on 20 Dec 2010 at 10:49