Open Bug 1706674 Opened 4 years ago Updated 4 years ago

Error when saving snapshot (related to unicode characters in a path)

Categories

(DevTools :: Memory, defect, P2)

Firefox 88
x86_64
Windows 10
defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: w.729993031, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.128 Safari/537.36

Steps to reproduce:

open the devtools memory and click the Save snapshot button

Actual results:

保存

保存此快照时发生错误。

Error while performing task "readHeapSnapshot": [Exception... "File error: Not found" nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)" location: "JS frame :: resource://devtools/shared/heapsnapshot/HeapAnalysesWorker.js :: <TOP_LEVEL> :: line 51" data: no]
@resource://devtools/shared/heapsnapshot/HeapAnalysesWorker.js:51:45
createHandler/<@resource://devtools/shared/worker/helper.js:85:24

Expected results:

must not to message the error

(i use the china firefox and i dont know how to share the error report)

OS: Unspecified → Windows 10
Hardware: Unspecified → x86_64

The Bugbug bot thinks this bug should belong to the 'DevTools::General' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → General
Product: Firefox → DevTools
Component: General → Memory
Flags: needinfo?(jdescottes)

I was able to reproduce this issue:

  • create a 保存 folder on your machine
  • open the memory panel
  • take a snapshot
  • save it in 保存 folder
  • click the memory "import" panel and select the file in the 保存 folder

In the panel, there's :

There was an error processing this snapshot.
Error while performing task "readHeapSnapshot": [Exception... "File error: Not found" nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)" location: "JS frame :: resource://devtools/shared/heapsnapshot/HeapAnalysesWorker.js :: <TOP_LEVEL> :: line 51" data: no]
@resource://devtools/shared/heapsnapshot/HeapAnalysesWorker.js:51:45
createHandler/<@resource://devtools/shared/worker/helper.js:85:24

Summary: devtools memory error → Error when importing snapshot when file path has chinese characters

Thanks for checking Nicolas! I could also reproduce when importing, but not when saving.

(In reply to w.729993031 from comment #0)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.128 Safari/537.36

Steps to reproduce:

This looks similar to Bug 1382493, but the other bug only occurs when importing a file with Unicode characters.
Can you confirm that you are getting an error when you are saving, not when you are importing?

Flags: needinfo?(jdescottes) → needinfo?(w.729993031)
See Also: → 1382493

I started working on this in bug 1651255 but never finished the patch. There's a patch up with review comments there, if somebody want to pick it up. Otherwise I will try to look at it again soon.

how can i fix this bug?

Flags: needinfo?(w.729993031)

(In reply to w.729993031 from comment #6)

how can i fix this bug?

Until we fix the bug, I suggest that you rename the file using only plain ascii (8-bits / latin) characters. Sorry about that :/

(In reply to Julien Wajsberg [:julienw] from comment #7)

(In reply to w.729993031 from comment #6)

how can i fix this bug?

Until we fix the bug, I suggest that you rename the file using only plain ascii (8-bits / latin) characters. Sorry about that :/

https://upload.cc/i1/2021/04/24/wTQmIv.png

i dont create a fxsnapshot file so i dont know how to fix this bug? can you share me a Tutorials?

but i can cahe the fxsnapshot file and open he not talk me the error..

Thanks, I was suspecting that this bug was about saving and not importing.

But I didn't manage to reproduce the bug even with a profile name using unicode characters. Maybe some other folder needs to have unicode characters to create the issue. I think we should block it on Bug 1651255 and revisit once the other bug it fixed.

Severity: -- → S3
Depends on: 1651255
Priority: -- → P2
Summary: Error when importing snapshot when file path has chinese characters → Error when saving snapshot (related to unicode characters in a path)
You need to log in before you can comment on or make changes to this bug.