PrusaSlicer
PrusaSlicer copied to clipboard
[MacOS] Crash when change embossed text size
Description of the bug
crash when changing text size of emboss
Project file & How to reproduce
- add shape > text
- change font height crash
https://user-images.githubusercontent.com/1143957/216410719-2385659d-fb10-4558-8b80-b5d3ee619003.mp4
Apple crash repport
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
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
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 Yes crash only with height.
- [x] change also depth
- depth works
https://user-images.githubusercontent.com/1143957/216651586-a9855a44-ab75-4273-821b-ec647ecf07c6.mp4
- [x] first change font and than change height
- 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
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
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 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
Thanks for test it. With respect to the crash log. I will try to create minimal viable example for wxWidget guys.
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.
video:
https://user-images.githubusercontent.com/1143957/217858131-fea9bcbd-00d7-4dcf-b4ca-c3173ba2ce89.mp4
@dupoxy could you please send me your PrusaSlicer.ini
file.
Folder with current ini file:
@Jony01 the new PrusaSlicer.ini
PrusaSlicer.ini.txt
@dupoxy : Could you delete PrusaSlicer.ini
and start this ~~build~~. Please, capture and post video.
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
I can also reproduce on a 2012 Mac Mini running 10.15.7 if the logs would be helpful. Crashes on ALPHA4 also.
@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:
please hit the button [wxWidget-test] at the beginning of Emboss window
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
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.
Hi @dupoxy, Could you re-upload asan logs. It seems that link to logs aim to this issue page.
@Jony01 I edited the previous comment, not sure what happened .
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~
The problem persists.
@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.
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 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
It worked correctly
It worked! Thank you
This can be closed when the fix is publicly available. THANKS
Fixed in version_2.6.0-alpha6