Description: Libre Office 6.0.6.2 writes a large number of files to the system temporary folder. These are in the form of "gpgme-15iaRI" or similar. These files accumulate in large numbers and are not deleted, requiring manual cleaning. This did not happen with version 5.4.7 Steps to Reproduce: 1.Open a file in Libre Office 2.Do anything 3.Close Libre Office Actual Results: Large number of files like "gpgme-15iaRI" are created in system temp folder Expected Results: No files created in temp folder or if they are, should be automatically deleted when do longer required. Reproducible: Always User Profile Reset: No OpenGL enabled: Yes Additional Info: [Information automatically included from LibreOffice] Locale: en-GB Module: StartModule [Information guessed from browser] OS: Windows (All) OS is 64bit: no
gpgme: https://github.com/gpg/gpgme I think in later versions gpgme will not be touched, if there is no need for it. Please check with version 6.1.2. Set to NEEDINFO. Change back to UNCONFIRMED, if the problem persists. Change to RESOLVED WORKSFORME, if the problem went away.
Got this as a private email: "I reported this bug and I am using version 6.1.2 and it has this bug. I have found the bug only happens when opening .docx or .xlsx files and each file opening writes 5 gpgme-xxxxx files to the system temporary folder. These files are not automatically deleted and so accumulate in big quantity."
I'm not seeing any such files appearing in C:\Windows\Temp Version: 6.1.2.1 (x64) Build ID: 65905a128db06ba48db947242809d14d3f9a93fe CPU threads: 4; OS: Windows 10.0; UI render: default; Locale: fi-FI (fi_FI); Calc: group threaded
Created attachment 146443 [details] Screenshot Again a direct email with: "Here is a screen clip of my temp folder showing the files after half a day of use. I do not use gpg as I have not been able to work out how, but I have both Gpg4win and GnuPg installed on my computer."
Odd, what do those files contain? Could you attach 2-3 samples?
Created attachment 146560 [details] Sample tmp file Reporter provided sample gpgme file by private mail
So those files are generated by gpgme, and used by the little helper binary gpgme-w32spawn.exe (source is here: https://github.com/nobled/gpgme/blob/master/src/gpgme-w32spawn.c - you see it's trying to delete the file at the very end). It's odd that this would somehow not work on your system, but everywhere else - I also didn't find any matching upstream bug at the gpgme project. Is there anything special with your system setup? Limited rights, perhaps custom install, some AV running that interferes? Additionally, what's odd is that docx/xlsx files would trigger this; on 6.1.3 loading that shouldn't even trigger gpg code. Any chance to try a recent master build from https://dev-builds.libreoffice.org/daily/master/Win-x86_64@42/ ?
Answer from xtr80659501: I installed Libre 6.1.3 but the problem is still there. However, I have narrowed the problem down as it does not happen all the time. It is happening when I open any .docx or .xlsx file that has previously been saved with a password. This is using the regular Libre “Save with password”, NOT USING “Encrypt with GPG key”. The problem does not happen with .odt files saved with a password or with older .doc files saved with a password. Some of the temporary files are now 32 bytes and contain the text, ~1 0x1 -1 0x4 4 0x3 1 0x8 0. It will happen even if .docx and .xlsx files are saved with a password (not GPG) in Libre 6.1.3 so it is not a problem with files saved in an older version. This problem with .docx and .xlsx files was not in the earlier Libre 5.x There is nothing unusual about my system. I run Avira antivirus in standard configuration. I also run EMET and Cryptoprevent but I have tried with both these disabled and the problem is still there, so they are not an issue. I notice “gpg-agent.exe” runs as a process even after Libre is shut down, but I don’t know if this is normal. I would have expected this to remove itself when no longer needed.
Could you please try to reproduce it with the latest version of LibreOffice from https://www.libreoffice.org/download/libreoffice-fresh/ ? I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the latest version.
Dear xtr806595, This bug has been in NEEDINFO status with no change for at least 6 months. Please provide the requested information as soon as possible and mark the bug as UNCONFIRMED. Due to regular bug tracker maintenance, if the bug is still in NEEDINFO status with no change in 30 days the QA team will close the bug as INSUFFICIENTDATA due to lack of needed information. For more information about our NEEDINFO policy please read the wiki located here: https://wiki.documentfoundation.org/QA/Bugzilla/Fields/Status/NEEDINFO If you have already provided the requested information, please mark the bug as UNCONFIRMED so that the QA team knows that the bug is ready to be confirmed. Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-NeedInfo-Ping
I have given up trying to use GPG and I removed all components of GnuPG, GPGME etc. from the computer so the numerous temporary files are no longer being created. I cannot provide any further information.
Ok, let's close
Well, here we go again. Tripped into this little bug after installing LO 7.1.1.2. LO CALC or Office *may* create these little temp files with the text of "~1 0x1 1 0x4 0", and the file name is composed of "gpgme-" concatenated with a random 6 character suffix such as "EMruuk"; "ERx766"; "Ny6urN". Now, the funny thing is these little files are not deleted when the system is set to "wake up again", after going through a "sleep now" sequence in Windows 10. But is it a LO problem, or is it a Windows problem when the sleep sequence is initiated? This is where further diagnosis is needed. Im my instance , there were 4 LO documents open, when the 'system' is commanded to "sleep". (since it is active, right now, the fault cannot be tested , until later). The only other apps active at the time were a browser window(this page was active, on a different web page), and the Windows screen grabber tool for Win 10, "Snip & Sketch", and KeePass Password manager. Will update, after resolution or diagnosis found, since it is altogether plausible that this is not a fault of LO, but of something else. Flagging this as "re-opened", until further analysis will eliminate LO from "Resolved, Need more info".
I confirm the same behavior for Version: 7.1.3.2 (x64) / LibreOffice Community Build ID: 47f78053abe362b9384784d31a6e56f8511eb1c1 CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win Locale: de-DE (de_DE); UI: de-DE Calc: threaded When a ods or odt file is opened, LO creates 5 files gpgme-* (where * are 6 alphanumeric characters) in the user temp folder which are not deleted when LO is closed. This only happens if GnuPG is installed. If GnuPG is not installed, these files are not created. Another user reported that this does not happen with the portable version of LO.
Have the same issue with LO 7.1.3.2 Systemconfig: Win 10 Home 21H1 Thunderbird 78 gpg4win 4.1.14 After deinstallation of LO and using instead LO portable 7.1.3 the behaviour has changed. The opening of a writer or calc file creates 2 of those pgpme.xxxxx files in a slightly different temp folder, but they are deleted on closing LO writer or calc. The different folder is in this cae a sub folder of temp by the name LibreOfficePortableTemp, whereof in the LO installation version it was directly in the temp folder.
Dear xtr806595, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
GPG no longer installed. No further issues.
(In reply to xtr806595 from comment #17) > GPG no longer installed. No further issues. The bug is affecting several other people, so let's keep this open. If you don't want to receive mail for this, check the "Ignore Bug Mail" box in the bug report options.
I am using LibreOffice 7.4.5.1.(x86) and GnuPG 2.2.23. On opening an encrypted odt document, two temporary files of type "gpgme-xxxxx" with a length of 18 bytes are created in the Windows temporary folder. They are not deleted when LibreOffice is closed.