Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash in TrackerEvent.wrapContexts #917

Open
NoFearJoe opened this issue Feb 24, 2025 · 1 comment
Open

Crash in TrackerEvent.wrapContexts #917

NoFearJoe opened this issue Feb 24, 2025 · 1 comment
Labels
type:defect Bugs or weaknesses. The issue has to contain steps to reproduce.

Comments

@NoFearJoe
Copy link

Describe the bug
EXC_BAD_ACCESS (KERN_INVALID_ADDRESS)

To Reproduce
There are no steps to reproduce.

Device information (please complete the following information):

  • Device: Any
  • OS: Any
  • Snowplow Version 6.1.0

Additional context
Stack trace

@NoFearJoe NoFearJoe added the type:defect Bugs or weaknesses. The issue has to contain steps to reproduce. label Feb 24, 2025
@matus-tomlein
Copy link
Contributor

Hi @NoFearJoe, thank you for the report!

Based on the stack trace, it seems like an exception in the JSON serialization in Foundation. We are using the JSONSerialization class in Foundation, which throws an exception if the data is not serializable (e.g., when custom structs/classes are used). We recommend using the JSONSerialization.isValidJSONObject function to check whether your payload is JSON serializable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:defect Bugs or weaknesses. The issue has to contain steps to reproduce.
Projects
None yet
Development

No branches or pull requests

2 participants