LoadDocument fails for documents with materials
-
On 23/09/2016 at 05:40, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 18.020
Platform: Windows ;
Language(s) : C++ ;---------
I'm using Prime R18.020 and Melange 16.012, but if I try to LoadDocument() a super basic file with a cube and a material it fails with the following callstack:Capture.exe!melange::_GeDebugBreak(int,char const * ) Unknown
Capture.exe!melange::HyperFile::SetError(enum melange::FILEERROR) Unknown
Capture.exe!melange::BaseMaterial::HandleSubChunk(class melange::HyperFile *,int,int) Unknown
Capture.exe!melange::Material::HandleSubChunk(class melange::HyperFile *,int,int) Unknown
Capture.exe!melange::PrivateChunk::ReadChunk(class melange::HyperFile *,bool,bool) Unknown
Capture.exe!melange::RootMaterial::HandleSubChunk(class melange::HyperFile *,int,int) Unknown
Capture.exe!melange::PrivateChunk::ReadChunk(class melange::HyperFile *,bool,bool) Unknown
Capture.exe!melange::RootList2D::HandleSubChunk(class melange::HyperFile *,int,int) Unknown
Capture.exe!melange::RootMaterial::HandleSubChunk(class melange::HyperFile *,int,int) Unknown
Capture.exe!melange::PrivateChunk::ReadChunk(class melange::HyperFile *,bool,bool) Unknown
Capture.exe!melange::BaseDocument::HandleSubChunk(class melange::HyperFile *,int,int) Unknown
Capture.exe!melange::PrivateChunk::ReadChunk(class melange::HyperFile *,bool,bool) Unknown
Capture.exe!melange::PrivateChunk::ReadObject(class melange::HyperFile *,bool) Unknown
Capture.exe!melange::LoadDocument(class melange::Filename const &,enum melange::SCENEFILTER) Unknown
> Capture.exe!Interoperability::Cinema4D::Cinema4DImporterImpl::LoadProject() Line 67 C++I can't attach the c4d file here, but I have literally just added a cube, created a material and applied that and then used Save Project for Melange.
Is there any way to access any kind of error codes from the failed load? Is there a bug or shortcoming in Melange here or am I doing something wrong?
Regards,
Lars Wernlund -
On 26/09/2016 at 06:08, xxxxxxxx wrote:
Hi Lars,
welcome to the Plugin Café forums
I'm afraid we need more details here. We tried to reproduce this with Prime as well as Studio version of R18 SP1 (18.020) and the latest Melange release (16.012). Unfortunately we have not been able to reproduce the issue. Can you send us the scene (simply per mail to [email protected]) or even post some code so we can see, what you are doing exactly?
-
On 29/09/2016 at 01:38, xxxxxxxx wrote:
Hi,
Thank you for taking a look at it. I decided to build a blank reproduction project to find the problem and discovered that it is connected to the fact that I link libjpeg-turbo rather than libjpeg. I am mailing you a VS 2013 package hoping that you could take a look at whether it's something that could be addressed.
Regards,
Lars Wernlund