Login Action Required

The NinevehGL Forum uses a new concept of "socialized forum" or as we like to say "Tweet Forum".


Here is the deal:
  1. No new registration is required. Just sign in with your Twitter account and authorize the NinevehGL Forum.
  2. Once you’re in, you'll be able to "Follow a Thread", that means every time that thread receive a new post or update you'll receive a mention on your twitter.
  3. Besides, you can enable "Auto Share", then every new post and/or thread you make will be tweeted on your timeline. (By default, auto-share is enabled only for your threads)

Forum Rules:

1. We understand human comunication can become "hot" sometimes. So some insults and bad words ARE allowed. Just don't push too much being an asshole all the time.

2. SPAMMERS are not allowed. There are penalties for this kind of user and they can be banned forever.

3. You can report other users, if you judge necessary. An user reported many times by many people can also be banned forever. However you can also receive penalties for report deliberately for no apparent reason.

If there is a similar thread title, make sure the other one doesn't already have the answer you're looking for.

This forum uses the BBCode (Bulletin Board Code), here are some instructions:

Bold: [b]text[/b]
Italic: [i]text[/i]
Underline: [u]text[/u]

Code: [code]text[/code]
Quote:
[quote=@username]text[/quote]
[quote]text[/quote]

List:
[ul] [*]item [/ul]
[ol] [*]item [/ol]

URL:
[url]http://url.com[/url]
[url=http://url.com]text[/url]

Image:
[img]http://imageurl.com[/img]

Embed (videos, code, 3D):
[embed]http://url.com[/embed]

Welcome to the NinevehGL's world!
NinevehGL is a 3D engine forged with pure Obj-C.
Welcome to the
Forum!
Hello, Guest.

Your current vote:

You can change your vote many times. But it's still one single vote.

App crashes on drawCamera call.
Vote this thread:


@davidchanck

Posts: 16

NGLNewbie

Tue, Jun 5 2012


Hi,

I have a UINavigationController, then a first view controller which holds a button that push in another view controller (using Storyboard).

In the last view controller, I create an instance of NGLView and use self.view to assign the NGLView.

Inside of that view I've also addSubview a UIButton and a UIActivityIndicator.

Everything runs, but sometimes, when I hit the "back" button from the UINavigationController to go back to the first view, the app would crash.

The output would simply show (lldb) and it'd show a EXC_BAD_ACCESS to my [_camera drawCamera].

Is there something I need to do under ViewDidUnload? I think there is some memory management issue here. Could it be also the UIButton/ActivityIndicator I have injected into the NGLView?

Thanks a lot!
David
0% like this - 0/0

@dineybomfim

Posts: 571

NGLAdmin

Tue, Jun 5 2012


In response to: @davidchanck

Hi dude,

Yes, we know about this issue. It happens sometimes when using multithreading and releasing the views. We'll fix it soon.

For now, what you can do is to reuse the view. For example, allocate the NGLView once and hold its instance into a manager class. Every time you enter in that area you ask this manager for this singleton instance. By doing this you don't need to release and recreate the view every time.

Besides you can switch to non-multithreading mode, but this is not a good thing, because the multithreading is a very important feature and very useful to the final user.
100% like this - 1/1

@davidchanck

Posts: 16

NGLNewbie

Tue, Jun 5 2012


In response to: @dineybomfim

Thanks for all the help so far, it's rare to find an open source software forums having so much support. Especially to beginners like me.

You guys definitely deserve more attention for this project (and I'm sure you will)!
0% like this - 0/0

@dineybomfim

Posts: 571

NGLAdmin

Tue, Jun 5 2012


In response to: @davidchanck

Thanks, man!

This is the kind of feedback that push us to keep going further and further!

Thanks.
0% like this - 0/0

@emrares

Posts: 7

NGLNewbie

Tue, Oct 30 2012


In response to: @dineybomfim

Did you fix this issue? I have the exact problem

0% like this - 0/0

@bhartiya_varun

Posts: 27

NGLNewbie

Fri, Nov 9 2012


Eagerly waiting for this fix!!!
0% like this - 0/0

@mrahmalevich

Posts: 12

NGLNewbie

Fri, Nov 9 2012


In response to: @davidchanck

Hi,

If this is still actual, I faced with same problem and fixed it just by setting nil to camera property in controller's dealloc method. Hope it will help somebody.
0% like this - 0/0

@rbimatt

Posts: 2

NGLNewbie

Thu, Feb 28 2013


I'm getting a similar crash in drawCamera. Is there any fixes for this? In dealloc I'm releasing the camera, and I have a singleton holding the nglview.

I'm assigning the viewcontrollers view by doing self.view = [3dSingleton nglView]; Maybe this isn't the best way to do it?
0% like this - 0/0

@bhartiya_varun

Posts: 27

NGLNewbie

Fri, Mar 1 2013


In response to: @rbimatt

I am not an expert but following helped me:

1. Do not call drawCamera manually.
2. I made even the controller class(which has NGLView delegate methods) also a singleton.
0% like this - 0/0

@rbimatt

Posts: 2

NGLNewbie

Fri, Mar 1 2013


#2 was what worked for me. I had a singleton, but it wasn't the delegate. Once I did that, worked great. Thanks!

@bhartiya_varun said:


In response to:@rbimatt

I am not an expert but following helped me:

1. Do not call drawCamera manually.
2. I made even the controller class(which has NGLView delegate methods) also a singleton.


0% like this - 0/0

@bhartiya_varun

Posts: 27

NGLNewbie

Mon, Mar 4 2013


In response to: @rbimatt

Great!
0% like this - 0/0
Technology

NinevehGL is a 3D engine built right on top of OpenGL ES and it uses all the programmable pipeline power, making it easy for you to create great application with shaders.

Share on


Follow NinevehGL
Fastest way to contact us:

Copyright © 2011 db-in. All rights reserved.