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

Bug: crash with libload #607

Closed
youle31 opened this issue Oct 8, 2017 · 1 comment
Closed

Bug: crash with libload #607

youle31 opened this issue Oct 8, 2017 · 1 comment
Labels

Comments

@youle31
Copy link
Collaborator

youle31 commented Oct 8, 2017

test file: https://drive.google.com/file/d/0B3GouQIyoCmrVGZNX21ielZmdDA/view?usp=sharing

steps: press W to go forward, this will load some terrain chunks. Sometimes a bug occurs when libloading a chink in FreeBlendFile. Debug pic: http://pasteall.org/pic/show.php?id=119272

@youle31 youle31 added the bug label Oct 8, 2017
@youle31
Copy link
Collaborator Author

youle31 commented Oct 8, 2017

I don't know if this is correct but put this: http://pasteall.org/602839

before that: http://pasteall.org/602840

prevents the crash on my computer

panzergame added a commit that referenced this issue Oct 8, 2017
When a mesh is deleted it destructs its mesh materials and then
the display array buckets used by the basic mesh. In the free of
the libloaded library (FreeBlendFile) the materials were free before
the meshes, but in the deletion of DAB it unregister the DAB from
the material bucket. This caused an issue as the material remove
also the material bucket and then the DAB used a dangling pointer
to unregister them.

Solution found by youle.
Fix issue: #607.
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

2 participants