PrusaSlicer icon indicating copy to clipboard operation
PrusaSlicer copied to clipboard

[MacOS] Crash when change embossed text size

Open dupoxy opened this issue 2 years ago • 12 comments

Description of the bug

crash when changing text size of emboss

Project file & How to reproduce

  1. add shape > text
  2. change font height crash

https://user-images.githubusercontent.com/1143957/216410719-2385659d-fb10-4558-8b80-b5d3ee619003.mp4

Apple crash repport

crash.txt

Checklist of files included above

no need for a file or screenshot please see video and reproduce steps

Version of PrusaSlicer

PrusaSlicer-2.6.0-alpha2+MacOS-x64-202301311728 PrusaSlicer-2.6.0-alpha3+MacOS-x64-202302031521

Operating system

Operating system: macOS-10.15.7-x86_64-i386-64bit 64 Bits Graphics card: NVIDIA GeForce GTX 680MX OpenGL Engine NVIDIA Corporation 4.1 NVIDIA-14.0.32 355.11.11.10.10.143

Printer model

no need for this

PrusaSlicerconfig

PrusaSlicerconfig.ini.txt

Terminal output:

[2023-02-04 10:16:29.295431] [0x000000011b7e5dc0] [trace]   Initializing StaticPrintConfigs
[2023-02-04 10:16:30.505719] [0x000000011b7e5dc0] [error]   3dx drivers module loading error: dlopen(/Library/Frameworks/3DconnexionClient.framework/3DconnexionClient, 5): image not found
[2023-02-04 10:16:47.924907] [0x000000011b7e5dc0] [error]   Can not process font('Helvetica'), file in path('/System/Library/Fonts/Helvetica.ttc#postscript-name=Helvetica') is not valid TTF.
2023-02-04 10:16:47.987 PrusaSlicer[92071:8765176] -[NSCTFontDescriptor length]: unrecognized selector sent to instance 0x7fb6dc059900

dupoxy avatar Feb 02 '23 18:02 dupoxy

Thanks for video. It is mystery for me. Is crash happens only with height? Could you please try to:

  • [ ] change also depth
  • [ ] first change font and than change height

Jony01 avatar Feb 03 '23 06:02 Jony01

@Jony01 Yes crash only with height.

  • [x] change also depth
  1. depth works

https://user-images.githubusercontent.com/1143957/216651586-a9855a44-ab75-4273-821b-ec647ecf07c6.mp4

  • [x] first change font and than change height
  1. I can change the font it as no effect on this issue.

https://user-images.githubusercontent.com/1143957/216652351-90dc42ab-741e-4fc7-ac69-8126bc63b70c.mp4

dupoxy avatar Feb 03 '23 15:02 dupoxy

update tested with PrusaSlicer-2.6.0-alpha3 added Terminal output:

[2023-02-04 10:16:29.295431] [0x000000011b7e5dc0] [trace]   Initializing StaticPrintConfigs
[2023-02-04 10:16:30.505719] [0x000000011b7e5dc0] [error]   3dx drivers module loading error: dlopen(/Library/Frameworks/3DconnexionClient.framework/3DconnexionClient, 5): image not found
[2023-02-04 10:16:47.924907] [0x000000011b7e5dc0] [error]   Can not process font('Helvetica'), file in path('/System/Library/Fonts/Helvetica.ttc#postscript-name=Helvetica') is not valid TTF.
2023-02-04 10:16:47.987 PrusaSlicer[92071:8765176] -[NSCTFontDescriptor length]: unrecognized selector sent to instance 0x7fb6dc059900

dupoxy avatar Feb 04 '23 09:02 dupoxy

I can't reproduce it on our MacOS. I tried to fix it blindly by hint from crash-log. Could you please try this: MacOS build

Jony01 avatar Feb 08 '23 09:02 Jony01

@Jony01 Sorry to say the provided build did not resolve this issue. new log-PrusaSlicer-2.6.0-alpha3+35-fs-emboss-temp-MacOS-universal-g040f72187-202302080803.txt

dupoxy avatar Feb 08 '23 15:02 dupoxy

Thanks for test it. With respect to the crash log. I will try to create minimal viable example for wxWidget guys.

Jony01 avatar Feb 09 '23 08:02 Jony01

Could you capture video of ~~wx_test build~~ I add button to test minimal viable example inside emboss window.

Don't be scared I add multiple debug message box to be sure why it is happend.

Jony01 avatar Feb 09 '23 11:02 Jony01

video:

https://user-images.githubusercontent.com/1143957/217858131-fea9bcbd-00d7-4dcf-b4ca-c3173ba2ce89.mp4

log: log-wx_test build.txt

dupoxy avatar Feb 09 '23 15:02 dupoxy

@dupoxy could you please send me your PrusaSlicer.ini file. Folder with current ini file: image

Jony01 avatar Feb 14 '23 18:02 Jony01

@Jony01 the new PrusaSlicer.ini PrusaSlicer.ini.txt

dupoxy avatar Feb 14 '23 18:02 dupoxy

@dupoxy : Could you delete PrusaSlicer.ini and start this ~~build~~. Please, capture and post video.

Jony01 avatar Feb 14 '23 19:02 Jony01

video:

https://user-images.githubusercontent.com/1143957/218853389-1c5c81e9-93f5-493c-91e2-1900b389da1d.mp4

log: log-PrusaSlicer-2.6.0-alpha3+39-fs-emboss-wx-test-MacOS-x64-g9f0b98ffc-202302141847.txt

video2:

https://user-images.githubusercontent.com/1143957/218857346-8328a143-eff9-42ef-989f-aab1d0c14cab.mp4

log2: log2-PrusaSlicer-2.6.0-alpha3+39-fs-emboss-wx-test-MacOS-x64-g9f0b98ffc-202302141847.txt

dupoxy avatar Feb 14 '23 20:02 dupoxy

I can also reproduce on a 2012 Mac Mini running 10.15.7 if the logs would be helpful. Crashes on ALPHA4 also.

npike avatar Feb 18 '23 21:02 npike

@dupoxy thanks for capturing the video. Guys (@dupoxy, @npike or @rainell from https://github.com/prusa3d/PrusaSlicer/issues/9574 ), I prepare AddressSanitizer build to detects memory corruption bugs inside application, please download:

~~PrusaSlicer-2.6.0-alpha4+52-fs-emboss-wx-test-MacOS-universal-asan~~

Start application from terminal with parameter: --loglevel=5 I would like to see application logs.

You should see: image

please hit the button [wxWidget-test] at the beginning of Emboss window

Jony01 avatar Feb 21 '23 08:02 Jony01

In file number 1 are the logs generated following your instructions; and, in addition, in file number 2 are the logs generated when crash. Interesting the message: "Can not process font('Helvetica'), file in path('/System/Library/Fonts/Helvetica.ttc#postscript-name=Helvetica') is not valid TTF." application.logs.zip

ghost avatar Feb 21 '23 17:02 ghost

video:

https://user-images.githubusercontent.com/1143957/220703441-2d5c81ce-7197-4309-89b7-647bd3462281.mp4

log:

PrusaSlicer-2.6.0-alpha4+52-fs-emboss-wx-test-MacOS-universal-asan-log.txt

@Jony01 Thanks for all your work.

dupoxy avatar Feb 22 '23 17:02 dupoxy

Hi @dupoxy, Could you re-upload asan logs. It seems that link to logs aim to this issue page.

Jony01 avatar Feb 23 '23 07:02 Jony01

@Jony01 I edited the previous comment, not sure what happened .

dupoxy avatar Feb 23 '23 15:02 dupoxy

I hope, I saw enough in captured video to be able fix it. Could @dupoxy confirm that this build solve the crash: ~PrusaSlicer-2.6.0-alpha4+61-fs-emboss-MacOS-universal-g142a21d00-202302231549.dmg~

Jony01 avatar Feb 24 '23 08:02 Jony01

Sorry to say, the issue is still there.

PrusaSlicer:2.6.0-alpha4+61-fs-emboss-MacOS-x64-log.txt

dupoxy avatar Feb 25 '23 08:02 dupoxy

The problem persists.

ghost avatar Feb 25 '23 21:02 ghost

@dupoxy It is sad .. (again at beginning). So, lets try ASAN build with additional application logs: ~PrusaSlicer-2.6.0-alpha4+90-fs-emboss-MacOS-universal-asan-g6b2c83446-202302281134.dmg~ Start application from terminal with parameter: --loglevel=5 and please send me logs.

Jony01 avatar Feb 28 '23 12:02 Jony01

Thanks @dupoxy for logs. I prepare next build again please start with parameter --loglevel=5 I hope that I fix it, PrusaSlicer-2.6.0-alpha4+98-fs-emboss-MacOS-universal-asan-ge428dcc57-202303020702.dmg

Jony01 avatar Mar 02 '23 09:03 Jony01

@Jony01 you did it 🥳 🎉 . It's working for me. @npike or @rainell should test to confirm:

PrusaSlicer-2.6.0-alpha4+98-fs-emboss-MacOS-universal-asan-ge428dcc57-202303020702.dmg

log: PrusaSlicer:2.6.0-alpha4+98-fs-emboss-MacOS-x64-asan-log.txt

dupoxy avatar Mar 02 '23 15:03 dupoxy

It worked correctly

ghost avatar Mar 02 '23 15:03 ghost

It worked! Thank you

npike avatar Mar 02 '23 16:03 npike

This can be closed when the fix is ​​publicly available. THANKS

dupoxy avatar Mar 02 '23 18:03 dupoxy

Fixed in version_2.6.0-alpha6

Jony01 avatar Apr 04 '23 08:04 Jony01