--
You received this message because you are subscribed to the Google Groups "Subsurface Divelog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to subsurface-dive...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/subsurface-divelog/0bb7e420-a4c8-493b-b49c-160c71dc8fe5o%40googlegroups.com.
Hi David,
I run Ubuntu 18.04 with one of the late development versions
of Subsurface. Attached screenshots for DejaVu 10 and DejaVu
11. Works according to expectations. There are a few things to
look at.
1) Where are your preferences stored and do you have access
rights to that directory? IMPORTANT: NEVER run Subsurface as
root.
2) Are your other preferences stored and correctly implemented? For instance if you set the animation speed in the Screen Preferences, is it stored and correctly used afterwards? My preferences are stored in Home/.config/subsurface, dunno if yours are the same. Check the file Subsurface.conf and see what the setting inside that file is. This helps to determine whether the font setting is not saved, or whether it is not read back correctly. In my system there is a section as follows:
[Display]
animation_speed=0
divelist_font=DejaVu Sans
font_size=10
Check how your system deals with this. My comments do not
represent a fix, but at least one can get closer towards
identifying the cause of the problem.
Kind regards,
willem
~/.config/Subsurface/Subsurface.conf
...
[Display]displayinvalid=falsedivelist_font=DejaVu Sansfont_size=6
...
On 2020/06/08 20:03, Darrell Barabash wrote:
Hello everyone,
First off to all the developers ... THANKS for all your skills, time and effort and sharing Subsurface. It is the only dive logger that I use. Love it.
I do have one issue that has persisted for at least a year in several version on different Linux computers. Currently I am running Subsurface 4.9.4 on MINT 19.3 and installed the binaries through the PPA. It runs fine but I continue to have the issue of the preference net getting applied when it launches.
Here is what I have tried so far:1) confirmed that ~/.config/Subsurface/Subsurface.conf is actually present and that I am the owner with read and write.2) started Subsurface and I can see that it is starting with DejaVu Sans size 10.
3) when I go to File => Preferences I see that the font size is 8 which is also what I see in the .conf file.
4) while in the Preference screen, I press "apply" to apply what I see in the window (DejaVu 8) but nothing in the display changes.5) but, if I toggle the font size to 7 and hit "apply" the size changes to 7. And, when I toggle back to 8 and hit "apply" the display changes to font size 8. It is stable for the rest of the session.6) exit and then restart and once again it starts at font size 10 even though the .conf is set to 8. I can repeat steps 3) .. 5) again and again and the behavior is consistent.7) manually editing the .conf file gives same result. No matter what font size I set, it always starts with 10 and I have to go though steps 3) .. 5) above to set it for the session.
Has anyone else has experienced this (I get it on three different Linux computers all running MINT 19.x) and can point me to what I might be doing wrong? Or, what can I do one my end to provide some diagnostics to help track this down?
Stay safe everyone and thanks in advance for the help!Darrell ...
Hi David,
I run Ubuntu 18.04 with one of the late development versions of Subsurface. Attached screenshots for DejaVu 10 and DejaVu 11. Works according to expectations. There are a few things to look at.
1) Where are your preferences stored and do you have access rights to that directory? IMPORTANT: NEVER run Subsurface as root.
2) Are your other preferences stored and correctly implemented? For instance if you set the animation speed in the Screen Preferences, is it stored and correctly used afterwards? My preferences are stored in Home/.config/subsurface, dunno if yours are the same. Check the file Subsurface.conf and see what the setting inside that file is. This helps to determine whether the font setting is not saved, or whether it is not read back correctly. In my system there is a section as follows:
[Display]
animation_speed=0
divelist_font=DejaVu Sans
font_size=10
Check how your system deals with this. My comments do not represent a fix, but at least one can get closer towards identifying the cause of the problem.
Kind regards,
willem
Thanks for those hints Willem. Unfortunately, I think that I have already exhausted the basic ideas:
- my preferences are stored in the same location as yours: ~/.config/Subsurface/Subsurface.conf
- the owner user and group are set to me with r/w access
Trying again to try and isolate where things are going wrong, I manually edited the configuration to set the font size to 6 (really small so easy to tell if this got applied or not):
~/.config/Subsurface/Subsurface.conf...[Display]displayinvalid=falsedivelist_font=DejaVu Sansfont_size=6...
Now I launch Subsurface from command line with -v -v -v -v option to see if any error messages and there were none. What I see is:
- Everything launches fine. But, the font size for the log display is clearly still 10.
- I then opened File => Preferences and that screen shows that the font size is 6 which seem to indicate that the preferences file was read, but not acted upon.
Hi Darrell (aka David !!??, apologies)
I will make time over the weekend to look at this. My problem is
that this is not repeatable on my Ubuntu box. The question is how
does the OS handle fonts that are passed to Qt for rendering?
Since Ubuntu and Mint are fairly close, I the likelihood is there
that our systems would behave similarly. However, I will scan the
code to see if I can find anything suspiciously.
One last favour no, actually two.
1) When you activate Help -> About Subsurface in the main menu, what is the precise version it shows, Just 4.9.4 with no other subversion info?
2) Take the troible and download the AppImage from the Subsurface Downloads page and see if the AppImage behaves similarly? I can run that same image (exaclt the same code) and see what happens on my system.
Kind regards,
willem
Subsurface v4.9.4,
built with libdivecomputer v0.7.0-devel-Subsurface-NG (7882ba423cd87569f9c9361fa999917e9ced1083)
built with Qt Version 5.12.4, runtime from Qt Version 5.12.4
built with libgit2 0.26.0
"validateGL(): created OpenGLContext."
"validateGL(): obtained QOpenGLFunctions."
"validateGL(): detected OpenGL version 3.3."
- in Subsurface 4.9.4 binary the fonts (size and/or type) are not initialized properly on any MINT 19.x version. They are never updated unless they are changed in the Preferences screen and then saved or updated. If neither the font size nor the font style are changed, there is no update to the display.
- in Subsurface 4.9.3 binary the fonts all work properly. Unfortunately the USB interface to my ScubaPro G2 doesn't seem to work in this version. Not sure if it matters but for me to be able to run 4.9.3 I did have to run under MINT 18.2. So, that is a potential difference I suppose.
- I don't know how to force the loading of 4.9.3 on MINT 19.3. That would be one way to know for sure whether the difference here is 4.9.3 versus 4.9.4 or is it MINT 18.* versus MINT 19.*
I just realized that I didn't respond correctly and missed getting some updated information out here. I'm a bit of a newbie here ... sorry.
UPDATE -- For sure it is not hardware. Last night I experimented on this AMD PC running MINT 19.3, Another Intel based PC running MINT 19.2. Two different laptops running MINT 19.1 and 19.3. Behavior is how I already described on every one.
Then, I did try some of the font experiments you mentioned. Maybe this result helps:
- in Subsurface 4.9.4 binary the fonts (size and/or type) are not initialized properly on any MINT 19.x version. They are never updated unless they are changed in the Preferences screen and then saved or updated. If neither the font size nor the font style are changed, there is no update to the display.
- in Subsurface 4.9.3 binary the fonts all work properly. Unfortunately the USB interface to my ScubaPro G2 doesn't seem to work in this version. Not sure if it matters but for me to be able to run 4.9.3 I did have to run under MINT 18.2. So, that is a potential difference I suppose.
- I don't know how to force the loading of 4.9.3 on MINT 19.3. That would be one way to know for sure whether the difference here is 4.9.3 versus 4.9.4 or is it MINT 18.* versus MINT 19.*
I notice that the Preferences screen is 4.9.3 and 4.9.4 is very different. Maybe an error or unexpected change crept in during this change?
Darrell ...
I just realized that I didn't respond correctly and missed getting some updated information out here. I'm a bit of a newbie here ... sorry.
UPDATE -- For sure it is not hardware. Last night I experimented on this AMD PC running MINT 19.3, Another Intel based PC running MINT 19.2. Two different laptops running MINT 19.1 and 19.3. Behavior is how I already described on every one.
Then, I did try some of the font experiments you mentioned. Maybe this result helps:
- in Subsurface 4.9.4 binary the fonts (size and/or type) are not initialized properly on any MINT 19.x version. They are never updated unless they are changed in the Preferences screen and then saved or updated. If neither the font size nor the font style are changed, there is no update to the display.
- in Subsurface 4.9.3 binary the fonts all work properly. Unfortunately the USB interface to my ScubaPro G2 doesn't seem to work in this version. Not sure if it matters but for me to be able to run 4.9.3 I did have to run under MINT 18.2. So, that is a potential difference I suppose.
- I don't know how to force the loading of 4.9.3 on MINT 19.3. That would be one way to know for sure whether the difference here is 4.9.3 versus 4.9.4 or is it MINT 18.* versus MINT 19.*
I notice that the Preferences screen is 4.9.3 and 4.9.4 is very different. Maybe an error or unexpected change crept in during this change?
Darrell ...
Apologies
src/subsurface/desktop-images/preferences/preferences-defaults
wf