Bug 495033

Summary: Unspecific error message when installing plasmoids via GetHotNewStuff when tmps for /tmp is full
Product: [Frameworks and Libraries] frameworks-knewstuff Reporter: stephan.seitz
Component: generalAssignee: Dan Leinir Turthra Jensen <admin>
Status: REPORTED ---    
Severity: normal CC: alexander.lohnau, kdelibs-bugs-null, nate
Priority: NOR    
Version First Reported In: 6.6.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description stephan.seitz 2024-10-19 10:34:20 UTC
SUMMARY

This might be a GetHotNewStuff bug, but reporting here since this is the component were I discovered it. Please excuse some missing details since the bug is difficult to reproduce and I'm reporting it 1 week after I experienced it.

First, let me explain how I came to the situation that I'm describing now. I tried to open the compressed kernel logs of an misbehaving driver in ark. The driver printed the same error message over and over. Compressed this data would be already large but would essentially explode uncompressed (kind of a zip bomb). Ark froze when the storage available in /tmp was exceeded. When I killed the unresponsive process the big temporary file was still there. Exactly 0 bytes available in /tmp. The system stayed responsive so I didn't notice that I could no longer create temporary files.

The error repro might be very specific, but maybe error reporting could be more specific to allow users to understand what went wrong. I thought the error was specific to the plasmoid that I wanted to installed but then got confused that also other plasmoids failed to install.

STEPS TO REPRODUCE
1. Fill up all the space available in the /tmp tmfs mount (e.g. by opening an archive in ark that would be much too big uncompressed)
2. Try to install a plasmoid (fails with unspecific error message)
3. Confirm the presence of 0-size temp files created by Plasma/GetHotNewStuff
4. Clean up /tmp to allow creation of temporary files again
5. Try to install the same plasmoid as before (still fails with unspecific error message)
6. Delete 0-size temp files
7. Try to install the same plasmoid as before (will now succeed)

OBSERVED RESULT

- Trying to install a plasmoid with no temp space available will fail with unspecific error message. A temp file will be created but it will have a size of 0. Extracting the temp file will obviously fail
- Even when when making space again in /tmp, plasmoid installation of the previous attempted installation will still fail. Apparently, there is an attempt to reused the previously created fault temp files
- Removing the temp files (name hinted relation to plasmoids) allowed installation of plasmoids again 

EXPECTED RESULT


SOFTWARE/OS VERSIONS

Operating System: Kubuntu 24.10
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.6.2
Kernel Version: 6.11.0-7-generic (64-bit)
Graphics Platform: X11
Processors: 20 × Intel® Core™ i9-10900X CPU @ 3.70GHz
Memory: 31,0 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 4070 SUPER/PCIe/SSE2

ADDITIONAL INFORMATION
Comment 1 stephan.seitz 2024-10-19 10:47:58 UTC
EXPECTED RESULT:
- Receive error message about missing space in /tmp
- GetHotNewStuff would check and clean up faulty temp files and try to redownload content