GithubHelp home page GithubHelp logo

Comments (10)

venkatd avatar venkatd commented on June 11, 2024

I am also having the same issue. When the internet is disconnected the memory usage for libBump skyrockets...

from bump-api-ios.

tewks avatar tewks commented on June 11, 2024

Thanks for the reports. We'll investigate and issue a fix.

from bump-api-ios.

himanshur avatar himanshur commented on June 11, 2024

Any update on this? Even I am facing this issue. The memory usage goes incredibly high if network connectivity is absent when bump is configured, resulting in the app crashing in a matter of few seconds..

from bump-api-ios.

himanshur avatar himanshur commented on June 11, 2024

Hi tewks. Is there any fix available for this? are there any plans at all to fix this. If not, I might have to dump Bump, as its unusable right now..

from bump-api-ios.

johndpope avatar johndpope commented on June 11, 2024

I'm using this code in mean time in main.m file

#import <UIKit/UIKit.h>
#import "AppDelegate.h"
#import <sys/signal.h>

void SigPipeHandler(int s);

void SigPipeHandler(int s)
{
NSLog(@"We Got a Pipe Single :%d____________",s);
}

int main(int argc, char *argv[])
{
@autoreleasepool {
signal(SIGPIPE, SigPipeHandler);
// signal(SIGPIPE, SO_NOSIGPIPE);
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}

from bump-api-ios.

johndpope avatar johndpope commented on June 11, 2024

screen shot 2013-05-24 at 3 52 07 pm
Pretty simple to recreate this problem - just start phone up in airline mode and watch the memory blow out.
Any ETA on a fix for this?

from bump-api-ios.

johndpope avatar johndpope commented on June 11, 2024

Is there a way you can provide a method to tear down the entire singleton class and destroy BumpClient?
That would at least provide us a way to bandaid this situation based off the network availability - other wise this is not production worthy code.

from bump-api-ios.

johndpope avatar johndpope commented on June 11, 2024

/// if using ARC set this -fno-objc-arc

@interface DestroyBump : NSObject
+(void)deallocateNastyMemoryLeakUntilBumpSdkIsFixed;

@EnD

#import "DestroyBump.h"
#import "BumpClient.h"
#import <objc/runtime.h>

@implementation DestroyBump

+(void)deallocateNastyMemoryLeakUntilBumpSdkIsFixed{
BumpClient *bc = [BumpClient sharedClient];
[bc disconnect];
[bc setChannelConfirmedBlock:nil];
[bc setDataReceivedBlock:nil];
[bc setConnectionStateChangedBlock:nil];
[bc setBumpEventBlock:nil];
[bc release];
}

@EnD

from bump-api-ios.

george-apostu avatar george-apostu commented on June 11, 2024

Same issue here. Any update?

from bump-api-ios.

tewks avatar tewks commented on June 11, 2024

Fixed in 3.1

from bump-api-ios.

Related Issues (19)

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.