Skip to content

loadContextsIntegration failed #3301

@RuyVictor

Description

@RuyVictor

Platform

Flutter Mobile Android

Obfuscation

Disabled

Debug Info

Disabled

Doctor

[sentry] [error] loadContextsIntegration failed
[sentry] _TypeError (type 'int' is not a subtype of type 'double?')

[sentry] [error] loadContextsIntegration failed
[sentry] _TypeError (type 'int' is not a subtype of type 'double?')
[sentry] #0 new SentryDevice.fromJson (package:sentry/src/protocol/sentry_device.dart:199:26)
sentry_device.dart:199
#1 new Contexts.fromJson (package:sentry/src/protocol/contexts.dart:44:26)
contexts.dart:44
#2 _mergeNativeWithLocalContexts (package:sentry_flutter/src/integrations/load_contexts_integration.dart:267:37)
load_contexts_integration.dart:267
#3 _LoadContextsIntegrationEventProcessor.apply (package:sentry_flutter/src/integrations/load_contexts_integration.dart:120:7)
load_contexts_integration.dart:120

#4 runEventProcessors (package:sentry/src/event_processor/run_event_processors.dart:26:52)
run_event_processors.dart:26

#5 SentryClient.captureTransaction (package:sentry/src/sentry_client.dart:405:27)
sentry_client.dart:405

#6 Hub.captureTransaction (package:sentry/src/hub.dart:615:22)
hub.dart:615

#7 SentryTracer.finish (package:sentry/src/sentry_tracer.dart:161:7)
sentry_tracer.dart:161

#8 SentryTracer._scheduleTimer. (package:sentry/src/sentry_tracer.dart:436:9)
sentry_tracer.dart:436

Version

9.7.0

Steps to Reproduce

every app launching in emulator PIXEL 8 PRO API 34

Future main() async {
SentryWidgetsFlutterBinding.ensureInitialized();
await SentryFlutter.init(
(options) {
options.dsn =
'https://blablablabla';
// Set tracesSampleRate to 1.0 to capture 100% of transactions for tracing.
// We recommend adjusting this value in production.
options.tracesSampleRate = 1.0;
// The sampling rate for profiling is relative to tracesSampleRate
// Setting to 1.0 will profile 100% of sampled transactions:
options.profilesSampleRate = 1.0;
},
appRunner: () => runApp(SentryWidget(child: const App())),
);
}

Expected Result

solution: make 'screen_density' as num

Actual Result

Image

Are you willing to submit a PR?

None

Metadata

Metadata

Assignees

Labels

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions