1. Open attachment 142643 [details] from bug 118105 in a debug build, using LO_IMPORT_USE_PDFIUM (e.g., 'LO_IMPORT_USE_PDFIUM=1 soffice path/to/3-collabora_online_slide_deck.pdf'). 2. Right-click the PDF object, and Break it. 3. Close the document (without saving), but do not close the program. 4. Open the PDF document again, and break the object again. On my Windows system, this crashes. The problem is EACCES inside afdko's cbConvert, because the file already exists. The problem is, that the second import may create a new instance of ImpSdrPdfImport, having exactly the same address, so than getPrefix returns the same value (see commit b3bfae88b66acf4e0ecbf3464362834f5ce3ac1e).
https://gerrit.libreoffice.org/c/core/+/201785
Mike Kaganski committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/dc4f4b85c50a2d24c5e2417854f54934bc4136da tdf#171337: improve prefix generation to guarantee uniqueness It will be available in 26.8.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Mike Kaganski committed a patch related to this issue. It has been pushed to "libreoffice-26-2": https://git.libreoffice.org/core/commit/5608d1643f7806f8cbaf704957fddc98c880bfb2 tdf#171337: improve prefix generation to guarantee uniqueness It will be available in 26.2.3. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.