Skip to content

fix issue #5461 (segfault after removing redundant materials) - #5467

Merged
kimkulling merged 12 commits into
assimp:masterfrom
stephengold:stephengold/issue/5641
Apr 9, 2024
Merged

kimkulling merged 12 commits into
assimp:masterfrom
stephengold:stephengold/issue/5641

Conversation

@stephengold

Copy link
Copy Markdown
Contributor

Update mNumMaterials before early return from RemoveRedundantMatsProcess::Execute() .

@stephengold

Copy link
Copy Markdown
Contributor Author

I tested this fix on the "Running.gltf" model from issue #5461 and verified that the command completes successfully: no segfault.
I believe this pull request solves #5461 (without introducing any new issues) and is ready to be integrated.

- Fix 2 possible memleaks.
@kimkulling

Copy link
Copy Markdown
Member

During the review I have detected 2 leaks.

@stephengold

Copy link
Copy Markdown
Contributor Author

@kimkulling Thanks for solving the memory leaks.

@kimkulling

Copy link
Copy Markdown
Member

Hm, tests are failing for g++ on Ubuntu. I cannot reproduce it on windows. I will try to analyze it with Linux.

@stephengold

Copy link
Copy Markdown
Contributor Author

I tried to reproduce the test failure on my Linux desktop and was unsuccessful: all 574 tests passed.
My desktop used GNU 11.4.0, just like the GHA runner.

@stephengold

Copy link
Copy Markdown
Contributor Author

It seems my merge solved the test failure!
I believe this PR is now ready for integration.

@stephengold

Copy link
Copy Markdown
Contributor Author

After another merge from 'master', the tests are failing again.

@stephengold

Copy link
Copy Markdown
Contributor Author

Once again, merging has solved the failing checks. Please integrate this PR.

@stephengold

Copy link
Copy Markdown
Contributor Author

After another merge from 'master', another failing check.
I see no alternative except to wait for another merge opportunity.

@stephengold

Copy link
Copy Markdown
Contributor Author

Once again, merging has solved the failing checks. @kimkulling please integrate this PR.

@kimkulling

Copy link
Copy Markdown
Member

Updated again, let's hope that the tests are green.

@kimkulling
kimkulling merged commit 08c1adc into assimp:master Apr 9, 2024
@kimkulling

Copy link
Copy Markdown
Member

Merged, thanks a lot for your contribution.

@stephengold
stephengold deleted the stephengold/issue/5641 branch April 9, 2024 23:53
kimkulling added a commit that referenced this pull request Jul 1, 2026
* fix issue #5641 (segfault after removing redundant materials)

* Update RemoveRedundantMaterials.cpp

- Fix 2 possible memleaks.

---------

Co-authored-by: Kim Kulling <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants