Comments (6)
I did a bisect, with the following result:
1219763c443b91b7b18be79335a24894312c54ef is the first bad commit
commit 1219763c443b91b7b18be79335a24894312c54ef
Author: Bartek Bok <[email protected]>
Date: Thu Jul 26 21:48:25 2012 +0200
Load callbacks
from libhsplasma.
The problem is as follows: Scene objects add callbacks to themselves to all their modifiers. However, when the modifier is removed from the scene object or the scene object is deleted, the callbacks stay - and later, they are called even though the scene object has already been deleted. The call is happening in plKeyData::setObj.
I wrote a temporary patch to fix the problem so that I can continue using my scripts, you can find it at diafero@1d890aa. It's probably not a proper fix though...
from libhsplasma.
The key leaks are the immediate issue here, and those have been fixed by 5c93fdd... However, the other half of this is that the std::bind parameter references an object which can potentially be deleted before the callback is called. I feel it's slightly less important, but it should be fixed at some point (e.g. by assigning owners to callbacks).
from libhsplasma.
The key leaks are the immediate issue here, and those have been fixed
by 5c93fdd... However, the other half of this is that the
std::bind parameter references an object which can potentially be
deleted before the callback is called. I feel it's slightly less
important, but it should be fixed at some point (e.g. by assigning
owners to callbacks).
Well, I tend to disagree (crashes seem more serious to me than memory
leaks), but my immediately problem is fixed ;-)
from libhsplasma.
Well, this fixes both the crash and the memory leak for your case... What I meant was that the case where the code fails (crashes) is now significantly less likely to occur than it was before (you'd actually have to try to do it) -- and we may have fixed other unseen bugs as well in the process.
from libhsplasma.
This bug is no longer present.
from libhsplasma.
Related Issues (20)
- SceneObject modifier list race conditions HOT 2
- PyHSPlasma should accept `os.PathLike`
- Visual C++2013 build broken. HOT 3
- Python CMakeLists incorrectly determines PYTHON_LIB_DIR
- PyHSPlasma Type Stubs
- Fails to build on Debian testing
- -nan(ind) is converted to a number HOT 2
- Lighting Regression HOT 1
- Vertex colors are zeroed in Cluster groups
- Shared Mesh issue HOT 3
- drawable span permalights wont save correctly
- Files not saving correctly with Use Win32 API commit
- MQO prps fail to open correctly HOT 15
- CMake visibility changes break PyHSPlasma on Python < 3.9
- Particle Pitch and Yaw zero out when modified
- SSE compile flags unconditionally added HOT 1
- More Object ID complaints: PRC round-tripping
- instant crash when editing large drawable span
- Uru:CC PRP files change when beaing read and written back HOT 5
- Port to string_theory regressed opening some prp files HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libhsplasma.