Shop OBEX P1 Docs P2 Docs Learn Events
bst terminal hangs on ubuntu 12.04 — Parallax Forums

bst terminal hangs on ubuntu 12.04

manitoumanitou Posts: 29
edited 2013-06-25 03:52 in Propeller 1
i have been using bst on ubuntu 10.04 and 11.04 sucessfully.
On ubuntu 12.04 bst compiles and downloads just fine, but
when i connect to the terminal -- the program prints out a few
characters, and then the terminal/bst locks (turns gray) and I have
to kill bst to recover. If instead of using bst terminal I use
kermit or screen to talk to the program (on /dev/ttyUSB0), terminal
i/o works fine. I guess it may be something with the mono-C# tools,

things to try ??

(using a propeller quickstart board)
«1

Comments

  • Heater.Heater. Posts: 21,230
    edited 2012-08-05 22:43
    Sorry I have no clue what the problem might be, BST has always just worked for me on Debian
    I have noticed over the past couple of years that Ubuntu has a habit to make things not work.
    Just to note that BST is not written in C# or use mono it is written in Pascal. Perhaps you are confusing it with the HomeSpun compiler.
  • manitoumanitou Posts: 29
    edited 2012-08-06 08:50
    Heater. wrote: »
    Sorry I have no clue what the problem might be, BST has always just worked for me on Debian
    I have noticed over the past couple of years that Ubuntu has a habit to make things not work.
    Just to note that BST is not written in C# or use mono it is written in Pascal. Perhaps you are confusing it with the HomeSpun compiler.

    You are correct, mono reference was confusion with Catalina (which works). For what it's worth, when bst.linux terminal hangs, strace shows

    futex(0xa0d1c00, FUTEX_WAIT_PRIVATE, 2, NULL
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2012-08-06 09:18
    I upgraded to Ubuntu 12.04 a while ago and am NOT happy on other aspects. So it doesn't surprise me. I am having problems with my monitor blacking out when I change web pages. And then there are other things that I cannot pin down yet, but have pop up boxes hanging until I hit the ESC to get rid of them.

    All this points to new bugs in X Windows which may be due to being too ambitious about new video features.
  • SRLMSRLM Posts: 5,045
    edited 2012-08-06 10:08
    I haven't had any issues with 12.04. But, if you're looking for a terminal solution, then perhaps this might be of help: http://forums.parallax.com/showthread.php?140139-Gedit-Spin-Syntax-Highlighting-gt-Solution!
  • alpinekidalpinekid Posts: 8
    edited 2012-12-07 08:32
    I'm also hava simular problem. The strace shows

    futex(0x8df7c00, FUTEX_WAIT_PRIVATE, 2, NULL

    This is happening when bst starts up. A small square window open in the middle of the screen. It is solid light gray and it hangs right there.




    My add info is,
    This is happening on the bst from bst-0.19.4-pre14.linux.zip. I got it from the snapshot directory.

    The version from the latest directory, bst-0.19.3.linux.zip, does not have this issue. but there is a bug in the optimizing in this version.

    This all worked on ubuntu 10.4 but when I upgraded to 12.4 it stopped working. I'm really confused. The ldd library list between 19.3 and 19.4 is the same.

    I'll continue to investigate,
    Has anyone found a solution or even the cause?
  • Heater.Heater. Posts: 21,230
    edited 2012-12-07 08:38
    The solution, I'm afraid, is to switch from BST to SimpleIDE. https://sites.google.com/site/propellergcc/documentation/simpleide
    BST is a fine program and has worked well for a long time but it author has dropped off the map and I see no possibility of any fixes and updates coming. SimpleIDE has been working well for me on Debian.
  • alpinekidalpinekid Posts: 8
    edited 2012-12-07 09:04
    Thanks, I will give it a shot. I'm working on a spin app and i saw that they just added spin support. Does it have the optimizing flags and lib paths. I use both.
    A lot of code to squeeze into 32K:-)
  • Heater.Heater. Posts: 21,230
    edited 2012-12-07 09:14
    SimpleIDE will use either the BSTC compiler, a command line version of the compiler in BST, or the new open source Spin compiler.
    BSTC of course supports all the flags and enhancements to Spin that BST does. Although I can't recall how easy it is to get SimpleIDE to use them. The open source Spin compiler does not have the enhancements yet. Not sure how it goes with the lib paths.
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2013-06-19 02:25
    This was an old thread, but I just upgraded my netbook to Ubuntu 12.04 LTS and now I have a 64bit and 32bit installation that both hang BST 19.3.

    The behaviour is as follows:

    Loads properly. And responds to a bst.ini file.

    After opening an existing .spin file it hangs without further activity, or it works fine.

    After trying to use Find in an existing open .spin file, it always hangs.

    This isn't going away.....
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2013-06-19 07:01
    Have spent yet another day with BST and 12.04LTS... but it seems that unless Brad wants to either provide source code or recompile to whatever has been changed... BST for Linux is pretty much dead.

    Sadness...
  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2013-06-19 07:12
    Have spent yet another day with BST and 12.04LTS... but it seems that unless Brad wants to either provide source code or recompile to whatever has been changed... BST for Linux is pretty much dead.

    Sadness...

    Well you could just skip using the BST terminal and use Minicom as I do in conjunction with BST. I am using it on Linux Mint 14/15 and other than the automatic port disconnect feature of the BST terminal I don't have problem just typing ^A T to take minicom to a menu screen which disconnects the port so I can use BST to download. Afterwards I just hit escape and I'm connected back. Besides minicom is a full featured terminal anyway.

    P.S. Try Linux Mint 15 instead with the Cinnamon desktop, really great combo and everything just works.
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2013-06-19 07:29
    Peter J.......... Alas alack... it is NOT the serial terminal that hangs. It is BST itself. I have to go into system administration and kill the BST process just to get my computer back.

    I already use and love to use Minicom.

    Linux Mint might be a solution for most users... good stuff, but it has no Chinese for my 'other studies'.

    At least you have offered hope that there is another Debian branched Linux out there that will let me use BST.
  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2013-06-19 07:35
    Peter J.......... Alas alack... it is NOT the serial terminal that hangs. It is BST itself. I have to go into system administration and kill the BST process just to get my computer back.

    I already use and love to use Minicom.

    Linux Mint might be a solution for most users... good stuff, but it has no Chinese for my 'other studies'.

    At least you have offered hope that there is another Debian branched Linux out there that will let me use BST.
    I will have to check Ubuntu 12.04 in a VirtualBox but I think it's because it uses Unity which might not be that compatible with its GUI library but I might be wrong there. Have you tried launching BST from a terminal (easy way) so you can track it while it's operating, that should give you a few clues straight-away.
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2013-06-19 07:56
    Okay, I tried to get is started from a Terminal screen.

    george@smokey:~$ ls
    Animated Images Downloads minicom.log Public
    bst.linux Firefox_wallpaper.png Music Templates
    Desktop libpeerconnection.log Pictures Ubuntu One
    Documents license.html Projects Videos
    george@smokey:~$ bst.linux
    bst.linux: command not found
    george@smokey:~$ sudo bst.linux
    [sudo] password for george:
    sudo: bst.linux: command not found
    george@smokey:~$ http://www.amazon.com/dp/B001R6A394

    While it claims it is NOT found, you can see it listed.

    And when I click the icon, it starts... it loads a .spin file, and then it locks up. Arrgh.........
  • pmrobertpmrobert Posts: 675
    edited 2013-06-19 08:01
    Try "sudo ./bst.linux".
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2013-06-19 08:02
    You might want to go into System Monitor and look at the process listing before you kill it.

    IN the 'Waiting channel', it says "futex_wait_que_me". That seems a bit different. I'll poke around for some more info.
  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2013-06-19 08:04
    You might want to go into System Monitor and look at the process listing before you kill it.

    IN the 'Waiting channel', it says "futex_wait_que_me". That seems a bit different. I'll poke around for some more info.

    Try typing the dot-slash before it: ./bst
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2013-06-19 08:09
    Now it loads... but



    george@smokey:~$ ./bst.linux
    [WARNING] Out of OEM specific VK codes, changing to unassigned
    [WARNING] Out of unassigned VK codes, assigning $FF

    And you can see the warnings. all two of them above.
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2013-06-19 08:16
    Well, I posted wrongly.. both machines have 32bit Ubuntu 12.04LTS and both behave badly.

    Here is another Parallax thread..
    http://forums.parallax.com/archive/index.php/t-142989.html
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2013-06-19 08:16
    Well, I posted wrongly.. both machines have 32bit Ubuntu 12.04LTS and both behave badly.<br><br>Here is another Parallax thread..

    http://forums.parallax.com/archive/index.php/t-142989.html
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2013-06-19 08:43
    Well, the terminal shows the struggle to kill BST.

    george@smokey:~$ ./bst.linux
    [WARNING] Out of OEM specific VK codes, changing to unassigned
    [WARNING] Out of unassigned VK codes, assigning $FF
    [CRITICAL] os_bar_hide: assertion `OS_IS_BAR (bar)' failed


    (bst.linux:3685): Gtk-CRITICAL **: IA__gtk_widget_hide: assertion `GTK_IS_WIDGET (widget)' failed
    [CRITICAL] os_bar_set_parent: assertion `OS_IS_BAR (bar)' failed
    [CRITICAL] os_bar_hide: assertion `OS_IS_BAR (bar)' failed


    (bst.linux:3685): Gtk-CRITICAL **: IA__gtk_widget_hide: assertion `GTK_IS_WIDGET (widget)' failed
    [CRITICAL] os_bar_set_parent: assertion `OS_IS_BAR (bar)' failed


    (bst.linux:3685): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.


    (bst.linux:3685): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.


    (bst.linux:3685): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.


    (bst.linux:3685): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.


    (bst.linux:3685): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.


    (bst.linux:3685): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.


    (bst.linux:3685): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    george@smokey:~$

    All gone..........................
    Am i really to believe that I must change to another Linux Distrobution in order to have BST?
  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2013-06-19 08:54
    Well, the terminal shows the struggle to kill BST.

    george@smokey:~$ ./bst.linux
    [WARNING] Out of OEM specific VK codes, changing to unassigned
    [WARNING] Out of unassigned VK codes, assigning $FF
    [CRITICAL] os_bar_hide: assertion `OS_IS_BAR (bar)' failed


    (bst.linux:3685): Gtk-CRITICAL **: IA__gtk_widget_hide: assertion `GTK_IS_WIDGET (widget)' failed
    [CRITICAL] os_bar_set_parent: assertion `OS_IS_BAR (bar)' failed
    [CRITICAL] os_bar_hide: assertion `OS_IS_BAR (bar)' failed


    (bst.linux:3685): Gtk-CRITICAL **: IA__gtk_widget_hide: assertion `GTK_IS_WIDGET (widget)' failed
    [CRITICAL] os_bar_set_parent: assertion `OS_IS_BAR (bar)' failed


    (bst.linux:3685): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.


    (bst.linux:3685): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.


    (bst.linux:3685): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.


    (bst.linux:3685): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.


    (bst.linux:3685): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.


    (bst.linux:3685): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.


    (bst.linux:3685): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    george@smokey:~$

    All gone..........................
    Am i really to believe that I must change to another Linux Distrobution in order to have BST?

    I gave up on Ubuntu when it not only came out with Unity and they made sure it wasn't easy to change whereas previously you could just choose the desktop you wanted. There are plenty of Ubuntu based distros out there with other desktops but Mint+Cinnamon is my favorite. At least try it to make sure it's not an evil plot against the Herzogs lineage :)


    EDIT: Have you tried Deepin, it's a Chinese/English Ubuntu distro with the Gnome desktop.
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2013-06-19 09:33
    Okay, I may have to say good-bye to Ubuntu... after all there are other distros and Mint has actually risen to #1

    Now Magneta is #2 and Ubuntu has fallen to third.

    http://distrowatch.com/



    I know this is not an evil plot, it is Linux.. not MS. But, as Richard M. Nixon once say, "Even the paranoid have real enemies."

    I guess I am going to have to sort out what to do about Chinese in Linux. Windows wants you to spend big bucks to have a multiple language OS.

    Magenta seems to have the Asian Language support.
  • SRLMSRLM Posts: 5,045
    edited 2013-06-19 20:15
    You may want to try Ubuntu Gnome: it's the (official) Ubuntu flavor with the Gnome desktop environment. BST seems to work fine for me, even with the "Out of Codes" errors. I can load the files without hanging, and I can search without hanging.

    I'm using Ubuntu Gnome 13.04.
  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2013-06-19 20:31
    Okay, I may have to say good-bye to Ubuntu... after all there are other distros and Mint has actually risen to #1

    Now Magneta is #2 and Ubuntu has fallen to third.

    http://distrowatch.com/



    I know this is not an evil plot, it is Linux.. not MS. But, as Richard M. Nixon once say, "Even the paranoid have real enemies."

    I guess I am going to have to sort out what to do about Chinese in Linux. Windows wants you to spend big bucks to have a multiple language OS.

    Magenta seems to have the Asian Language support.
    I think you meant Mageia but as I mentioned Linux Mint just works and isn't it just a matter of installing the language packages and input such as ibus-pinyin etc? Perhaps you could stop wasting a lot of time bashing the square peg into the round hole and just use the round peg instead? :) (or is that too Aussie for ya :):):) )
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2013-06-20 02:16
    Where is the fun in using the right peg? Nonetheless, it seems that I have to commit my notebook to being a Propeller development machine and not worry at the Chinese so much.

    Just going through the grief process, right? http://grief.com/the-five-stages-of-grief/

    Denial has just been overcome and I think I am at least as far a bargaining.....

    And of course, as Charlie Brown has always wisely said, "Good Grief!" Lots of grief processing in programming and hacking, right?

    Pretty soon, I will be using something new and back into denial. ;-)
  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2013-06-20 03:01
    Where is the fun in using the right peg? Nonetheless, it seems that I have to commit my notebook to being a Propeller development machine and not worry at the Chinese so much.

    Just going through the grief process, right? http://grief.com/the-five-stages-of-grief/

    Denial has just been overcome and I think I am at least as far a bargaining.....

    And of course, as Charlie Brown has always wisely said, "Good Grief!" Lots of grief processing in programming and hacking, right?

    Pretty soon, I will be using something new and back into denial. ;-)
    LOL :lol:
  • pmrobertpmrobert Posts: 675
    edited 2013-06-20 05:37
    I ran into a similar problem with Lazarus under Linux. The problem was that I had a fancy gaming keyboard with it's own driver. Setting the OS driver back to a standard 101-key keyboard cured the "out of VK (virtual keys) error messages. This is certainly not optimal but did work.

    -Mike
  • max72max72 Posts: 1,155
    edited 2013-06-20 05:39
    I had similar issues with ubuntu and bst, but Simple ide worked fine. Maybe worth a try..
    Massimo
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2013-06-20 06:51
    hi all..

    I certainly want to explore SimpleIDE as another alternative, and I am currently working through the Linux installation instructions.

    I am also going to install an alternative Linux on a spare notebook. I'd rather have BST to fall back on, even if I have SimpleIDE and the Propeller Tool.... at least until I confirm that ALL the features that Brad provided are available elsewhere. The original Propeller Tool did not provide compiler listings... and that and other added features are what made BST the 'go to and use' preference it has become.

    At this point, I am not very sure about changing the OS keyboard selection would work. I don't actually have a special keyboard on one of the two computers that BST fails with, the other has a notebook keyboard... but has been a generic keyboard selection in Linux installation.

    It maybe something in the source code that has made a non-standard keyboard choice. Brad Campbell hasn't done any new work on BST since 2010, so I am thinking he feels SimpleIDE will take over where he left off.
Sign In or Register to comment.