<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://pybullet.org/Bullet/phpBB3/app.php/feed/topic/13383" />

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2022-02-28T11:48:00+00:00</updated>

	<author><name><![CDATA[Real-Time Physics Simulation Forum]]></name></author>
	<id>https://pybullet.org/Bullet/phpBB3/app.php/feed/topic/13383</id>

		<entry>
		<author><name><![CDATA[douya_5200]]></name></author>
		<updated>2022-02-28T11:40:43+00:00</updated>

		<published>2022-02-28T11:40:43+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=43906#p43906</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=43906#p43906"/>
		<title type="html"><![CDATA[Re: Rigidbody in manifold became dangling pointer.]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=43906#p43906"><![CDATA[
Hey , everyone:<br><br>I've figured out how to solve this problem and I think it's indeed a bug of Bullet.<br><br>It's caused by btCollisionDispatcherMt::releaseManifold() being called when the m_batchUpdating boolean is true. (when collision algorithm used by contactTest deconstructs, it calls dispatcher-&gt;releaseManifold() )<br><br>This will cause the manifold not being properly released, then it's reused for manifold pool allocation and results in corrupted data.<br><br>The solution would be to store the manifold into a container in releaseManifold() when batch updating, then remove it after the batchUpdating finished  in the next dispatchCollisionPairs() function.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=14215">douya_5200</a> — Mon Feb 28, 2022 11:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[douya_5200]]></name></author>
		<updated>2022-02-28T07:35:37+00:00</updated>

		<published>2022-02-28T07:35:37+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=43903#p43903</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=43903#p43903"/>
		<title type="html"><![CDATA[Re: Rigidbody in manifold became dangling pointer.]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=43903#p43903"><![CDATA[
I have identified the problem:<br>Calling singleTimeCallback ContactTest of the collisionworld would cause this problem.<br>I'm still trying to find what exactly went wrong.  :C<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=14215">douya_5200</a> — Mon Feb 28, 2022 7:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[douya_5200]]></name></author>
		<updated>2022-02-28T11:48:00+00:00</updated>

		<published>2022-02-21T07:44:57+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=43877#p43877</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=43877#p43877"/>
		<title type="html"><![CDATA[[SOLVED] Rigidbody in manifold became dangling pointer.]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=43877#p43877"><![CDATA[
When I applied the multi-threaded version of bullet. I get crashes in addManifoldsToIslands() funciton.<br>where the m_body0 or m_body1 in the manifold within the loop sometimes are dangling pointer,<br> causing unexpected data and crashes. <br>It happens almost every time. <br> I used to check for wrong data and ignored it but then it brought other unexpected problems. <br><br>The assert hit is the btAssert(id &lt; m_lookupIslandFromId.size()); where the id is the islandTag of the corrupted rigidbody.<br><br>Anyone has any ideas? Thanks!<br><br><br>Edit:  When I used to ignore this problem and just check for null island, it causes other unexpected strange problems (solved stability problem but the efficiency seemed problematic) which just do not appear right for me. I want to get to the root of this problem which leads me to this question. <img class="smilies" src="https://pybullet.org/Bullet/phpBB3/images/smilies/icon_neutral.gif" width="15" height="15" alt=":|" title="Neutral"><dl class="file"><dt class="attach-image"><img src="https://pybullet.org/Bullet/phpBB3/download/file.php?id=1924" class="postimage" alt="12.png" onclick="viewableArea(this);" /></dt></dl><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=14215">douya_5200</a> — Mon Feb 21, 2022 7:44 am</p><hr />
]]></content>
	</entry>
	</feed>
