kearygriffin / streambaby

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

crash when running on e3000 under jamvm #67

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm trying to run streambaby on my e3000 router running tomatousb firmware and 
optware.  I have the jamvm installed (via optware).  When I try to run 
streambaby, I get the following output:

root@tomato:/opt/usr/streambaby# ./streambaby
Initializing StreamBaby v0.29...
java.lang.reflect.InvocationTargetException
   at java.lang.reflect.Method.invokeNative(Native Method)
   at java.lang.reflect.Method.invoke(Method.java:367)
   at jamvm.java.lang.JarLauncher.main(JarLauncher.java:50)
Caused by: java.lang.ExceptionInInitializerError
   at com.unwiredappeal.tivo.streambaby.StreamBabyMain.main(StreamBabyMain.java:38)
   at java.lang.reflect.Method.invokeNative(Native Method)
   ...2 more
Caused by: java.lang.NullPointerException
   at com.unwiredappeal.tivo.config.StreamBabyConfig.setupDefaultDirectories(StreamBabyConfig.java:827)
   at com.unwiredappeal.tivo.config.StreamBabyConfig.<clinit>(StreamBabyConfig.java:37)
   at com.unwiredappeal.tivo.streambaby.StreamBabyMain.main(StreamBabyMain.java:38)
   ...3 more

I've attached my ini file; the files are in /opt/media, and streambaby is at 
/opt/sbin/streambaby.

Original issue reported on code.google.com by arolson...@gmail.com on 23 Mar 2011 at 10:26

Attachments:

GoogleCodeExporter commented 9 years ago
I was able to get past this by adding -Dstreambaby.dir=/opt/usr/streambaby to 
the command line.

My next problem is this:
root@tomato:/opt/usr/streambaby# ./streambaby
Initializing StreamBaby v0.29...
03/23/11 18:12:21 FFmpegJavaVideoModule: Unable to load FFmpeg native libraries
java.lang.reflect.InvocationTargetException
   at java.lang.reflect.Method.invokeNative(Native Method)
   at java.lang.reflect.Method.invoke(Method.java:367)
   at jamvm.java.lang.JarLauncher.main(JarLauncher.java:50)
Caused by: java.net.SocketException: getifaddrs not supported
   at java.net.VMNetworkInterface.getVMInterfaces(Native Method)
   at java.net.NetworkInterface.getNetworkInterfaces(NetworkInterface.java:196)
   at com.tivo.hme.host.util.Misc.getInterfaces(Misc.java:194)
   at com.unwiredappeal.tivo.streambaby.host.Main.<init>(Main.java:97)
   at com.unwiredappeal.tivo.streambaby.StreamBabyMain.main(StreamBabyMain.java:152)
   at java.lang.reflect.Method.invokeNative(Native Method)
   ...2 more

Original comment by arolson...@gmail.com on 23 Mar 2011 at 11:15

GoogleCodeExporter commented 9 years ago
Turns out that getifaddrs is a function that isn't in the version of uClibc 
that ddwrt optware installs (0.9.28), so fixing it is clearly out of the scope 
of streambaby

Original comment by arolson...@gmail.com on 27 Mar 2011 at 5:29