Olav André Posted May 4, 2024 Posted May 4, 2024 (edited) When editing and saving a file in the latest version, embedded svg's in embedded svg's gets corrupted when saving the file. See the attached files. After editing text in the embedded file, the second embedded file gets corrupted. (It is still there, but cannot be resized because content is corrupted) To recreate: * Open "old file.afdesign" * Edit some text in the back-label with the barcode. * If you try to print the labels, or save, then re-open, the barcode is missing. (The barcode may look normal until re-opened, but will it not be printed) - Closing and re-opening the back-label after editing may also show the corruption of the embedded svg. Edit: I am using Affinity Designer v.2.4.2 after editing text and saving.afdesign old file.afdesign Edited May 4, 2024 by Olav André Added software. Quote
Olav André Posted May 5, 2024 Author Posted May 5, 2024 Follow-up: It is not necessary to edit, save and close the file. The bug happens when opening and closing the embedded SVG. When opening the embedded SVG the second time, the inner svg is corrupted. Note: * When opening and printing the file, the label is printed with the barcode. * Printing the label after opening and closing the embedded back-label prints the label without the barcode. (Barcode is still visible in editor) What is your operating system and version (Windows 11, OSX Ventura, iOS 16 etc)? Windows 11 Home, 23H2 Is hardware acceleration (in Preferences > Performance) ON or OFF ? (and have you tried the other setting?) Hardware acceleration was on, I have also tested with the same results after switching it off (video capture with hw-acc. off) What happened for you (and what you expected to happen) See video. I expected the barcode to remain a part of the label after opening and closing the label. Provide a recipe for creating the problem (step-by-step what you did). Opened emedded svg, closed it and re-opened it. Then the inner svg gets corrupted. (see video) Screenshots (very handy) or a screen capture/video. designerbug.mp4 Any unusual hardware (like tablets or external monitors or drives that may affect things) or relevant other applications like font managers or display managers. No. Laptop connected to a label-printer from Epson. Did this same thing used to work and if so have you changed anything recently? (software or hardware) The files were created in Affinity Designer version 1, and has been upgraded to version 2, and has been updated multiple times since then. I have skipped some minor versions but I didn't experience this bug until upgrading to v.2.4.2. (The last update may have been a two-step update from 2.2.x -> 2.3.x -> 2.4.2) The inner Embedded svg is downloaded from online-barcode-generator.net Quote
Dan C Posted May 7, 2024 Posted May 7, 2024 Hi @Olav André, Thanks for your report & our apologies for the delays here! On 5/5/2024 at 2:15 PM, Olav André said: It is not necessary to edit, save and close the file. The bug happens when opening and closing the embedded SVG. When opening the embedded SVG the second time, the inner svg is corrupted. I've been testing this further here and I can confirm that the edit is a necessary step to produce the behaviour shown in your file. For example, I create a new document in Designer using Prefer Embedded, then place 'file1.svg'. I open 'file1.svg' for editing, and within this file place 'file2.svg'. I then open 'file2.svg' for editing and without making any changes I close the edit window for both SVG files. I then reopen 'file1.svg' for editing and the placed 'file2.svg' is temporarily hidden, showing as 0px Width and Height. Deselecting and reselecting this layer correct updates the W/H values for the placed file. If I then reopen 'file2.svg' for editing and make any changes to the file (for example move one of the existing objects) and close both 'file1.svg' and 'file2.svg' editing windows, the master document appears to update correctly. However, now when reopening 'file1.svg' for editing, I see the same issue as shown in your document - 'file2.svg' is set to 0px W/H and cannot be recovered. 2024-05-07 16-18-03.mp4 I'm getting this logged with our development team now as this certainly shouldn't be happening. Unfortunately the only resolution I've found thus far is to Replace the edited SVG file placed within your Embedded SVG to stop this from happening, once the file has been edited once. I hope this helps! Quote
Staff Affinity Info Bot Posted November 26, 2024 Staff Posted November 26, 2024 The issue "Collecting Embedded SVG file crashes app" (REF: AF-2970) has been fixed by the developers in the latest beta build (2.6.0.2900). The fix is planned for inclusion in the next customer release. Customer beta builds are announced here and you can participate by following these instructions. If you still experience this problem once you are using that build version (or later) please reply to this thread including @Affinity Info Bot to notify us. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.