Sentry-javascript: Angular 6 with @sentry/browser stuck on loading screen

Created on 29 Oct 2018  路  13Comments  路  Source: getsentry/sentry-javascript

Version:

@sentry/browser@^4.2.3
@angular/core@^6.1.10

Description

After initializing Sentry browser lib Angular is stuck on the loading page. Nothing is moving for minutes, no code firing up. Chrome is showing... nothing. No errors handled or reported as well.

Sentry.init({
  enabled: !isDevMode(),
  dsn: '...',
  environment: environment.envName,
  release: BUILDVERSION.hash,
});

@Injectable()
export class SentryErrorHandler implements ErrorHandler {
  constructor() {
  }

  handleError(error) {
    Sentry.captureException(error.originalError || error);
    console.error('Big fat error!', error.originalError || error);
    throw error;
  }
}
//[...]
   { provide: ErrorHandler, useClass: SentryErrorHandler },

It's impossible to debug for me as I have no communication, nothing in my code seems to be moving. It works find on local server though, so it might be that the enabled flag is doing the trick...
zrzut ekranu 2018-10-29 o 21 58 55

Blocked Needs Reproduction

Most helpful comment

4.5.2 has been released, this version should fix the issue.

All 13 comments

Here is a working example of how to setup angular, can't reproduce this https://codesandbox.io/s/jpm71lq17w

We're checking things since yesterday and at this point, we can't find a possible reason for this behavior. If you have any suggestion on how to debug this I would appreciate, but currently we're blank here... 馃槩

@uded use debug: true in your init call and see if there's maybe an infinite loop of dropped events somewhere. Also, when you do that, paste the output of a whole console here, as this will tell us what integrations are successfully installed.

OK, will do!

Closing due to inactivity. Please feel free to reopen if it's still relevant.

Im having the same behavior here.
Thats my console:
Sentry Logger [Log]: Integration installed: Dedupe
Sentry Logger [Log]: Integration installed: InboundFilters
Sentry Logger [Log]: Integration installed: FunctionToString
Sentry Logger [Log]: Integration installed: ExtraErrorData
Sentry Logger [Log]: Integration installed: TryCatch
Sentry Logger [Log]: Integration installed: Breadcrumbs
Sentry Logger [Log]: Integration installed: GlobalHandlers
Sentry Logger [Log]: Integration installed: LinkedErrors
Sentry Logger [Log]: Integration installed: UserAgent

My chrome is also crashing after a few minutes.

My chrome paused before an out-of-memory crash
captura de tela 2019-01-11 as 09 59 44

@HazAT Hi Daniel,
We created a repository so you can try it.
https://github.com/robertoleighton/sentry-angular

You can run the application and click at 'click to error' button and the app will crash.

Thank you!

@williamxsp Thank you very much, will take a look at this today.

Hey @HazAT Should I wait for a new Sentry-Javascript version?

4.5.2 has been released, this version should fix the issue.

Was this page helpful?
0 / 5 - 0 ratings