treosh / exthouse

Analyze the impact of a browser extension on web performance.
MIT License
409 stars 9 forks source link

Error: Unexpected crx format version number #32

Open daothithuha2022 opened 4 years ago

daothithuha2022 commented 4 years ago

I tried to evaluate the final version of Block Origin. 1) Download extension using https://crxextractor.com/ (Because on https://chrome-extension-downloader.com/, when I input the URL of Block Origin. (https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm?hl=en), It shows the. error: Empty Extension!)

2). Copy path to the ublockOrigin.crx and pass to cli: exthouse MY_EXTENTION.crx --runs=3 It shows error:

Unexpected crx format version number.
Run:
exthouse --help

Do you have any suggestions for me? Note that, when I used the extension in your folder. (https://github.com/treosh/exthouse/tree/master/extensions), it works ok. .

andrzejkaras commented 4 years ago

Hi all,

could I ask too for reviewing that issue? exthouse throws that error for crx3 format in version 1.0.1.

Let us know if it is possible.

Thanks in advance!

FormerBuckeye commented 3 years ago

Hi all,

I have the same issue here. Wanted to test the performance of my own extension, but it showed the same error.

andrzejkaras commented 3 years ago

@FormerBuckeye I found a simple workaround. You could use CRX 2 format to pack your extension, it should not affect usability of extension. Then you will be able to use exthouse for tests.

FormerBuckeye commented 3 years ago

@andrzejkaras Thanks for the solution, but do you know how I can pack it into CRX 2 format? Thx!

f-kalantari commented 3 years ago

Does anyone know any alternative performance analysis tool for crx3 extension packages?

rluvaton commented 1 year ago

So looking at the code, we should create a PR to allow getting the root of extension directory and not use unzip-crx which only support version 2