Menu

Difficulty saving settings

2015-12-18
2016-04-11
  • Rocus van Oosten

    When I try to save settings, in many cases they don't seem to "hold". I also noticed that sometimes the default settings are returned. Maybe new settings are checked for certain constraints and when they are not met, the old/default settings are saved.

    The easy workaround is ofcourse to edit the json file with your own editor but that is just quick and dirty.

    Am I the only one with this problem?
    I use ubuntu 12.04 and streamtuner2 2.1.9

    But anyway, streamtuner is a very usefull program.

    Thanks for all the effort that goes into it!

     
  • Mario Salzer

    Mario Salzer - 2015-12-18

    Hi. I've not heard of such an issue yet. (Earlier 2.0.x versions did have some trouble with the custom Python-driven format. But all current 2.1.x releases use proper JSON.)

    Anyway, try to test streamtuner with the -D flag. That should show a bunch of debug notices on the console like:

      [CONF] config save config_load_favicon True
    

    Normally all entries are stored as-is. There's little filtering apart from casting numeric values and booleans (True/False).

    When streamtuner2 starts, it should also show this as the very first debug message:

      [PROC] ConfigDict() initialized
    

    If there's any reading or JSON error, you would see a warning around there.

     

    Last edit: Mario Salzer 2015-12-18
  • Rocus van Oosten

    Thanks for your reply, Mario.

    I did run streamtuner2 with the debug option and nothing strange came up. I discovered that my problem had something to do with the gtk tools streamtuner2 uses: If I edit a field (for example the player to call for a specific audio format) and then save, the edit does not hold. If on the other hand I click on some other field (after the edit) there appears a cross right before the editted field (to show it changed?) and then save, it is really saved.

    So the editting in subfields is a bit unexpected. I am no expert in GTK procedures but I think the problem lies there.

    I tried streamtuner2 on an other system (Lubuntu 14.04) and the editting works there as expected. (it uses LXDE)

    I also must explain that my main computer has Ubuntu 12.04LTS (I planned to use that for 5 years) and at the start I installed there gnome 2 . Unity really pisses me off. The problem with gtk might also come from this old gnome (or not?)

    It is all a bit confusing to me: gtk and the window manager, how do they interract, why does streamtuner looks different on my lubuntu system compared to my ubuntu system?

    BTW.: I installed streamtuner2 on the lubuntu 14.04 system and I got a lot of error messages during startup. It is completely useless because of these errors. I think some Python dependencies are not met. Have you ever tried streamtuner2 on Lubuntu?
    I could help you with the error messages and make it work on Lubuntu.

    Hope to hear from you...

     
  • Mario Salzer

    Mario Salzer - 2015-12-19

    Oh, this might be an actual issue. The Excel-style configuration settings (for players and recording tools) often only take effect if you press ENTER after changing them. This is indeed a bit Gtk-specific and may depend on the theme engine or desktop environment.

    All other fields (checkboxes or plain text entry fields) work as usual. I might have to revisit those table-field widgets though. They're a bit finicky to control and catch editing events.

    Some distributions also just come with a bland Gtk setup. It's not just Lubuntu, but distros like Debian or Arch when installed as plain server system initially. Only a preconfigured Gnome or XFCE typically sets up an acceptable Gtk theme. So that's not Lubuntu specific.

    The ST2 .deb package also does not declare ALL required dependencies, so might miss a few Python-specific libraries. In particular older distros (2012 or before) have different package dependencies here and there. If you can list the errors, I might be able to answer what's wrong.
    Typically it should work with just a few features disabled however. (Unless it's running on Python before 2.6)

     
  • Rocus van Oosten

    Hi Mario,

    I tried streamtuner2 again on my Lubuntu system 14.04. It generated all kinds of errors (like icon files not present, glade errors and others). I reinstalled streamtuner from the lubuntu repository (apt-get etc...). No better.

    Then I installed the deb package from the sourceforge website. Then an almost perfect streamtuner2. It looks like the one on my ubuntu 12.04, it has the same edit quirks. But I got several core dumps. Log time no see...Could that be the python interpreter? This is an old system with (only) 250 MB. (I remember times where PC's had 1MB , not so long ago says the old man).

    But anyway it works and shows the same behaviour as on my Ubuntu 12.04 (with more memory).

    Does this mean that the lubuntu maintainers made mistakes in their repository.
    If so, that is a shame.

    BTW.: the properties window has 4 tabs: player, options, channel etc. Right before player must be some icon but is a square with a number in it. Only one tab (options) has an appropriate icon before it. I suspect a missing Icon??

     
  • Rocus van Oosten

    The last remark, I traced it back to strange characters in the compressed xml file.
    Do I miss a character set or something? Not really important ofcourse.

     
  • Mario Salzer

    Mario Salzer - 2015-12-20

    The missing icons are just Unicode symbols. So that would mean you don't have one of the full fonts installed (like Symbola, Unifont, etc.). Shouldn't impact any functionality though. And the uncompressed XML file just needs an UTF-8 editor to view them alike.

    Now streamtuner2 is way more memory hungry than streamtuner1 used to be. It's mostly due to the Python VM, the icon display and doubling data in Python structs and Gtk widget buffers. There was a special streamtuner2 server setup, which allowed to use Shoutcast streams in Gtk1/streamtuner1. [But nobody ever used it to my knowledge.]

    So 250M might be too little ;)
    Btw, my first PC had like astonishing 2MB or something.

    The Lubuntu repos should be more or less identical to Ubuntus. It's mainly just the default desktop environment. That being said, there was still an older version (2.0.x) in some distributions. Which in turn was caused by ST2 not having new releases for a while.

     

    Last edit: Mario Salzer 2016-04-11
  • b2f9h203

    b2f9h203 - 2016-04-11

    I also had the problem with the missing icons.
    I think it would be a good idea to add unifont to the suggested or required dependencies.
    Also, after installing unifont I still have unicode box symbols next to the newly found icons. They contain the numbers 0020.. which should be space... not sure what is wrong here.
    Edit: after also installing fonts-symbola. It works completely. I somehow understood it that way, that either Symbola or Unifont would be enough...

     

    Last edit: b2f9h203 2016-04-11
  • Mario Salzer

    Mario Salzer - 2016-04-11

    @Luyomi The space placeholder is probably a font-config issue, may even depend on the distro I'd say. But anyway, I guess it's best to recommend Symbola then as suggested dependency.
    I think that's what Debian did for their proper .deb package.

    Alternatively we could reintroduce proper icons instead of Uniocde symbols there. Though it's just decoration anyway.

     

    Last edit: Mario Salzer 2016-04-11

Log in to post a comment.