Skip to content

Unhandled Rejection (Error): no root #5

@ievans

Description

@ievans

Hi! I just discovered this project and I really like it! I'm trying to use the UI directly to analyze a local disk, and I am wondering if you can help me debug something or if there is a bug in the code -- I'm not familiar enough with d3-hierarchy to quite understand the inner workings. When I run du on / and try to load the result, I get an exception through saying "no root."

$ du -k -a / > whaler-ui/public/du.txt
$ wc -l public/du.txt
10583358 public/du.txt
Unhandled Rejection (Error): no root
stratify
node_modules/d3-hierarchy/src/stratify.js:57
getHierarchy
src/lib.ts:14
  11 |   width: number,
  12 |   height: number
  13 | ) => HierarchyRectangularNode<FsNode> = (data, width, height) => {
> 14 |   const h = d3
  15 |     .stratify<FsNode>()
  16 |     .id((d) => d.id)
  17 |     .parentId((d) => d.id.substring(0, d.id.lastIndexOf('/')))(data)

I thought this might mean there was no / entry in du.txt but there is:

$ tail public/du.txt
...
6408628	/Volumes
85013501	/

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions