Page 3 of 5
Re: Crash 0.9.9 - iOS 6.0 - iPad4 - XCode 4.5
Posted: 25 May 2013, 17:36
by jsantos
It is easier, I only need that you change the file Include/NsCore/TypeInfo.h with this version and rebuild the sample.
Re: Crash 0.9.9 - iOS 6.0 - iPad4 - XCode 4.5
Posted: 26 May 2013, 07:02
by dsanjit
Same crash as before even after replacing TypeInfo.h...
I have confirmed that the header was indeed replaced. Its being referenced in ReflectionImplementEmpty.h and renaming typeinfo to something else does indeed result in a compile error. I noticed the "return __PRETTY_FUNCTION__;" change as well.
Maybe the lib has to be updated as well and not just the header? Doesnt the template get compiled into the lib ??
Sanjit
Re: Crash 0.9.9 - iOS 6.0 - iPad4 - XCode 4.5
Posted: 26 May 2013, 17:39
by jsantos
The problem is that the macro __PRETTY_FUNCTION__ is not working as expected in your compiler.
template<class T > const NsChar* TypeName()
{
return __PRETTY_FUNCTION__;
}
This function, for TypeName<int> for example, should return
const char* TypeName() [with T = int]
or something similar, but your xcode is omitting the template type
and we are using that string as a unique identifier for types. The solution is upgrading to the latest version of XCode, but i want to investigate if we can found a solution for this, or simply detect the compiler version and give an error if the version is incorrect.
Re: Crash 0.9.9 - iOS 6.0 - iPad4 - XCode 4.5
Posted: 26 May 2013, 17:58
by jsantos
This is the source of the problem:
http://clang-developers.42468.n3.nabble ... 50386.html
And I think that the following should work with your version of XCode:
template<class T > const NsChar* TypeName(T* = 0)
{
return __PRETTY_FUNCTION__;
}
Could you try it?
Re: Crash 0.9.9 - iOS 6.0 - iPad4 - XCode 4.5
Posted: 26 May 2013, 18:34
by dsanjit
Whoa it works now
I see the usual ios opengl demo and a small spinning icon at the bottom right and nothing else. Is there some interactivity as well?
BTW the frame rate seems like 20FPS....
Sanjit
Re: Crash 0.9.9 - iOS 6.0 - iPad4 - XCode 4.5
Posted: 26 May 2013, 18:34
by dsanjit
Frame rate low in release mode as well ....
Re: Crash 0.9.9 - iOS 6.0 - iPad4 - XCode 4.5
Posted: 26 May 2013, 19:01
by jsantos
But you are using the debug version of libNoesis.a aren't you? I have to upload a new version with the patch.
Re: Crash 0.9.9 - iOS 6.0 - iPad4 - XCode 4.5
Posted: 26 May 2013, 19:06
by dsanjit
Yes true, the libs are debug.
Will try the patch tomorrow. Thx !
Sanjit
Re: Crash 0.9.9 - iOS 6.0 - iPad4 - XCode 4.5
Posted: 27 May 2013, 11:34
by jsantos
I uploaded the new ios library:
http://www.noesisengine.com/NoesisGui/0 ... 9.4197.zip
Anyway, even in debug, I was getting 30 fps (this demo is one of the Xcode templates and it is configured by default to update the screen at 30hz). I don't know if there may be any more problems on your device, but getting 20fps, even in Debug, doesn't seem to be correct.
Re: Crash 0.9.9 - iOS 6.0 - iPad4 - XCode 4.5
Posted: 27 May 2013, 15:49
by dsanjit
The new build works.
I get 23 FPS on the debug and release builds on the iPad4 Retina. Not sure why.
Also exactly what does the demo do? Currently I can see a small spinning icon. Does anything else show up? Also if I touch the screen with 4 fingers the icon disappears...
Sanjit