TWS Linux BBTV streaming not working

Hello Team,

I have tried different versions of TWS, from stable to latest online and offline. Currently I am using offline Build 980.4k, however the result is pretty much the same with all. BB TV streaming simply doesn't work and won't give out any error message.

I am using Gentoo Linux and I have libva fully configured. I am not sure whether I am missing any codecs or anything else in particular. I did also try running TWS using latest Oracle JRE 1.8.0.261 as opposed to the JRE bundled with TWS itself, however it made no difference whatsoever.
Note, I can also experience the same issue under Ubuntu.

Some system specific info here:
Code:
admin@gentoo ~ $ uname -a
Linux gentoo 5.4.66-gentoo-x86_64 #4 SMP Thu Oct 1 13:35:24 BST 2020 x86_64 Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz GenuineIntel GNU/Linux
admin@gentoo ~ $

admin@gentoo ~ $ vainfo 
libva info: VA-API version 1.8.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib64/va/drivers/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_8
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.8 (libva 2.7.1)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 20.2.0 (a2fd1708344)
vainfo: Supported profile and entrypoints
      VAProfileNone                   :    VAEntrypointVideoProc
      VAProfileNone                   :    VAEntrypointStats
      VAProfileMPEG2Simple            :    VAEntrypointVLD
      VAProfileMPEG2Simple            :    VAEntrypointEncSlice
      VAProfileMPEG2Main              :    VAEntrypointVLD
      VAProfileMPEG2Main              :    VAEntrypointEncSlice
      VAProfileH264Main               :    VAEntrypointVLD
      VAProfileH264Main               :    VAEntrypointEncSlice
      VAProfileH264Main               :    VAEntrypointFEI
      VAProfileH264Main               :    VAEntrypointEncSliceLP
      VAProfileH264High               :    VAEntrypointVLD
      VAProfileH264High               :    VAEntrypointEncSlice
      VAProfileH264High               :    VAEntrypointFEI
      VAProfileH264High               :    VAEntrypointEncSliceLP
      VAProfileVC1Simple              :    VAEntrypointVLD
      VAProfileVC1Main                :    VAEntrypointVLD
      VAProfileVC1Advanced            :    VAEntrypointVLD
      VAProfileJPEGBaseline           :    VAEntrypointVLD
      VAProfileJPEGBaseline           :    VAEntrypointEncPicture
      VAProfileH264ConstrainedBaseline:    VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:    VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline:    VAEntrypointFEI
      VAProfileH264ConstrainedBaseline:    VAEntrypointEncSliceLP
      VAProfileVP8Version0_3          :    VAEntrypointVLD
      VAProfileVP8Version0_3          :    VAEntrypointEncSlice
      VAProfileHEVCMain               :    VAEntrypointVLD
      VAProfileHEVCMain               :    VAEntrypointEncSlice
      VAProfileHEVCMain               :    VAEntrypointFEI
      VAProfileHEVCMain10             :    VAEntrypointVLD
      VAProfileHEVCMain10             :    VAEntrypointEncSlice
      VAProfileVP9Profile0            :    VAEntrypointVLD
      VAProfileVP9Profile2            :    VAEntrypointVLD
admin@gentoo ~ $ 

admin@gentoo ~ $ echo $_JAVA_OPTIONS
-Dawt.useSystemAAFontSettings=lcd -Dsun.java2d.opengl=true -Dsun.java2d.pmoffscreen=true
admin@gentoo ~ $

Any help will be greatly appreciated.

Thanks
 
I did also try running TWS using latest Oracle JRE 1.8.0.261 as opposed to the JRE bundled with TWS itself, however it made no difference whatsoever.

JRE 1.8 is actually pretty old. You can try a later version and see if that helps. You'll probably have to switch to OpenJDK.
 
JRE 1.8 is actually pretty old. You can try a later version and see if that helps. You'll probably have to switch to OpenJDK.

The only OpenJDK I tried is the one shipped with IBKR itself. Made no difference and is kinda sluggish.

Either way, I am trying to execute IBKR in debug mode to see if I can get anything useful out of it but I can't seem to get it logging anything

Code:
admin@gentoo ~ $ echo $JAVA_TOOL_OPTIONS
-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n -XX:ErrorFile=./javadump.txt
admin@gentoo ~ $

Am I doing something wrong? Thanks

Btw, 1.8.0_261-b12 isn't really that old as far as I can see (July 14, 2020), and runs way faster and with far less glitches than the JAVA shipped with IBKR.

Code:
admin@gentoo ~ $ java -version
Picked up JAVA_TOOL_OPTIONS: -agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n -XX:ErrorFile=./javadump.txt
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=lcd -Dsun.java2d.opengl=true -Dsun.java2d.pmoffscreen=true
Listening for transport dt_socket at address: 8000
java version "1.8.0_261"
Java(TM) SE Runtime Environment (build 1.8.0_261-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.261-b12, mixed mode)
admin@gentoo ~ $
 
Last edited:
So, apparently tws-latest-standalone-linux-x64.sh is bundled with a sightly older JRE version than the one I am using on my Gentoo laptop.

Code:
pietro@ubuntu-vm:~$ grep 'java version' Jts/launcher.log
2020-10-06 02:00:14.969 [CB] INFO  [AWT-EventQueue-0] - java version = 1.8.0_152
pietro@ubuntu-vm:~$

I tried to run TWS with Oracle JDK 15 under Ubuntu 20.04.1 but it trows a "Incorrect twsInfo" error shortly after login. I went through the launcher.log logs and there doesn't seem to be anything useful at first glance.

I will try OpenJDK 14 tomorrow, though I don't really have high hopes to get BBTV streaming working at this point. At least not without the help of the Engineering team.
 
Last edited:
Back
Top