Skip to content

Auto-Upload from Android Unreal build process results in "error: memory map length overflows isize" apparently from sentry-cli #957

@ericblade

Description

@ericblade

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

1- Add sentry-unreal to an Android project in Unreal
2- Enable automatic symbol upload
3- Build a package (we are using command line tools)

RunUAT BuildGraph -Script=Engine/Build/BuildAndTestProject.xml -Target="BuildAndTest (ProjectName)" -set:ProjectFile=(ProjectName)/(ProjectName).uproject -set:TargetName=(ProjectName) -set:EditorTargetName=(ProjectName)Editor -set:WithAndroid=true -set:WithDevelopmentTargets=true -set:WithDevelopmentPackages=true -set:SkipTest=true -buildmachine

libUnreal.so size:

06/06/2025 03:40 PM 3,564,555,976 libUnreal.so

Expected Result

Unreal package would be built.

Actual Result

Package fails with

error: memory map length overflows isize

debug output from sentry-cli as follows (credentials and other identifying information X'd out)

> Task :app:uploadSentryNativeSymbolsForDebug FAILED
  INFO    2025-06-07 18:10:56.826418500 -04:00 Loaded file referenced by SENTRY_PROPERTIES (X:\sentry.properties)
  DEBUG   2025-06-07 18:10:56.829136900 -04:00 sentry-cli version: 2.33.1, platform: "windows", architecture: "i686"
  INFO    2025-06-07 18:10:56.829698700 -04:00 sentry-cli was invoked with the following command line: "X:\app\build\tmp\sentry-cli-2.33.1.exe" "--header" "sentry-trace:3fe6c2a409a94f379dfde7779e95bbb7-bce6b49720304ebb-1" "--header" "baggage:sentry-environment=Android,sentry-public_key=000e5dea9770b4537055f8a6d28c021e,sentry-release=4.11.0,sentry-sample_rate=1,sentry-sampled=true,sentry-trace_id=3fe6c2a409a94f379dfde7779e95bbb7,sentry-transaction=gradle%20build%20Android" "debug-files" "upload" "X:\app\build\intermediates\merged_native_libs\debug" "--include-sources"
  INFO    2025-06-07 18:10:56.829786100 -04:00 Issuing a command for Organization: XXXX Project: XXXX
  DEBUG   2025-06-07 18:10:56.830540500 -04:00 request GET https://sentry.io/api/0/organizations/XXXX/chunk-upload/
  DEBUG   2025-06-07 18:10:56.830586500 -04:00 using token authentication
  DEBUG   2025-06-07 18:10:56.830614 -04:00 retry number 0, max retries: 0
  DEBUG   2025-06-07 18:10:56.962003 -04:00 > GET /api/0/organizations/XXXX/chunk-upload/ HTTP/1.1
  DEBUG   2025-06-07 18:10:56.962042 -04:00 > Host: sentry.io
  DEBUG   2025-06-07 18:10:56.962051100 -04:00 > Accept: */*
  DEBUG   2025-06-07 18:10:56.962058800 -04:00 > Connection: TE
  DEBUG   2025-06-07 18:10:56.962066200 -04:00 > TE: gzip
  DEBUG   2025-06-07 18:10:56.962074 -04:00 > sentry-trace:3fe6c2a409a94f379dfde7779e95bbb7-bce6b49720304ebb-1
  DEBUG   2025-06-07 18:10:56.962082500 -04:00 > baggage:sentry-environment=Android,sentry-public_key=XXXX,sentry-release=4.11.0,sentry-sample_rate=1,sentry-sampled=true,sentry-trace_id=3fe6c2a409a94f379dfde7779e95bbb7,sentry-transaction=gradle%20build%20Android
  DEBUG   2025-06-07 18:10:56.962091600 -04:00 > User-Agent: sentry-cli/2.33.1
  DEBUG   2025-06-07 18:10:56.962155900 -04:00 > Authorization: Bearer sntrys_e***
  DEBUG   2025-06-07 18:10:57.254234900 -04:00 < HTTP/1.1 200 OK
  DEBUG   2025-06-07 18:10:57.254289100 -04:00 < server: nginx
  DEBUG   2025-06-07 18:10:57.254312200 -04:00 < date: Sat, 07 Jun 2025 22:10:57 GMT
  DEBUG   2025-06-07 18:10:57.254328400 -04:00 < content-type: application/json
  DEBUG   2025-06-07 18:10:57.254346800 -04:00 < vary: Accept-Encoding,Accept-Language, Cookie
  DEBUG   2025-06-07 18:10:57.254363 -04:00 < allow: GET, POST, HEAD, OPTIONS
  DEBUG   2025-06-07 18:10:57.254377900 -04:00 < access-control-allow-methods: GET, POST, HEAD, OPTIONS
  DEBUG   2025-06-07 18:10:57.254400300 -04:00 < access-control-allow-headers: X-Sentry-Auth, X-Requested-With, Origin, Accept, Content-Type, Authentication, Authorization, Content-Encoding, sentry-trace, baggage, X-CSRFToken
  DEBUG   2025-06-07 18:10:57.254416900 -04:00 < access-control-expose-headers: X-Sentry-Error, X-Sentry-Direct-Hit, X-Hits, X-Max-Hits, Endpoint, Retry-After, Link
  DEBUG   2025-06-07 18:10:57.254431100 -04:00 < access-control-allow-origin: *
  DEBUG   2025-06-07 18:10:57.254445200 -04:00 < x-sentry-rate-limit-remaining: 39
  DEBUG   2025-06-07 18:10:57.254457 -04:00 < x-sentry-rate-limit-limit: 40
  DEBUG   2025-06-07 18:10:57.254474100 -04:00 < x-sentry-rate-limit-reset: 1749334258
  DEBUG   2025-06-07 18:10:57.254494900 -04:00 < x-sentry-rate-limit-concurrentremaining: 24
  DEBUG   2025-06-07 18:10:57.254511900 -04:00 < x-sentry-rate-limit-concurrentlimit: 25
  DEBUG   2025-06-07 18:10:57.254528200 -04:00 < content-language: en
  DEBUG   2025-06-07 18:10:57.254542400 -04:00 < x-frame-options: deny
  DEBUG   2025-06-07 18:10:57.254556900 -04:00 < x-content-type-options: nosniff
  DEBUG   2025-06-07 18:10:57.254570600 -04:00 < x-xss-protection: 1; mode=block
  DEBUG   2025-06-07 18:10:57.254592200 -04:00 < content-security-policy: default-src 'none'; script-src 'self' 'unsafe-inline' 'report-sample' s1.sentry-cdn.com js.sentry-cdn.com browser.sentry-cdn.com statuspage-production.s3.amazonaws.com static.zdassets.com aui-cdn.atlassian.com connect-cdn.atl-paas.net js.stripe.com 'strict-dynamic' cdn.pendo.io data.pendo.io pendo-io-static.storage.googleapis.com pendo-static-5634074999128064.storage.googleapis.com; media-src *; font-src * data:; img-src * blob: data:; connect-src 'self' *.algolia.net *.algolianet.com *.algolia.io sentry.io *.sentry.io s1.sentry-cdn.com o1.ingest.sentry.io api2.amplitude.com app.pendo.io data.pendo.io reload.getsentry.net t687h3m0nh65.statuspage.io sentry.zendesk.com ekr.zdassets.com maps.googleapis.com; frame-ancestors 'self' *.sentry.io; frame-src app.pendo.io demo.arcade.software js.stripe.com sentry.io; object-src 'none'; base-uri 'none'; style-src * 'unsafe-inline'; worker-src blob:; report-uri https://o1.ingest.sentry.io/api/54785/security/?sentry_key=f724a8a027db45f5b21507e7142ff78e&sentry_release=7a9fc61e94505537f3b9d14e10aff4f010dfc3af
  DEBUG   2025-06-07 18:10:57.254609800 -04:00 < x-envoy-upstream-service-time: 262
  DEBUG   2025-06-07 18:10:57.254622900 -04:00 < x-sentry-proxy-url: http://10.2.0.67:8999/api/0/organizations/XXXX/chunk-upload/
  DEBUG   2025-06-07 18:10:57.254637100 -04:00 < x-envoy-attempt-count: 1
  DEBUG   2025-06-07 18:10:57.254649600 -04:00 < x-served-by: frontend-default-5f7878976d-f4jlg
  DEBUG   2025-06-07 18:10:57.254661200 -04:00 < strict-transport-security: max-age=31536000; includeSubDomains; preload
  DEBUG   2025-06-07 18:10:57.254674700 -04:00 < via: 1.1 google
  DEBUG   2025-06-07 18:10:57.254685600 -04:00 < Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
  DEBUG   2025-06-07 18:10:57.254700300 -04:00 < Transfer-Encoding: chunked
  DEBUG   2025-06-07 18:10:57.254763500 -04:00 response status: 200
  DEBUG   2025-06-07 18:10:57.254784800 -04:00 body: {"url":"https://us.sentry.io/api/0/organizations/skydance-interactive-llc/chunk-upload/","chunkSize":8388608,"chunksPerRequest":64,"maxFileSize":4294967296,"maxRequestSize":33554432,"concurrency":8,"hashAlgorithm":"sha1","compression":["gzip"],"accept":["debug_files","release_files","pdbs","sources","bcsymbolmaps","il2cpp","portablepdbs","artifact_bundles","artifact_bundles_v2","proguard","preprod_artifacts"]}
error: memory map length overflows isize
  DEBUG   2025-06-07 18:10:57.263204 -04:00 skipping update nagger because session is not attended


> Task :app:ueCompleteDebug

78 actionable tasks: 78 executed
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:uploadSentryNativeSymbolsForDebug'.
> An error occurred while executing task 'uploadSentryNativeSymbolsForDebug'. Please check the detailed sentry-cli output above.

Product Area

Ingestion and Filtering

Link

No response

DSN

No response

Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Done

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions