Bug 465338

Summary: Minor Text Display Issue
Product: [Applications] kstars Reporter: Fred <ruegs>
Component: generalAssignee: Rob <rlancaste>
Status: RESOLVED FIXED    
Severity: minor    
Priority: NOR    
Version: 3.6.3   
Target Milestone: ---   
Platform: macOS (DMG)   
OS: macOS   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Image of Mount Control window

Description Fred 2023-02-05 20:30:15 UTC
Created attachment 155978 [details]
Image of Mount Control window

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1.  Launch Mount Control from within the Mount Module
2. 
3. 

OBSERVED RESULT
Many of the field descriptions have missing letters.

EXPECTED RESULT
Words should be properly displayed

SOFTWARE/OS VERSIONS
Windows: 
macOS: 13.2
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
I have attached an image of the Mount Control window which shows many words with missing letters.
Comment 1 Rob 2023-02-07 03:36:39 UTC
This is very strange indeed.  I haven't seen this happen since I started helping with KStars back in 2016.  I did a whole bunch of stuff with the QML code and I never saw it do that.  I can confirm that after testing this evening that it does this on my system as well and it affects both "What's Interesting Today" and the "Mount Control Box".  So whatever this is, it appears to be related to QML rendering in general.  I played around a little bit this evening and I was able to make the issue go away for an element if I set renderType: Text.QtRendering on that element.  But that is supposed to be the default, and I tried a couple of other ways that should set that globally in the software, but that was the only thing that worked.  So my guess is this is some sort of QT Bug for QML rendering, especially because nothing has changed in the KStars QML files for a couple of years.
Comment 2 Rob 2023-02-17 19:00:50 UTC
Ok I think I have figured out the issue and I have a workaround.  It looks like there is some sort of QT bug with renderType being set incorrectly for various components as I mentioned and setting the renderType for each item does seem to fix it.  Unfortunately I wasn't able to set it globally, which is probably the reason for the bug in the first place because the default should already be Text.QtRendering.  Here is my attempt to fix it https://invent.kde.org/education/kstars/-/merge_requests/840/diffs and if there are not issues with my change, I can push it through.  It is not elegant, but it works around the problem and seems to fix it for us.
Comment 3 Fred 2023-02-17 19:10:50 UTC
(In reply to Rob from comment #2)
> Ok I think I have figured out the issue and I have a workaround.  It looks
> like there is some sort of QT bug with renderType being set incorrectly for
> various components as I mentioned and setting the renderType for each item
> does seem to fix it.  Unfortunately I wasn't able to set it globally, which
> is probably the reason for the bug in the first place because the default
> should already be Text.QtRendering.  Here is my attempt to fix it
> https://invent.kde.org/education/kstars/-/merge_requests/840/diffs and if
> there are not issues with my change, I can push it through.  It is not
> elegant, but it works around the problem and seems to fix it for us.

Thank you for looking into this Rob - I'll look forward to trying it out!
Comment 4 Rob 2023-02-18 16:37:22 UTC
Ok this build should include fixes for both the QML rendering bug displayed here and the port selector not showing up bug.

www.indilib.org/jdownloads/kstars/beta/kstars-3.6.3.dmg

Please try it out and let me know if it fixes it.
Comment 5 Fred 2023-02-19 00:44:49 UTC
(In reply to Rob from comment #4)
> Ok this build should include fixes for both the QML rendering bug displayed
> here and the port selector not showing up bug.
> 
> www.indilib.org/jdownloads/kstars/beta/kstars-3.6.3.dmg
> 
> Please try it out and let me know if it fixes it.

Hi Rob - responded over on the INDI forum as well but things look good and it appears that all the text and information is now displaying correctly! Thanks for your work on this!
Comment 6 Rob 2023-02-19 16:06:49 UTC
Ok I think this is all fixed in the repo