Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MacOS] Crash when change embossed text size #9538

Closed
dupoxy opened this issue Feb 2, 2023 · 29 comments
Closed

[MacOS] Crash when change embossed text size #9538

dupoxy opened this issue Feb 2, 2023 · 29 comments
Labels

Comments

@dupoxy
Copy link

dupoxy commented Feb 2, 2023

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
0001-0556.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
@kubispe1 kubispe1 added the Emboss label Feb 2, 2023
@Jony01
Copy link
Collaborator

Jony01 commented Feb 3, 2023

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

@dupoxy
Copy link
Author

dupoxy commented Feb 3, 2023

@Jony01 Yes crash only with height.

  • change also depth
  1. depth works
0001-0507.mp4
  • first change font and than change height
  1. I can change the font it as no effect on this issue.
0001-0280.mp4

@dupoxy
Copy link
Author

dupoxy commented Feb 4, 2023

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

@Jony01 Jony01 changed the title crash when changing text size of emboss [MacOs] Crash when change embossed text size Feb 7, 2023
@Jony01 Jony01 changed the title [MacOs] Crash when change embossed text size [MacOS] Crash when change embossed text size Feb 7, 2023
@Jony01

This comment was marked as outdated.

@dupoxy
Copy link
Author

dupoxy commented Feb 8, 2023

@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

@Jony01
Copy link
Collaborator

Jony01 commented Feb 9, 2023

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

@Jony01
Copy link
Collaborator

Jony01 commented Feb 9, 2023

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.

@dupoxy
Copy link
Author

dupoxy commented Feb 9, 2023

video:

0001-0516.mp4

log:
log-wx_test build.txt

@Jony01
Copy link
Collaborator

Jony01 commented Feb 14, 2023

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

@dupoxy
Copy link
Author

dupoxy commented Feb 14, 2023

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

@Jony01
Copy link
Collaborator

Jony01 commented Feb 14, 2023

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

@dupoxy
Copy link
Author

dupoxy commented Feb 14, 2023

@npike
Copy link

npike commented Feb 18, 2023

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

@Jony01
Copy link
Collaborator

Jony01 commented Feb 21, 2023

@dupoxy thanks for capturing the video.
Guys (@dupoxy, @npike or @rainell from #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

@ghost
Copy link

ghost commented Feb 21, 2023

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

@dupoxy
Copy link
Author

dupoxy commented Feb 22, 2023

video:

1882-2359.mp4

log:

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

@Jony01 Thanks for all your work.

@Jony01
Copy link
Collaborator

Jony01 commented Feb 23, 2023

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

@dupoxy
Copy link
Author

dupoxy commented Feb 23, 2023

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

@Jony01
Copy link
Collaborator

Jony01 commented Feb 24, 2023

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

@dupoxy
Copy link
Author

dupoxy commented Feb 25, 2023

Sorry to say, the issue is still there.

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

@ghost
Copy link

ghost commented Feb 25, 2023

The problem persists.

@Jony01
Copy link
Collaborator

Jony01 commented Feb 28, 2023

@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.

@dupoxy
Copy link
Author

dupoxy commented Feb 28, 2023

@Jony01
Copy link
Collaborator

Jony01 commented Mar 2, 2023

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

@dupoxy
Copy link
Author

dupoxy commented Mar 2, 2023

@ghost
Copy link

ghost commented Mar 2, 2023

It worked correctly

@npike
Copy link

npike commented Mar 2, 2023

It worked! Thank you

@dupoxy dupoxy closed this as completed Mar 2, 2023
@dupoxy dupoxy reopened this Mar 2, 2023
@dupoxy
Copy link
Author

dupoxy commented Mar 2, 2023

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

@Jony01
Copy link
Collaborator

Jony01 commented Apr 4, 2023

Fixed in version_2.6.0-alpha6

@Jony01 Jony01 closed this as completed Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants