question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crash when using top level init

See original GitHub issue

Versions + Platform

  • SDK version - @sentry/electron@v3.0.6
  • Electron version - electron@v14.2.7
  • Platform - macOS

Description

The following code throws a TypeError when called in renderer

import { init } from "@sentry/electron";

init({ dns: <valid dsn> });

The problem seems to be that autoSessionTracking is “on by default” but only works in main so it throws in `renderer.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
Nokel81commented, Mar 31, 2022

We have two webpack configurations, one with target: "electron-main", and the other with target: "electron-renderer",. However, we currently have node-integration: true turned on for our renderer.

0reactions
timfishcommented, Apr 12, 2022

A fix for this has been released in 3.0.7

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does my explicit init crash? - Using Swift
For any struct that has at least one defaulted property, the behaviour is observably different between using the generated memberwise init and a ......
Read more >
Runtime crash "outlined init with take of any ..." #61403 - GitHub
Describe the bug Crash in Release mode or if Optimization Level of Swift Compiler - Code Generation is Optimize for Speed [-O].
Read more >
Threaded Tkinter script crashes when creating the second ...
When I run my code, the first Toplevel widget is created successfully, but when it tries to create a second one the program...
Read more >
crash(8) - Linux manual page - man7.org
NAME top. crash - Analyze Linux crash dump data or a live system ... of the traditional UNIX crash utility with the source...
Read more >
How to troubleshoot kernel crashes, hangs, or reboots with ...
The crash dumps are captured from the context of a freshly booted kernel; not from the context of the crashed kernel. Kdump uses...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found