https://bugs.kde.org/show_bug.cgi?id=409602
Bug ID: 409602 Summary: Spider outputting large (GB) of data to ~/.xsession-errors file Product: kpat Version: 3.6 Platform: Manjaro OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: co...@kde.org Reporter: tr...@stevenson.kiwi CC: kde-games-b...@kde.org Target Milestone: --- SUMMARY Spider (and other games) are writing to the `~/.xsession-errors` file. Spider looks to be the worst offender, but others are writing out also. This file can grow to be very large, and is not under any kind of automatic log rotation policy. I don't know why kpat needs to write so tersely to log files, and if it does need to write so tersely to log files why it uses `~/.xsession-errors`, instead of a more sensible `/var/log/kpat/...` file. STEPS TO REPRODUCE 1. Open new game of spider 2. Run `tail -f ~/.xsession-errors` in a terminal side-by-side 3. Make any legal move in spider 4. I believe this prompts the solver to start 'looking'. 5. The solver is just outputting all data to the `~/.xsession-errors` file for an unknown reason. OBSERVED RESULT Given enough time, 10's or 100's of GBs of data will accumulate in the `~/.xsession-errors` file and fill the disk. EXPECTED RESULT No accumulated disk space waste. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Manjaro i3 18.04 KDE Plasma Version: Not installed KDE Frameworks Version: Not installed Qt Version: qt-assistant-compat 4.6.3-8 qt-recordmydesktop 0.3.8-7 qt4 4.8.7-29.1 qt5-base 5.12.4-2.1 qt5-declarative 5.12.4-1 qt5-location 5.12.4-1 qt5-multimedia 5.12.4-1 qt5-quickcontrols 5.12.4-1 qt5-script 5.12.4-1 qt5-sensors 5.12.4-1 qt5-speech 5.12.4-1 qt5-styleplugins 5.0.0.20170311-14 qt5-svg 5.12.4-1 qt5-tools 5.12.4-1 qt5-webchannel 5.12.4-1 qt5-webkit 5.212.0alpha2+156+g95401fe3908-3 qt5-x11extras 5.12.4-1 qt5-xmlpatterns 5.12.4-1 qt5ct 0.39-1 ADDITIONAL INFORMATION Example logs from `tail -f ~/.xsession-errors` follow (running it for fractions of a second would produce hundreds of times of similar logs to this): Off: print-layout-end moves 32 move 0 from 1 to 0 (-1) Prio: 14 move 1 from 1 to 0 (-1) Prio: 9 move 1 from 1 to 8 (-1) Prio: -33 move 2 from 1 to 0 (-1) Prio: 4 move 3 from 1 to 0 (-1) Prio: -1 move 3 from 1 to 5 (-1) Prio: 29 move 0 from 2 to 0 (-1) Prio: 14 move 1 from 2 to 0 (-1) Prio: 9 move 2 from 2 to 0 (-1) Prio: 4 move 0 from 3 to 0 (-1) Prio: 9 move 1 from 3 to 0 (-1) Prio: 4 move 2 from 3 to 0 (-1) Prio: -1 move 0 from 5 to 0 (-1) Prio: 14 move 1 from 5 to 0 (-1) Prio: 9 move 2 from 5 to 0 (-1) Prio: 4 move 2 from 5 to 2 (-1) Prio: -38 move 3 from 5 to 0 (-1) Prio: -1 move 0 from 6 to 0 (-1) Prio: 19 move 1 from 6 to 0 (-1) Prio: 14 move 2 from 6 to 0 (-1) Prio: 9 move 3 from 6 to 0 (-1) Prio: 4 move 3 from 6 to 5 (-1) Prio: -38 move 4 from 6 to 0 (-1) Prio: -1 move 4 from 6 to 9 (-1) Prio: 25 move 0 from 7 to 0 (-1) Prio: 14 move 1 from 7 to 0 (-1) Prio: 9 move 2 from 7 to 0 (-1) Prio: 4 move 3 from 7 to 0 (-1) Prio: -1 move 0 from 9 to 0 (-1) Prio: 4 move 1 from 9 to 0 (-1) Prio: -1 move 1 from 9 to 2 (-1) Prio: 23 move 0 from 10 to 0 (-1) Prio: 0 print-layout-begin Play0: 9S 6H TH JH JS Play1: 7H 6H AH JH TH 9H 8S Play2: 5S 4H 3H Play3: QS 3S Play4: TH TS 8S 7H Play5: 4H 3H 2H Play6: KH 2S KS QH JS Play7: 8H AS 7S KH QH JH TH 9H 8H 7H Play8: 6H Play9: AH Deal0: |8S |AH |2S |9H |5H |2H |QH |4S |KS |5S Deal1: |JS |3S |TS |QS |KH |QH |9H |3H |4S |5H Deal2: |3H |AS |TS |2H |5H |KH |7S |2H |8H |JH Deal3: |7H |AS |6H |AH |2S |9S |4H |4S |KS |7S Deal4: |6S |4H |5S |6S |9S |8H |6S |QS |5H |3S Off: KS print-layout-end moves 4 move 0 from 4 to 1 (-1) Prio: 8 move 0 from 9 to 5 (-1) Prio: 40 move 0 from 8 to 4 (-1) Prio: 24 move 0 from 8 to 7 (-1) Prio: 72 print-layout-begin Play0: 6H Play1: 7H 6H AH JH TH 4H 3H 2H AH Play2: JS TS 9S 8S Play3: QS 3S KS QH JH TH Play4: Play5: 4H 9H 8S 7S 6S 5S Play6: KH 2S KS QS JS TH 9H 8H 7H Play7: 8H AS 7S KH QH JH TH Play8: 3H Play9: JS TS 9S 8S 7H 6H 5S 4S 3S 2S AS Deal0: |8S |AH |2S |9H |5H |2H |QH |4S |KS |5S Deal1: |JS |3S |TS |QS |KH |QH |9H |3H |4S |5H Deal2: |3H |AS |TS |2H |5H |KH |7S |2H |8H |JH Deal3: |7H |AS |6H |AH |2S |9S |4H |4S |KS |7S Deal4: |6S |4H |5S |6S |9S |8H |6S |QS |5H |3S -- You are receiving this mail because: You are watching all bug changes.