Giter Club home page Giter Club logo

horizonsdk-ios's People

Contributors

stelabouras avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

horizonsdk-ios's Issues

BG task not ending

I am experiencing memory leaks in the following scenario. I am using an HTV camera in 2 different classes .

Here is my code.

//Launch Camera in class A //HTVVideo mode

  • (void)launchCamera {

    self.camera = [HVTCamera new];

    [self.camera setCaptureDevice:[self getCaptureDeviceForcameraType:AVCaptureDeviceTypeBuiltInTelephotoCamera] error:nil];

    [self.camera setLevelerFlexSpeed: HVTLevelerFlexSpeedResponsive];

    [self.camera setDelegate:self];

    [self.preview setFillMode:HVTViewFillModeAspectFill];

    [self.camera addView:self.preview];

    if(![self.camera isRunning]) {

      [self.camera startRunning];
    
      return;
    

    }

}

//Launch Camera in class B //HVTCaptureModePhoto

  • (void)launchCamera {

    self.camera = [HVTCamera new];

    [self.camera setLevelerFlexSpeed: HVTLevelerFlexSpeedResponsive];

    [self.camera setDelegate:self];

    [self.preview setFillMode:HVTViewFillModeAspectFill];

    [self.camera setCaptureMode:HVTCaptureModePhoto cameraPosition:AVCaptureDevicePositionBack];

    [self.camera setCaptureDevice:[self getCaptureDeviceForcameraType:AVCaptureDeviceTypeBuiltInTelephotoCamera] error:nil];

    [self.camera setInterfaceOrientation:UIInterfaceOrientationPortrait];

    [self.camera addView:self.preview];

    if(![self.camera isRunning]) {

      [self.camera startRunning];
    
      return;
    

    }

}

The memory leaks when try to launch camera for class A after camera launch for class B (Launching Video camera after Capture camera).

Logs. :
testVideos[44586:12022901] [BackgroundTask] Background Task 4 ("Called by HorizonSDK, from -[HVTPipeline videoPipelineWillStartRunning]"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(:) for your task in a timely manner to avoid this.
2022-01-04 23:19:53.187075+0530
testVideos[44586:12022901] [BackgroundTask] Background Task 5 ("Called by HorizonSDK, from -[HVTPipeline videoPipelineWillStartRunning]"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(
:) for your task in a timely manner to avoid this.
2022-01-04 23:20:47.975246+0530
testVideos[44586:12022901] [BackgroundTask] Background Task 6 ("Called by HorizonSDK, from -[HVTPipeline videoPipelineWillStartRunning]"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(:) for your task in a timely manner to avoid this.
2022-01-04 23:20:49.976846+0530
testVideos[44586:12022901] [BackgroundTask] Background Task 7 ("Called by HorizonSDK, from -[HVTPipeline videoPipelineWillStartRunning]"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(
:) for your task in a timely manner to avoid this.
2022-01-04 23:21:57.910423+0530
testVideos[44586:12022901] [BackgroundTask] Background Task 8 ("Called by HorizonSDK, from -[HVTPipeline videoPipelineWillStartRunning]"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(:) for your task in a timely manner to avoid this.
2022-01-04 23:22:00.911954+0530
testVideos[44586:12022901] [BackgroundTask] Background Task 9 ("Called by HorizonSDK, from -[HVTPipeline videoPipelineWillStartRunning]"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(
:) for your task in a timely manner to avoid this.
2022-01-04 23:22:08.913345+0530
testVideos[44586:12022901] [BackgroundTask] Background Task 10 ("Called by HorizonSDK, from -[HVTCamera recordingStarting]"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(_:) for your task in a timely manner to avoid this

Well done!

I just wanted to say well done! ๐Ÿ‘
excellent work.

Sample App

Is there any instructions for using the sample apps? I can't change Bundle ID without a crash, and can't create a provisioning profile for that bundle ID

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.