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

Catching download exception causes app crash #107

Closed
alxmiron opened this issue Aug 16, 2018 · 5 comments
Closed

Catching download exception causes app crash #107

alxmiron opened this issue Aug 16, 2018 · 5 comments
Assignees

Comments

@alxmiron
Copy link

alxmiron commented Aug 16, 2018

I use electron-builder to build and autoupdate my app. When new update is found, updater tries to download it differentially and fails:
Cannot download differentially, fallback to full download: Error: EBADF: bad file descriptor (string from logs)

If I remove @sentry/electron, the app is updated successfully with full download. But with sentry it unexpectedly crashes without any bug reporting, without user warning. I suppose that exception is handled with error by sentry. So app can't update and work correctly. I had to replace with Raven again since this is critical to me

@HazAT HazAT self-assigned this Aug 27, 2018
@alxmiron
Copy link
Author

alxmiron commented Sep 6, 2018

Issue is reproduced with v0.9.0

@HazAT
Copy link
Member

HazAT commented Sep 7, 2018

@alxmiron Thanks for the update.
I suppose creating a minimal repro case for this is a bit more effort since it requires an endpoint to download the update, right?!
We try to make time for this to find out what's going on here.

@alxmiron
Copy link
Author

alxmiron commented Sep 10, 2018

Yes, this bug is hard to catch because it can be reproduced only in production mode (autoupdate is not working in dev mode)

Here is my test app v3.1.4, where you can see the error: launch it on windows 10 and wait 1-2 minutes. It will look for updates in cdn.hitask.com/desktop/testask/windows/latest.yml and try to upgrade to v3.1.5 (or newer). Once it finds the update - it crashes. Nothing is tracked in sentry.io. Logs are in "%USERPROFILE%\AppData\Roaming\Hitask-Test\log.log"

Sentry initialized as in tutorial:

import * as Sentry from '@sentry/electron';

Sentry.init({
	dsn: __SENTRY_PUBLIC_DSN__,
	release: __APP_VERSION__,
	environment: __ENV__,
});

Hope it will help

@alxmiron
Copy link
Author

Not reproduced with v0.12.1

@timfish
Copy link
Collaborator

timfish commented Nov 15, 2019

Closing as it sounds fixex

@timfish timfish closed this as completed Nov 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants