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

Fix crash when saving generated files for NXT #1886

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MinyazevR
Copy link
Member

@MinyazevR MinyazevR commented Jan 8, 2025

When trying to save the source file generated for NXT, TRIKStudio crashes with use heap after free.
This solution is a crutch, as you need to give ownership of NxtOsekCMasterGenerator to the NxtOsekCGeneratorPlugin class, but you will have to rewrite RobotsGeneratorPluginBase (which will lead to changes in behavior in others KITs)

@MinyazevR MinyazevR changed the title Fix crash bug when saving source files for nxt Fix crash bug when saving source files for NXT Jan 8, 2025
@MinyazevR MinyazevR force-pushed the MinyazevR-fix-nxt-generation-crash branch from 0f48541 to ea22f09 Compare January 8, 2025 11:41
@iakov iakov changed the title Fix crash bug when saving source files for NXT Fix crash when saving source files for NXT Jan 9, 2025
@iakov iakov changed the title Fix crash when saving source files for NXT Fix crash when saving generated files for NXT Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant