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

Rollbar Exception: IOError: "closed stream" when using SuckerPunch #646

Closed
terry90 opened this issue Oct 27, 2017 · 1 comment
Closed

Rollbar Exception: IOError: "closed stream" when using SuckerPunch #646

terry90 opened this issue Oct 27, 2017 · 1 comment
Assignees

Comments

@terry90
Copy link

terry90 commented Oct 27, 2017

I raise exceptions when some of my async tasks cannot be completed, Rollbar is unable to show something due to some error:
Failsafe from rollbar-gem. IOError: "closed stream" in /usr/local/lib/ruby/2.4.0/delegate.rb:341:in 'rewind': build_item in exception_data

It's a bit annoying, but I'm not 100% it is because of Rollbar + SuckerPunch.
Does Rollbar need the main thread of the app ? Is it a known issue ?

@rokob
Copy link
Contributor

rokob commented Nov 2, 2017

This is a rough one, that failsafe error occurs when we are already dealing with some internal error that occurred while processing an item. We are attempting to build a minimal item with the exception that caused the first error, and that again throws an exception. Throwing a closed stream error at this point though is really odd. Those usually mean a file handle is closed and we still hold a reference to it that we are trying to use. It seems as if the exception that caused the first internal error might include a reference to something that has already been garbage collected. Rollbar does not need the main thread, but if you are trying to report an exception with a reference to an object across threads and the lifetime of those references are possibly shorter than the exception being sent, well anything could be happening at that point.

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

2 participants