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

Cannot read properties of null (reading 'hash') #44

Open
figo2264 opened this issue Jul 15, 2022 · 2 comments
Open

Cannot read properties of null (reading 'hash') #44

figo2264 opened this issue Jul 15, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@figo2264
Copy link
Contributor

Following error occurs when I

  • running pcwatch
  • delete all the codes of a file.
  • paste codes from clipboard
  • save it.
    Then the pcwatch process failed with whoe bunch of error message.

When I restart pcwatch, it fails with the following message.

TypeError: Cannot read properties of null (reading 'hash') at Object.sameHashAsRemote (C:\Projects\playcanvas-sync\src\utils\common-utils.js:179:40) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async ComputeDiffAll.handleFileOnBoth (C:\Projects\playcanvas-sync\src\sync-commands\compute-diff-all.js:97:24) at async Promise.all (index 14) at async ComputeDiffAll.handleAllFiles (C:\Projects\playcanvas-sync\src\sync-commands\compute-diff-all.js:83:5) at async ComputeDiffAll.run (C:\Projects\playcanvas-sync\src\sync-commands\compute-diff-all.js:40:5) at async Object.reportDiffAll (C:\Projects\playcanvas-sync\src\sync-commands\sync-utils.js:10:19) at async Object.errorIfDifferent (C:\Projects\playcanvas-sync\src\sync-commands\sync-utils.js:79:19) at async Object.wrapUserErrors (C:\Projects\playcanvas-sync\src\utils\common-utils.js:112:20) at async run (C:\Projects\playcanvas-sync\pcwatch.js:20:9)

and the target file is hanging in the editor.
image

@yaustar yaustar added the bug Something isn't working label Jul 15, 2022
@yaustar
Copy link
Collaborator

yaustar commented Jul 15, 2022

I'm afraid I can't reproduce the issue with the steps provided. Does it only happen with this one file?

Kapture.2022-07-15.at.11.08.55.mp4

@nikitaosyak
Copy link

I run into this bug today. Seems to be connected to what is inside uploading files.

Project I have is pretty huge, and I can't determine what exact construct was producing this error. Removing generated bundles an regenerating them back fixed the issue.

If I ever run into it again on a smaller project, I'll try to investigate what causes this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants