Skip to content

[Bug] Hot rebuilding index.ts crashes. 2nd try succeeds. #527

@plueschpruem

Description

@plueschpruem

Used the template first about a month ago.
Back then it all worked fine.

Then I updated npm, node, etc. to the latest versions globally.
On OSX Ventura 13.7 (22H123)

Now every time I save index.ts (where the Electron app is declared) while running the dev script it fails to reload the app.
When I save a second time, it works fine (just as before my updates).

1st save console output (app restarting stuck):

build started...
✓ 0 modules transformed.
dist-electron/main/index.js  2.86 kB │ gzip: 1.20 kB │ map: 5.38 kB
built in 10ms.
[81186:0227/152500.682451:ERROR:gpu_process_host.cc(981)] GPU process exited unexpectedly: exit_code=15
[81186:0227/152500.683584:ERROR:command_buffer_proxy_impl.cc(331)] GPU state invalid after WaitForGetOffsetInRange.
[81186:0227/152500.687595:ERROR:network_service_instance_impl.cc(613)] Network service crashed, restarting service.

2nd save console output (app restarting as expected):

build started...
✓ 0 modules transformed.
dist-electron/main/index.js  2.86 kB │ gzip: 1.20 kB │ map: 5.38 kB
built in 10ms.
[81270:0227/152507.710459:ERROR:CONSOLE(1)] "Request Autofill.enable failed. {"code":-32601,"message":"'Autofill.enable' wasn't found"}", source: devtools://devtools/bundled/core/protocol_client/protocol_client.js (1)
[81270:0227/152507.710504:ERROR:CONSOLE(1)] "Request Autofill.setAddresses failed. {"code":-32601,"message":"'Autofill.setAddresses' wasn't found"}", source: devtools://devtools/bundled/core/protocol_client/protocol_client.js (1)

It seems that updating vite and vite-plugin-electron leads to this problem.

Any new settings to add to make this go away?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions