<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Crash in ReadChunk()]]></title><description><![CDATA[<p dir="auto">Hi there,</p>
<p dir="auto">Using cineware SDK v22.008 (VS2013 libs), I'm getting a crash when trying to process the file attached. The crash stack is:</p>
<pre><code> 	FwdFX_d.fx!cineware::PrivateChunk::ReadChunk(class cineware::HyperFile *,bool,bool)	Unknown
 	FwdFX_d.fx!cineware::PrivateChunk::ReadObject(class cineware::HyperFile *,bool)	Unknown
 	FwdFX_d.fx!cineware::MoGraphFractureVoronoiObject::Read(class cineware::HyperFile *,int,int)	Unknown
 	FwdFX_d.fx!cineware::BaseObject::HandleSubChunk(class cineware::HyperFile *,int,int)	Unknown
 	FwdFX_d.fx!cineware::PrivateChunk::ReadChunk(class cineware::HyperFile *,bool,bool)	Unknown
 	FwdFX_d.fx!cineware::RootObject::HandleSubChunk(class cineware::HyperFile *,int,int)	Unknown
 	FwdFX_d.fx!cineware::PrivateChunk::ReadChunk(class cineware::HyperFile *,bool,bool)	Unknown
 	FwdFX_d.fx!cineware::PrivateChunk::ReadObject(class cineware::HyperFile *,bool)	Unknown
 	FwdFX_d.fx!cineware::BaseObject::HandleSubChunk(class cineware::HyperFile *,int,int)	Unknown
 	FwdFX_d.fx!cineware::PrivateChunk::ReadChunk(class cineware::HyperFile *,bool,bool)	Unknown
 	FwdFX_d.fx!cineware::RootObject::HandleSubChunk(class cineware::HyperFile *,int,int)	Unknown
 	FwdFX_d.fx!cineware::PrivateChunk::ReadChunk(class cineware::HyperFile *,bool,bool)	Unknown
 	FwdFX_d.fx!cineware::RootList2D::HandleSubChunk(class cineware::HyperFile *,int,int)	Unknown
 	FwdFX_d.fx!cineware::RootObject::HandleSubChunk(class cineware::HyperFile *,int,int)	Unknown
 	FwdFX_d.fx!cineware::PrivateChunk::ReadChunk(class cineware::HyperFile *,bool,bool)	Unknown
 	FwdFX_d.fx!cineware::BaseDocument::HandleSubChunk(class cineware::HyperFile *,int,int)	Unknown
 	FwdFX_d.fx!cineware::PrivateChunk::ReadChunk(class cineware::HyperFile *,bool,bool)	Unknown
 	FwdFX_d.fx!cineware::PrivateChunk::ReadObject(class cineware::HyperFile *,bool)	Unknown
</code></pre>
<p dir="auto">and the log contains:</p>
<pre><code>First-chance exception at 0x000000001F5BDA64 (FwdFX_d.fx) in FX_d.exe: 0xC0000005: Access violation reading location 0xFFFFFFFFFFFFFFFF.
</code></pre>
<p dir="auto">Any clues as to what is going wrong here and how I can fix it?</p>
<p dir="auto">The file is here: <a href="/forum/assets/uploads/files/1708958005175-model-loop-7.c4d">model loop 7.c4d</a></p>
<p dir="auto">Regards,<br />
Tom</p>
]]></description><link>http://developers.maxon.net/forum//topic/15402/crash-in-readchunk</link><generator>RSS for Node</generator><lastBuildDate>Tue, 17 Mar 2026 06:45:54 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum//topic/15402.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 26 Feb 2024 14:35:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Crash in ReadChunk() on Fri, 01 Mar 2024 14:52:48 GMT]]></title><description><![CDATA[<p dir="auto">Hi Jens,</p>
<p dir="auto">That fix works for us. This is excellent. Thank you very much.</p>
<p dir="auto">Regards,<br />
Tom</p>
]]></description><link>http://developers.maxon.net/forum//post/73897</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/73897</guid><dc:creator><![CDATA[thomasmfields]]></dc:creator><pubDate>Fri, 01 Mar 2024 14:52:48 GMT</pubDate></item><item><title><![CDATA[Reply to Crash in ReadChunk() on Fri, 01 Mar 2024 10:33:42 GMT]]></title><description><![CDATA[<p dir="auto">Hi Tom,</p>
<p dir="auto">I could confirm the issue!</p>
<p dir="auto">You can fix this in "c4d_fracturevoronoidata.h" line 52 like this:</p>
<p dir="auto">RootObject*		_head = nullptr;</p>
<p dir="auto">Please let me know if this works for you.<br />
Cheers<br />
Jens</p>
]]></description><link>http://developers.maxon.net/forum//post/73894</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/73894</guid><dc:creator><![CDATA[j_uhlig]]></dc:creator><pubDate>Fri, 01 Mar 2024 10:33:42 GMT</pubDate></item><item><title><![CDATA[Reply to Crash in ReadChunk() on Thu, 29 Feb 2024 23:07:17 GMT]]></title><description><![CDATA[<p dir="auto">Hi Jens,</p>
<p dir="auto">I get the same error stack when I do the following:</p>
<p dir="auto">cineware::Filename myFile("model loop 7.c4d");<br />
cineware::BaseDocument *baseDoc = LoadDocument(myFile, cineware::SCENEFILTER::SCENEFILTER_OBJECTS | cineware::SCENEFILTER::SCENEFILTER_MATERIALS);</p>
<p dir="auto">I load the file into memory using my own file stream API, which is used successfully elsewhere and with other c4d files. I'm using ReadFile() and GetFileSizeEx()</p>
<p dir="auto">Regards,<br />
Tom</p>
]]></description><link>http://developers.maxon.net/forum//post/73882</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/73882</guid><dc:creator><![CDATA[thomasmfields]]></dc:creator><pubDate>Thu, 29 Feb 2024 23:07:17 GMT</pubDate></item><item><title><![CDATA[Reply to Crash in ReadChunk() on Thu, 29 Feb 2024 09:19:18 GMT]]></title><description><![CDATA[<p dir="auto">Hi Tom,</p>
<p dir="auto">can you please try the following:</p>
<ul>
<li>does it work if you load the same data from disk</li>
<li>can you try with LoadDocument(fn, SCENEFILTER::SCENEFILTER_OBJECTS | SCENEFILTER::SCENEFILTER_MATERIALS)<br />
And how did you load the file into memory?</li>
</ul>
<p dir="auto">Cheers<br />
Jens</p>
]]></description><link>http://developers.maxon.net/forum//post/73862</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/73862</guid><dc:creator><![CDATA[j_uhlig]]></dc:creator><pubDate>Thu, 29 Feb 2024 09:19:18 GMT</pubDate></item><item><title><![CDATA[Reply to Crash in ReadChunk() on Tue, 27 Feb 2024 14:17:36 GMT]]></title><description><![CDATA[<p dir="auto">Hi Jana,</p>
<p dir="auto">I'd like it not to crash, please. My code looks like this:</p>
<pre><code class="language-cpp">fn.SetMemoryReadMode(data, size); // The contents of the file are in "data".
cineware::AlienBaseDocument *c4dDoc = NewObj(cineware::AlienBaseDocument);
cineware::HyperFile *c4dFile = NewObj(cineware::HyperFile);
if (c4dDoc &amp;&amp; c4dFile)
{
	if (c4dFile-&gt;Open(DOC_IDENT, fn, cineware::FILEOPEN_READ))
	{
		if (c4dDoc-&gt;ReadObject(c4dFile, true))
		{
		}
	}
}
</code></pre>
<p dir="auto">Are you able to reproduce the issue?</p>
<p dir="auto">Regards,<br />
Tom</p>
]]></description><link>http://developers.maxon.net/forum//post/73854</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/73854</guid><dc:creator><![CDATA[thomasmfields]]></dc:creator><pubDate>Tue, 27 Feb 2024 14:17:36 GMT</pubDate></item><item><title><![CDATA[Reply to Crash in ReadChunk() on Tue, 27 Feb 2024 08:39:00 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/thomasmfields">@<bdi>thomasmfields</bdi></a>,</p>
<p dir="auto">Welcome to the Maxon developers forum and its community, it is great to have you with us!</p>
<h4>Getting Started</h4>
<p dir="auto">Before creating your next postings, we would recommend making yourself accustomed with our forum and support procedures. You did not do anything wrong, we point all new users to these rules.</p>
<ul>
<li><a href="topic/15242/">Forum Overview</a>: Provides a broad overview of the fundamental structure and rules of this forum, such as the purpose of the different sub-forums or the fact that we will ban users who engage in hate speech or harassment.</li>
<li><a href="/topic/15244/" target="_blank" rel="noopener noreferrer nofollow ugc">Support Procedures</a>: Provides a more in detail overview of how we provide technical support for APIs here. This topic will tell you how to ask good questions and limits of our technical support.</li>
<li><a href="/topic/15243/" target="_blank" rel="noopener noreferrer nofollow ugc">Forum Features</a>: Provides an overview of the technical features of this forum, such as Markdown markup or file uploads.</li>
</ul>
<p dir="auto">It is <strong>strongly</strong> recommended to read the first two topics carefully, especially the section <a href="/topic/15244/" target="_blank" rel="noopener noreferrer nofollow ugc">Support Procedures: Asking Questions</a>.</p>
<h4>About your First Question</h4>
<p dir="auto">Thanks a lot for reaching out. To support you, please provide a code snippet that we can reproduce the issue.<br />
What do you want to achieve?</p>
<p dir="auto">Thanks and Cheers<br />
Jana</p>
]]></description><link>http://developers.maxon.net/forum//post/73853</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/73853</guid><dc:creator><![CDATA[jana]]></dc:creator><pubDate>Tue, 27 Feb 2024 08:39:00 GMT</pubDate></item></channel></rss>