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

error trying to view prof file: user error (endOfInput) #6

Closed
rintcius opened this issue Mar 26, 2017 · 7 comments
Closed

error trying to view prof file: user error (endOfInput) #6

rintcius opened this issue Mar 26, 2017 · 7 comments
Assignees
Labels

Comments

@rintcius
Copy link

I got the following error when trying to view the attached prof file:

user error (endOfInput)

purs.prof.txt

Relevant stack.yaml: https://github.com/purescript/purescript/blob/master/stack.yaml

@maoe
Copy link
Owner

maoe commented Mar 26, 2017

Thanks for reporting the issue. It looks like a bug in the GHC profiler where the module names and the cost center IDs can be concatenated. See the line 424 of your profiling report for example.

I'll see what we can do to work around this issue.

@rintcius
Copy link
Author

It could be fixed by this one: https://ghc.haskell.org/trac/ghc/ticket/8811 . Coincidentally, the ghc version is just upgraded in purescript too, so I'll retry with those updates & see if it's resolved now.

@maoe
Copy link
Owner

maoe commented Mar 31, 2017

That looks like the same issue! I guess I can implement some workaround for GHC < 8.0 in this weekend.

@rintcius
Copy link
Author

I tried with ghc 8.0.2 but this gives a "ghc: panic". This bug is fixed in ghc HEAD though: https://ghc.haskell.org/trac/ghc/ticket/13503

@maoe maoe added the bug label Mar 31, 2017
@maoe maoe self-assigned this Mar 31, 2017
@maoe maoe closed this as completed in e279c87 Apr 2, 2017
@maoe
Copy link
Owner

maoe commented Apr 2, 2017

Just uploaded v1.4.0.1 which has a workaround for this issue.

@maoe
Copy link
Owner

maoe commented Apr 2, 2017

BTW just wondering how you're using this library. Are you using profiteur or viewprof, or using it directly in your app?

@rintcius
Copy link
Author

rintcius commented Apr 2, 2017

Great, thank you!

I am using both profiteur and viewprof.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants