Giter Site home page Giter Site logo

Comments (10)

Jamminroot avatar Jamminroot commented on June 2, 2024

Hey, @fosterbrereton, thanks for getting in touch!
We've checked this problem (with provided code in specific) on a few machines, and could not reproduce the issue. Can the problem be in the debugger being attached?
Also, can you provide verbose logs to help us locate the origin of issue?
Thanks.

from hockeysdk-ios.

fosterbrereton avatar fosterbrereton commented on June 2, 2024

When attached to the Xcode debugger, I see something like the following:

2019-06-24 16:49:38.828157-0700 MyApp[28852:792758] Allocated 1073741824 bytes
Message from debugger: Terminated due to memory issue

When I am not attached to the debugger, there is no output anywhere except for the console of the device:

default 20:59:13.099559 -0700   MyApp Allocated 1073741824 bytes
default 20:59:13.552536 -0700   kernel  EXC_RESOURCE -> MyApp[29847] exceeded mem limit: ActiveHard 3072 MB (fatal)
default 20:59:13.552690 -0700   kernel  464154.287 memorystatus: killing_specific_process pid 29847 [MyApp] (per-process-limit 10) - memorystatus_available_pages: 50959

HockeyApp produces no crash reports for this kind of crash, so unfortunately that's all the logging information I have.

Both of the above were generated with a 12.9" iPad Pro.

from hockeysdk-ios.

Jamminroot avatar Jamminroot commented on June 2, 2024

I mean you can call the crash without debugger attached, then launch app with debugger attached to be able to get logs on what has happened.
I will re-check that meanwhile.

from hockeysdk-ios.

Jamminroot avatar Jamminroot commented on June 2, 2024

After a more thourough investigation, we were able to reproduce the issue.
It appears that trying to allocate 1gb per iteration might disallow to reproduce the issue. Changing this amount helped us out.
Memory allocation error can lead to 2 different ways of app being terminated: throwing C++ std::bad_alloc exception and process termination by OS. Since we are using in-process crash detection, first one can be detected, while the latter one can not - it isn't mapped to signals interceptable by in-process crash detection.
In your example, the SDK is not able to catch a crash since the application is killed by OS.

from hockeysdk-ios.

fosterbrereton avatar fosterbrereton commented on June 2, 2024

Thanks for the information. The crash I’m interested in is the process termination- we are handling exceptions just fine in our app.

I noticed in the log an EXC_RESOURCE mach exception was being sent to the application prior to the crash. What kind of mach exception support exists in HockeyApp? Could it be modified to accommodate include support for this kind of exception?

from hockeysdk-ios.

elamalani avatar elamalani commented on June 2, 2024

@fosterbrereton This is a new feature request in HockeySDK. Please note that we are not adding new features in HockeyApp which will sunset on November 16, 2019. App Center is the next generation solution for HockeyApp and I'd recommend you to move your apps to App Center in the coming weeks. We can track it as a new feature request in App Center.

from hockeysdk-ios.

fosterbrereton avatar fosterbrereton commented on June 2, 2024

@elamalani Thanks. We're in the process of migrating to App Center. I posted a similar issue there but it was closed as a duplicate of this issue. Should I reopen?

from hockeysdk-ios.

elamalani avatar elamalani commented on June 2, 2024

@fosterbrereton Yea, it would be great if you could reopen the ticket on App Center repo and let's close this one.

from hockeysdk-ios.

fosterbrereton avatar fosterbrereton commented on June 2, 2024

Filed, thanks.

from hockeysdk-ios.

lumaxis avatar lumaxis commented on June 2, 2024

@fosterbrereton While I think the App Center SDK does not yet have this feature, you could try using https://www.hockeyapp.net/help/sdk/ios/5.1.4/Classes/BITCrashManager.html#/c:objc(cs)BITCrashManager(py)enableAppNotTerminatingCleanlyDetection now that you are still using the HockeySDK.
It's not 100% accurate and can include reports from other reasons but it should theoretically provide you with info about how often your app gets killed for using too much memory.

from hockeysdk-ios.

Related Issues (20)

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.