Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [bug] 2.017 CloneObject() and .dae files

Author
Message
Blendman
10
Years of Service
User Offline
Joined: 17th Feb 2014
Location: Arkeos
Posted: 25th Feb 2016 08:23
Hi

I don't know if it's a bug, but when I try to use cloneObject() with a .dae, sometimes the game crash, sometimes i have the message :


The line 45 is :


The error depend on my dae file ^^. If I use complexe mesh (character for example), it crash, not if I use a simple export mesh (cube or plane).


Code example :


If I use InstanceObject(), I haven't the crash.


@Paul : if needed, I can send to you my dae file that are causing the crash.
AGK2 tier1 - http://www.dracaena-studio.com
Preben
AGK Studio Developer
20
Years of Service
User Offline
Joined: 30th Jun 2004
Location:
Posted: 25th Feb 2016 12:53
I get the same crash on a .x character when using cloneobject. ( MAC ).
---
Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x000000007664f000
Exception Note: EXC_CORPSE_NOTIFY

VM Regions Near 0x7664f000:
MALLOC_LARGE 0000000031fe8000-000000007664f000 [ 1.1G] rw-/rwx SM=PRV
-->
MALLOC_TINY 0000000078e00000-0000000079000000 [ 2048K] rw-/rwx SM=PRV

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 com.thegamecreators.AGKTestAppMacOS 0x002465c2 AGK::cMesh::CreateVBOLists(float*, unsigned int, unsigned int, unsigned int*, unsigned int, int) + 2622
1 com.thegamecreators.AGKTestAppMacOS 0x002454f5 AGK::cMesh:rocessVertexData(int) + 1039
2 com.thegamecreators.AGKTestAppMacOS 0x00244fe8 AGK::cMesh::cMesh(AGK::cObject3D*, AGK::cMesh*, int) + 694
3 com.thegamecreators.AGKTestAppMacOS 0x0041d2b4 AGK::cObject3D::cObject3D(AGK::cObject3D*, int) + 492
4 com.thegamecreators.AGKTestAppMacOS 0x00111ef2 AGK::agk::CloneObject(unsigned int, unsigned int) + 220
5 com.thegamecreators.AGKTestAppMacOS 0x00111dc1 AGK::agk::CloneObject(unsigned int) + 57
6 com.thegamecreators.AGKTestAppMacOS 0x00056aad ProgramData::RunProgram() + 172941
7 com.thegamecreators.AGKTestAppMacOS 0x00022c75 app::Loop() + 3381
8 com.thegamecreators.AGKTestAppMacOS 0x0002571d main + 1805
9 com.thegamecreators.AGKTestAppMacOS 0x0001f335 start + 53


best regards Preben Eriksen,
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 25th Feb 2016 15:22
Thanks, fixed for the next version. The crash was caused by calling CloneObject on an object containing index data.

Login to post a reply

Server time is: 2024-11-25 09:39:47
Your offset time is: 2024-11-25 09:39:47