Bug 428743 - New pages are blank after a restart
Summary: New pages are blank after a restart
Status: RESOLVED FIXED
Alias: None
Product: plasma-systemmonitor
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KSysGuard Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-05 20:15 UTC by Vlad Zahorodnii
Modified: 2020-11-11 12:27 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
a screenshot that shows the problem (31.58 KB, image/png)
2020-11-05 20:15 UTC, Vlad Zahorodnii
Details
my config file (119 bytes, text/plain)
2020-11-05 20:15 UTC, Vlad Zahorodnii
Details
Config for "My Poor CPU" page (430 bytes, text/plain)
2020-11-05 20:17 UTC, Vlad Zahorodnii
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vlad Zahorodnii 2020-11-05 20:15:09 UTC
Created attachment 133065 [details]
a screenshot that shows the problem

SUMMARY


STEPS TO REPRODUCE
1. Add a new page
2. Edit the new page, e.g. add cpu stats, etc
3. Restart Plasma System Monitor

OBSERVED RESULT
The new page is blank after the restart. In addition to that, the corresponding item in the page overview tab is also empty

EXPECTED RESULT
The new page is properly loaded after a restart

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

ADDITIONAL INFORMATION
Comment 1 Vlad Zahorodnii 2020-11-05 20:15:42 UTC
Created attachment 133066 [details]
my config file
Comment 2 Vlad Zahorodnii 2020-11-05 20:17:01 UTC
Created attachment 133067 [details]
Config for "My Poor CPU" page
Comment 3 Vlad Zahorodnii 2020-11-05 20:20:08 UTC
Sigh, it seems like bugzilla doesn't show original filenames

attachment 133066 [details] => systemmonitorrc
attachment 133067 [details] => my_poor\ cpu.page
Comment 4 Vlad Zahorodnii 2020-11-05 20:40:19 UTC
> Sigh, it seems like bugzilla doesn't show original filenames
Nvm, it shows them, but only in the details page.
Comment 5 Justin Zobel 2020-11-06 09:34:29 UTC
I've just tested on systemmonitor from git master and can't replicate the graph disappearing from the newly created tab.

I added CPU Core 1 Usage and it's still there after closing and restarting systemmonitor.

As for the Overview page issue, I can't replicate that either, mine is still called New Page.

It might be the there are fixes in git that haven't been pushed through to the release version you're using.
Comment 6 Vlad Zahorodnii 2020-11-06 10:00:31 UTC
I'm using system monitor built from source code
Comment 7 David Redondo 2020-11-09 14:30:42 UTC
If I understand correctly this happens when you close without saving?
Comment 8 Justin Zobel 2020-11-09 22:07:13 UTC
Update status.
Comment 9 Vlad Zahorodnii 2020-11-10 08:00:14 UTC
(In reply to David Redondo from comment #7)
> If I understand correctly this happens when you close without saving?

I saved the page and then closed system monitor.
Comment 10 David Redondo 2020-11-10 08:06:17 UTC
I think I know what is the problem and added a fix to https://invent.kde.org/plasma/plasma-systemmonitor/-/merge_requests/67 (commit 4)
Comment 11 David Redondo 2020-11-11 12:27:58 UTC
Git commit bec50608b7c4ddf64ffa441425ec6684c33f385b by David Redondo.
Committed on 11/11/2020 at 12:25.
Pushed by davidre into branch 'master'.

Save new page after creating it

Now that we don't have auto save but save and discard we need to
save a new page after adding it to be in sync. Otherwise it will
be empty on next start if it is not explicitely saved.

M  +1    -0    src/main.qml

https://invent.kde.org/plasma/plasma-systemmonitor/commit/bec50608b7c4ddf64ffa441425ec6684c33f385b