Jump to content
You must now use your email address to sign in [click for more info] ×

Measurement tool: setting scale always causes crash, possible reason: unit conversion


4dimage

Recommended Posts

Hi,

this bug happens constantly with the following file and new blank documents.

IMG_5523.afdesign

 

1) I open a JPG in Designer -> save as .afdesign

 

2) Use measurement tool and measure a distance A/B in pixels

1814099416_Screenshot2022-11-25221123.png.5a201a1cfb0fbdff850aab5f61b2df17.png

 

3) Open "set scale" dialog -> enter "4.5m" and click "Anwenden"

564559636_Screenshot2022-11-25221233.png.92e51c8503283ec963c51f903c6609d0.png

 

The dialog closes -> the widget now shows the computed distance in Meters -> Designer freezes

1331792700_Screenshot2022-11-25221239.png.5fa391b7fb83cd5b2f94acbdf11a03f0.png

The app does not recover. If i try to close the app via taskbar -> "Fenster schließen"

278872452_Screenshot2022-11-25222239.png.7653d24dff413494cc56392cb74e1045.png

i get the Save dialog but can't click any of the three buttons. The dialog is also freezed - can't click or move it.

273059200_Screenshot2022-11-25221643.png.886c2cbe9e923780f1b2e36b7227a79f.png

 

Have to force shutdown via the taskmanager:

2025392817_Screenshot2022-11-25221243.png.09826347fdfb0bc44e49f0fb066d2eb4.png

 

This error happens in 100% of all tests. Regardless of hardware acceleration on or off.

 

EDIT

I found this weird context

1) If i try this workflow with a fresh blank DIN A4 document (file -> new -> preset print, DIN A4 document unit Millimeter) there is no crash. Can use the tool after setting the scale to "4.5m" and continue work. Tool now shows distances in calculated scale and Meters.

Document and Scale units are both metric

blank-test-a4-print.afdesign

1362838694_Screenshot2022-11-25224242.png.00e192f08d2704880e68289cb4e5937d.png

 

2) Now in the existing document I change the document unit settings from Millimeter to Pixel

669884550_Screenshot2022-11-25224833.png.b0a38b416dbc3d2eb0b73b144382efff.png1055380643_Screenshot2022-11-25224857.png.6de0132bce72c22a7dc5a86e98ac0c7e.png

 

After that i do the above workflow again: measurement tool, measure A/B, set scale -> OK -> Designer freezes

1661541916_Screenshot2022-11-25225037.png.b0e45103088220fd42fdb59aa8a66f71.png434887267_Screenshot2022-11-25225131.png.78fba1f10168c566446c8ce9becc38f3.png

 

Have to force shutdown Designer via windows task manager.

 

3) The same crash appears even without changing the document units to pixel.

It's enough to set the the scale units to Pixel when the document units differ (Millimeters):

611408582_Screenshot2022-11-25230232.png.2041c194e6755855eac90e21604981d3.png1880011195_Screenshot2022-11-25230258.png.e692923963ae2f6debd763d5c5ca1d55.png2127405315_Screenshot2022-11-25230336.png.d43934820b37b9d1d0b746a3d5385528.png

 

Conclusion: the whole scale units conversion (Pixel to Meters or vice versa) breaks the app.

 

 

 

Hardware: Windows 11 Pro (23H2, build 22631.3296, Windows Feature Experience Pack 1000.22687.1000.0), Intel(R) Core(TM) i9-14900K @3.20 GHz, 64 GB RAM, NVIDIA RTX A4000 (16GB VRAM, driver 551.61), 1TB + 2TB SSD. 1 Display set to native 2560 x 1440.
Software: Affinity v1 - Designer/Publisher/Photo (1.10.6.1665), Affinity v2 (universal license) - Designer/Publisher/Photo, v2 betas.

Link to comment
Share on other sites

And - just for fun - drive this to the limit to freeze the app: any rounding that produces division by zero ?

image.png.e214f6e8226546630b77c97c841618e4.png

image.png.e3b72feb4a1aa78b4b173ab937b14f35.png

 

 

Hardware: Windows 11 Pro (23H2, build 22631.3296, Windows Feature Experience Pack 1000.22687.1000.0), Intel(R) Core(TM) i9-14900K @3.20 GHz, 64 GB RAM, NVIDIA RTX A4000 (16GB VRAM, driver 551.61), 1TB + 2TB SSD. 1 Display set to native 2560 x 1440.
Software: Affinity v1 - Designer/Publisher/Photo (1.10.6.1665), Affinity v2 (universal license) - Designer/Publisher/Photo, v2 betas.

Link to comment
Share on other sites

  • 2 weeks later...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.