Re: Crash 0.9.9 - iOS 6.0 - iPad4 - XCode 4.5
It is easier, I only need that you change the file Include/NsCore/TypeInfo.h with this version and rebuild the sample.
- Attachments
-
- TypeInfo.zip
- (887 Bytes) Downloaded 494 times
Re: Crash 0.9.9 - iOS 6.0 - iPad4 - XCode 4.5
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
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
- Attachments
-
- NsLog.Sanjits-iPad.log.zip
- (18.18 KiB) Downloaded 416 times
Re: Crash 0.9.9 - iOS 6.0 - iPad4 - XCode 4.5
The problem is that the macro __PRETTY_FUNCTION__ is not working as expected in your compiler.
This function, for TypeName<int> for example, should return
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.
Code: Select all
template<class T > const NsChar* TypeName()
{
return __PRETTY_FUNCTION__;
}
Code: Select all
const char* TypeName() [with T = int]
Code: Select all
const NsChar *TypeName()
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
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:
Could you try it?
And I think that the following should work with your version of XCode:
Code: Select all
template<class T > const NsChar* TypeName(T* = 0)
{
return __PRETTY_FUNCTION__;
}
Re: Crash 0.9.9 - iOS 6.0 - iPad4 - XCode 4.5
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

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
Frame rate low in release mode as well ....
Re: Crash 0.9.9 - iOS 6.0 - iPad4 - XCode 4.5
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
Yes true, the libs are debug.
Will try the patch tomorrow. Thx !
Sanjit
Will try the patch tomorrow. Thx !
Sanjit
Re: Crash 0.9.9 - iOS 6.0 - iPad4 - XCode 4.5
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.
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
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
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
Who is online
Users browsing this forum: Ahrefs [Bot] and 10 guests