rollbar / rollbar-ios

Objective-C library for crash reporting and logging with Rollbar.

Home Page:https://docs.rollbar.com/docs/ios

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rollbar throws errors about an non-existant out of memory error

malua opened this issue · comments

commented

Hey,

we have a Capacitor app, which is a hybrid app. It opens a webview and shows a webapp. I wanted to add rollbar to the native ios project as well, to capture errors happening in the native wrapper.

This worked, but now Rollbar is throwing errors about an Out of memory error, which is not happening. The app does not have any issues. The log ouput is:

2023-05-23 08:56:24.898294+0200 Ticket Gretchen App[2739:960119] [Rollbar] ***OOM*** saveSessionState: is called. State: {
  "app_id" : "13376523-F786-4AA6-93E4-A082DDE998E8",
  "app_version" : "6.6.0.42",
  "os_uptime_seconds" : 170974.94734125002,
  "os_version" : "Version 16.3.1 (Build 20D67)",
  "session_id" : "E13743C0-9F68-4BD8-BED1-9A326991AA48",
  "session_timestamp" : "2023-05-23 at 08:56:24.897000+0200"
}
2023-05-23 08:56:24.899654+0200 Ticket Gretchen App[2739:960119] [Rollbar] Deducing OOM Termination based on: {
  "app_id" : "13376523-F786-4AA6-93E4-A082DDE998E8",
  "app_version" : "6.6.0.42",
  "os_uptime_seconds" : 170974.94734125002,
  "os_version" : "Version 16.3.1 (Build 20D67)",
  "session_id" : "E13743C0-9F68-4BD8-BED1-9A326991AA48",
  "session_timestamp" : "2023-05-23 at 08:56:24.897000+0200"
}
2023-05-23 08:56:24.899821+0200 Ticket Gretchen App[2739:960119] [Rollbar] The app possibly was recycled due to Out-of-Memory problem (the app background state is unknown).
2023-05-23 08:56:24.911173+0200 Ticket Gretchen App[2739:960119] [Rollbar] ***OOM*** registerForSystemSignals is called.
2023-05-23 08:56:24.911210+0200 Ticket Gretchen App[2739:960119] [Rollbar] ***OOM*** registerApplicationHooks is called.
2023-05-23 08:56:24.911406+0200 Ticket Gretchen App[2739:960119] [Rollbar] RollbarInfrastructure is configured with this RollbarConfig instance: 
{
  "custom" : {

  },
  "dataScrubber" : {
    "enabled" : true,
    "safeListFields" : [

    ],
    "scrubFields" : [
      "Password",
      "passwd",
      "confirm_password",
      "password_confirmation",
      "accessToken",
      "auth_token",
      "authentication",
      "secret"
    ]
  },
  "destination" : {
    "accessToken" : "xxxxxx",
    "endpoint" : "https:\/\/api.rollbar.com\/api\/1\/item\/",
    "environment" : "xxxx"
  },
  "developerOptions" : {
    "enabled" : true,
    "logDroppedPayloads" : false,
    "logDroppedPayloadsFile" : "rollbar.dropped",
    "logIncomingPayloads" : false,
    "logIncomingPayloadsFile" : "rollbar.incoming",
    "logTransmittedPayloads" : false,
    "logTransmittedPayloadsFile" : "rollbar.transmitted",
    "suppressSdkInfoLogging" : false,
    "transmit" : true
  },
  "httpProxy" : {
    "enabled" : false,
    "proxyPort" : 0,
    "proxyUrl" : ""
  },
  "httpsProxy" : {
    "enabled" : false,
    "proxyPort" : 0,
    "proxyUrl" : ""
  },
  "loggingOptions" : {
    "captureIp" : "Full",
    "crashLevel" : "error",
    "framework" : "ios",
    "logLevel" : "info",
    "maximumReportsPerMinute" : 60,
    "oomDetection" : true
  },
  "notifier" : {
    "name" : "rollbar-apple",
    "version" : "2.4.0"
  },
  "person" : {

  },
  "server" : {

  },
  "telemetry" : {
    "captureConnectivity" : false,
    "captureLog" : false,
    "enabled" : false,
    "maximumTelemetryData" : 10,
    "memoryStatsAutocollectionInterval" : 0,
    "vewInputsScrubber" : {
      "enabled" : true,
      "safeListFields" : [

      ],
      "scrubFields" : [
        "Password",
        "passwd",
        "confirm_password",
        "password_confirmation",
        "accessToken",
        "auth_token",
        "authentication",
        "secret"
      ]
    }
  }
} 
and crash collector (null)

Do you have any idea, what could trigger this oom error? also i can see the oomDetection "true" parameter in the rollbar config? can i somehow disable that - this would be workaround - altough i would rather capture actual oom errors, then disable it completely.

Hi @malua,

The actively maintained SDK for iOS is now rollbar-apple: https://github.com/rollbar/rollbar-apple

I recommend integrating that SDK which has many fixes and improvements, and if there is still an issue we can look at it there.

Hey @malua, You can find the documentation for the brand new Apple SDK here: https://docs.rollbar.com/docs/apple
I'll close this ticket. Don't hesitate to open a new one in the Apple SDK repository whenever you run into any issues.

commented

Ah man, how embarrasing. I am using the new SDK, I just posted into the wrong repo...

Thanks!