Closed deeje closed 7 years ago
Is this in the iOS Simulator or iOS Device?
on an iPhone 6 running iOS 9.3.5
@deeje can you share your source code?
@skycenter :-|
contact me directly?
if I don't set vrModeEnabled = true, I still crash the first time thru calling Render
@deeje just emailed you
The gvr::PlatformInfo::GetApplicationName() is constructed from: [[[NSBundle mainBundle] objectForInfoDictionaryKey:(NSString *)kCFBundleNameKey] UTF8String].
Can you make sure this returns a bundle name properly?
OK, that fixed it. Any reason why you're using that key rather than kCFBundleDisplayNameKey?
Hi,
I am able to get GVRSDK iOS sample code to run on device, but am hitting a roadblock in my project. After instantiating a GVRCardboardView, it crashes deep inside setVRModeEnabled…
self.cardboardView = [[GVRCardboardView alloc] initWithFrame:stageFrame]; self.cardboardView.context = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2]; self.cardboardView.delegate = self; self.cardboardView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; self.cardboardView.vrModeEnabled = YES;
EXC_BAD_ACCESS (code=1, address=0x0)
Thread 1 Queue : com.apple.main-thread (serial)
0 0x0000000180da504c in strlen ()
1 0x00000001003f8154 in gvr::PlatformInfo::GetApplicationName() const ()
2 0x00000001003bbb24 in gvr::ServerLogger::BuildLogEvent(wireless_android_play_playlog::VREvent_EventType const&, std::__1::shared_ptr) ()
3 0x00000001003bc5e0 in gvr::ServerLogger::Log(wireless_android_play_playlog::VREvent_EventType const&, std::__1::shared_ptr) ()
4 0x00000001003bc4e0 in gvr::ServerLogger::Log(wireless_android_play_playlog::VREvent_EventType const&) ()
5 0x0000000100391808 in gvr::CardboardApiImpl::CardboardApiImpl(gvr::DisplayMetrics const&, std::__1::shared_ptr, std::__1::shared_ptr<gvr::SingleTypeEventProducer >, gvr::CardboardApiImpl::Detectors) ()
6 0x00000001003912f8 in gvr::CardboardApiImpl::Create() ()
7 0x0000000100391298 in gvr::CardboardApi::Create() ()
8 0x0000000100275734 in +[GVRDeviceParamsHelper viewerModelName] ()
9 0x0000000100284f78 in -[GVRTransitionView loadView] ()
10 0x00000001002847d4 in -[GVRTransitionView initWithFrame:delegate:] ()
11 0x000000010027c170 in -[GVROverlayViewController init] ()
12 0x0000000100272cfc in -[GVRCardboardView presentModal] ()
13 0x00000001002718e4 in -[GVRCardboardView setVrModeEnabled:] ()
14 0x000000010016cc44 in -[SCNStageViewController viewDidLoad] at /Users/deeje/Documents/tapprtv-ios/Classes/SCNStageViewController.m:82
…
Does this ring a bell for anyone?