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

"Dumping very large path" message isn't helpful #1184

Open
copumpkin opened this issue Jan 11, 2017 · 14 comments
Open

"Dumping very large path" message isn't helpful #1184

copumpkin opened this issue Jan 11, 2017 · 14 comments
Assignees
Labels
error-messages Confusing messages and better diagnostics performance UX The way in which users interact with Nix. Higher level than UI.

Comments

@copumpkin
Copy link
Member

It would be helpful to know which path is being dumped and ideally what led to the dumpage. Given where the warning is emitted right now in the code, it's not obvious to me how to add that detail to the message, but it's pretty unfriendly right now. I guess we could add a constructor parameter to an FdSink that tells it some human-meaningful representation of the thing being written to it?

cc @edolstra @shlevy

@domenkozar domenkozar added the UX The way in which users interact with Nix. Higher level than UI. label Jan 12, 2017
@shlevy
Copy link
Member

shlevy commented Jan 12, 2017

Yeah, a message in FdSink constructor seems the way to go.

@shlevy
Copy link
Member

shlevy commented Jan 12, 2017

(well, actually, using constant space for dumping is obviously the way to go 😛 )

@copumpkin
Copy link
Member Author

#619

@shlevy shlevy added the backlog label Apr 1, 2018
edolstra added a commit to edolstra/nix that referenced this issue Apr 9, 2018
edolstra added a commit to edolstra/nix that referenced this issue Sep 13, 2018
edolstra added a commit to edolstra/nix that referenced this issue Oct 2, 2018
edolstra added a commit to edolstra/nix that referenced this issue Nov 9, 2018
edolstra added a commit to edolstra/nix that referenced this issue Nov 20, 2018
edolstra added a commit to edolstra/nix that referenced this issue Jan 31, 2019
@domenkozar
Copy link
Member

@edolstra how come 01d33ea never landed in master?

@edolstra
Copy link
Member

@domenkozar That patch doesn't apply cleanly without cf4a7ae.

@domenkozar
Copy link
Member

Having both would be really great :)

@domenkozar
Copy link
Member

domenkozar commented Sep 22, 2019

@edolstra would you mind explaining what withholds these two commits back?

These are two of the most annoying bugs I encounter when using Nix and even being experienced they are annoying to overcome.

I think it's better to make it work&correct and we can correct the performance one day if needed.

@domenkozar domenkozar added error-messages Confusing messages and better diagnostics and removed backlog labels Apr 30, 2020
@zimbatm
Copy link
Member

zimbatm commented Aug 17, 2020

This is still an issue today. I just got that error message and don't know what path is causing the issue.

@domenkozar
Copy link
Member

domenkozar commented Jan 31, 2021

Same here today, nix-daemon ate all my free of memory and I have no idea what path caused it.

2021-01-31-102835_2698x140_escrotum

@stale
Copy link

stale bot commented Jul 30, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the stale label Jul 30, 2021
@Ericson2314
Copy link
Member

I think the prereq patch has landed on master in some form? This might also be straight up fixed on master too.

@stale stale bot removed the stale label Jul 31, 2021
@aleb
Copy link

aleb commented Aug 16, 2021

cf4a7ae landed as 34f2512

Any chance it can be backported to the 2.3-maintenance branch used for making the 2.3.* releases https://github.com/NixOS/nix/blob/2.3-maintenance/src/libstore/local-store.cc ?

The #2981 can be closed as it's forgotten and this different fix has been merged instead.

@stale
Copy link

stale bot commented Apr 17, 2022

I marked this as stale due to inactivity. → More info

@stale stale bot added the stale label Apr 17, 2022
edolstra added a commit to edolstra/nix that referenced this issue Aug 12, 2022
Fixes NixOS#1184 since it's now visible in the progress bar which path is
taking a long time to copy.
edolstra added a commit to edolstra/nix that referenced this issue Aug 12, 2022
This message was unhelpful (NixOS#1184) and probably misleading since
memory is O(1) in most cases now.
edolstra added a commit to edolstra/nix that referenced this issue Aug 17, 2022
This message was unhelpful (NixOS#1184) and probably misleading since
memory is O(1) in most cases now.
@pingiun
Copy link
Member

pingiun commented Oct 9, 2022

this isn't stale, as the message is still shown and still not helpful

@stale stale bot removed the stale label Oct 9, 2022
Minion3665 pushed a commit to Minion3665/nix that referenced this issue Feb 23, 2023
This message was unhelpful (NixOS#1184) and probably misleading since
memory is O(1) in most cases now.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
error-messages Confusing messages and better diagnostics performance UX The way in which users interact with Nix. Higher level than UI.
Projects
None yet
Development

No branches or pull requests

9 participants