CXMeshFileLoader on ARMV6/7 Error

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
rainfall
Posts: 3
Joined: Thu Oct 20, 2011 2:55 am

CXMeshFileLoader on ARMV6/7 Error

Post by rainfall »

HI,everyone.
I tried to load .X file on android and ios,but always suspend on line 2338 ( const f32 tmp = *(f32 *)P; ).
armv5 is OK.
I tried to fix it, but failed.
Any suggestions?
rainfall
rainfall
Posts: 3
Joined: Thu Oct 20, 2011 2:55 am

Re: CXMeshFileLoader on ARMV6/7 Error

Post by rainfall »

replace with : memcpy(&tmp, P, 4);
debug is OK, but release still crash.
so it seems like memory overflow
rainfall
Posts: 3
Joined: Thu Oct 20, 2011 2:55 am

Re: CXMeshFileLoader on ARMV6/7 Error

Post by rainfall »

some one tell me that my compiler is too old.
I will try LLVM GCC 4.2 later
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: CXMeshFileLoader on ARMV6/7 Error

Post by hendu »

Yay alignment. memcpy should have been ok though, perhaps there's a mistake in your change.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: CXMeshFileLoader on ARMV6/7 Error

Post by hybrid »

Could you please send me the .x file for testing?
Post Reply