User avatar
jsantos
Site Admin
Posts: 4219
Joined: 20 Jan 2012, 17:18
Contact:

Re: Crash 0.9.9 - iOS 6.0 - iPad4 - XCode 4.5

25 May 2013, 17:36

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
 
dsanjit
Topic Author
Posts: 24
Joined: 03 May 2013, 15:46

Re: Crash 0.9.9 - iOS 6.0 - iPad4 - XCode 4.5

26 May 2013, 07:02

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
Attachments
NsLog.Sanjits-iPad.log.zip
(18.18 KiB) Downloaded 416 times
 
User avatar
jsantos
Site Admin
Posts: 4219
Joined: 20 Jan 2012, 17:18
Contact:

Re: Crash 0.9.9 - iOS 6.0 - iPad4 - XCode 4.5

26 May 2013, 17:39

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
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.
 
User avatar
jsantos
Site Admin
Posts: 4219
Joined: 20 Jan 2012, 17:18
Contact:

Re: Crash 0.9.9 - iOS 6.0 - iPad4 - XCode 4.5

26 May 2013, 17:58

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?
 
dsanjit
Topic Author
Posts: 24
Joined: 03 May 2013, 15:46

Re: Crash 0.9.9 - iOS 6.0 - iPad4 - XCode 4.5

26 May 2013, 18:34

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
 
dsanjit
Topic Author
Posts: 24
Joined: 03 May 2013, 15:46

Re: Crash 0.9.9 - iOS 6.0 - iPad4 - XCode 4.5

26 May 2013, 18:34

Frame rate low in release mode as well ....
 
User avatar
jsantos
Site Admin
Posts: 4219
Joined: 20 Jan 2012, 17:18
Contact:

Re: Crash 0.9.9 - iOS 6.0 - iPad4 - XCode 4.5

26 May 2013, 19:01

But you are using the debug version of libNoesis.a aren't you? I have to upload a new version with the patch.
 
dsanjit
Topic Author
Posts: 24
Joined: 03 May 2013, 15:46

Re: Crash 0.9.9 - iOS 6.0 - iPad4 - XCode 4.5

26 May 2013, 19:06

Yes true, the libs are debug.
Will try the patch tomorrow. Thx !

Sanjit
 
User avatar
jsantos
Site Admin
Posts: 4219
Joined: 20 Jan 2012, 17:18
Contact:

Re: Crash 0.9.9 - iOS 6.0 - iPad4 - XCode 4.5

27 May 2013, 11:34

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.
 
dsanjit
Topic Author
Posts: 24
Joined: 03 May 2013, 15:46

Re: Crash 0.9.9 - iOS 6.0 - iPad4 - XCode 4.5

27 May 2013, 15:49

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

Who is online

Users browsing this forum: Ahrefs [Bot] and 10 guests