yoni89 / panoramagl

Automatically exported from code.google.com/p/panoramagl
0 stars 0 forks source link

please help me,I need you help desperate ! when the panoramagl on the navigation based project ,memory leak!!! #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
emergency!  emergency!  emergency!

What steps will reproduce the problem?
=>1. I create a navigaton based project. one is FirstViewController,one is 
RootViewController.

=>2. when i click a button on FirstViewController,it will bring the 
RootViewController,where panoramaGL display the image!

=>3.and then click back buton on RootViewController ,when it go back to 
FirstViewController,the memory leak,and the plView do not release at all! all 
this is check on instrument tools ship with xcode.

in one word,panoramaGL on the navigation Controller  ,when it pop of the 
Viewcontroller,panoramagl do not release and memory leak.

memory leak is some thing like this :
=>Malloc 32 Bytes   ox813960  32Bytes libLLVMContainer.dyl 
llvm::SmallVectorImpl<unsigned..........

What is the expected output? What do you see instead?
=>when the RootViewController is pop off the navigationController and go back 
to FirstViewController,
the memory should not leak,and the plview object should be release completely!!

What version of the product are you using? On what operating system?
=>no matter old version or the newest version panoramaGL, can not free the 
memory total,and leak.

Please provide any additional information below.
=>please help me,I need you help desperate ! our project is in an emergency!

thank you ,best wishes!!!

the following is my test code.

Original issue reported on code.google.com by luosiqia...@gmail.com on 21 Mar 2011 at 7:13

Attachments:

GoogleCodeExporter commented 9 years ago
Version which is shared here doesn't free memory on release.
There are many causes of such behavior.
If you still need this, i can try extract fixes from my code.

Original comment by sots...@novatv.ru on 28 Jun 2011 at 8:16

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Can you please post the code without the memory issues

Original comment by aparnama...@gmail.com on 20 Sep 2011 at 12:07

GoogleCodeExporter commented 9 years ago
Here it is. Sorry for delay.

Here is how i initialize it

- (void)loadView{
    UIView *rootView = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    plView = [[PLView alloc] initWithFrame:CGRectMake(0, 0, 1024, 768)];

    plView.backgroundColor = [UIColor blackColor];
    plView.isDeviceOrientationEnabled = NO;
    plView.isAccelerometerEnabled = NO;
    plView.isInertiaEnabled = NO;
    plView.inertiaInterval = 0.1;
    plView.camera.isReverseRotation = YES;
    plView.type = PLViewTypeCylindrical;
    plView.camera.pitchRange = PLRangeMake ([[panoramaArray objectAtIndex:1] intValue], [[panoramaArray objectAtIndex:2] intValue]);
    [plView addTextureAndRelease:[PLTexture textureWithPath:[[NSBundle mainBundle]
                                                                     pathForResource:[[panoramaArray objectAtIndex:0] stringByDeletingPathExtension] 
                                                                     ofType:[[panoramaArray objectAtIndex:0] pathExtension]]]];
    plView.renderer.perspective = 270.0f;
    [rootView addSubview:plView];
    [panoramaArray release];
    self.view = rootView;
    [rootView release];

} 

Original comment by sots...@novatv.ru on 21 Jan 2012 at 9:54

Attachments:

GoogleCodeExporter commented 9 years ago
Here is right attach

Original comment by sots...@novatv.ru on 21 Jan 2012 at 9:56

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Please check the last version 0.1, a lot of memory leaks were fixed.

Original comment by javbae...@gmail.com on 5 Jul 2012 at 3:54