beyondcode / beyondcode/herd-community

[Bug]: Windows: Herd UI freezes and crashes with FATAL ERROR napi_throw

Open
#1,691 0 comments 0 reactions 0 assignees View on GitHub
windows
Dominant language
No language data
Stars
122
Forks
1
PR merge metrics
No merged PRs in 30d

Description

### Platform

Windows

### Operating system version

Windows 11

### System architecture

Windows

### Herd Version

1.28.0

### PHP Version

all versions

### Bug description

I'm using Laravel Herd free on Windows.

Problem:
Herd starts, HerdHelper works, hosts file updates correctly, and the internal API responds at http://localhost:9001 with "Cannot GET /".

But the UI freezes when opening Sites, PHP, Node.js, or lower menu sections.

I already tried:
- Clean reinstall
- Empty Herd folder
- Restarting HerdHelper
- Running Herd as administrator

main.log does not show a clear fatal error. It shows PHP/NGINX/API starting correctly and hosts file being updated via HerdHelper.

When I run Herd from CMD:

C:\Program Files\Herd>Herd.exe

I get:

FATAL ERROR: Error::ThrowAsJavaScriptException napi_throw
[stack trace...]

This happens even without projects, so it does not seem related to Laravel projects, node_modules, vendor, or site count.

### Steps to reproduce

Herd active but closed:

C:\Windows\System32>cd "C:\Program Files\Herd"
C:\Program Files\Herd>Herd.exe

C:\Program Files\Herd>
09:56:29.256 > Starting Herd...
FATAL ERROR: Error::ThrowAsJavaScriptException napi_throw
1: 00007FF7F4BC8506 node::SetTracingController+86134
2: 00007FF7F4BC8644 node::OnFatalError+276
3: 00007FF7F5396B20 napi_fatal_error+144
4: 00007FFE6F1219D7
5: 00007FFE6F121DA6
6: 00007FFE6F13ADC9
7: 00007FF7F5399603 node_api_get_module_file_name+1987
8: 00007FF7F52ACA3C uv_dlerror+71276
9: 00007FF7F52AC893 uv_dlerror+70851
10: 00007FF7F53BFA34 uv_fs_poll_getpath+1444
11: 00007FF7F4C4B2D0 uv_run+1888
12: 00007FF7F4C4AD6B uv_run+507
13: 00007FF7F4C1741C node::loader::ModuleWrap::Initialize+164380
14: 00007FF7F4C17D42 node::loader::ModuleWrap::Initialize+166722
15: 00007FF7F4C4340A node::FreeEnvironment+186
16: 00007FF7F2D7FE95 v8::Extension::auto_enable+981
17: 00007FF7F2CCBCD6 std::__Cr::vector >::__alloc+75606
18: 00007FF7F3CC4254 uv_fs_get_path+118644
19: 00007FF7F3CC5EEE uv_fs_get_path+125966
20: 00007FF7F3CC10C0 uv_fs_get_path+105952
21: 00007FF7F2E8D582 v8::internal::StrongRootAllocatorBase::StrongRootAllocatorBase+541458
22: 00007FF7F2E8E924 v8::internal::StrongRootAllocatorBase::StrongRootAllocatorBase+546484
23: 00007FF7F2E8E6A4 v8::internal::StrongRootAllocatorBase::StrongRootAllocatorBase+545844
24: 00007FF7F2E8A9E0 v8::internal::StrongRootAllocatorBase::StrongRootAllocatorBase+530288
25: 00007FF7F2E8AB5D v8::internal::StrongRootAllocatorBase::StrongRootAllocatorBase+530669
26: 00007FF7F2BCCBC5 std::__Cr::vector >::vector >+60933
27: 00007FF7F7268642 Cr_z_adler32+4755858
28: 00007FFF834CE8D7 BaseThreadInitThunk+23
29: 00007FFF84A8C3FC RtlUserThreadStart+44

Active herd and open visual interface:
C:\Windows\System32>cd "C:\Program Files\Herd"

C:\Program Files\Herd>Herd.exe

C:\Program Files\Herd>
09:56:29.256 > Starting Herd...
FATAL ERROR: Error::ThrowAsJavaScriptException napi_throw
1: 00007FF7F4BC8506 node::SetTracingController+86134
2: 00007FF7F4BC8644 node::OnFatalError+276
3: 00007FF7F5396B20 napi_fatal_error+144
4: 00007FFE6F1219D7
5: 00007FFE6F121DA6
6: 00007FFE6F13ADC9
7: 00007FF7F5399603 node_api_get_module_file_name+1987
8: 00007FF7F52ACA3C uv_dlerror+71276
9: 00007FF7F52AC893 uv_dlerror+70851
10: 00007FF7F53BFA34 uv_fs_poll_getpath+1444
11: 00007FF7F4C4B2D0 uv_run+1888
12: 00007FF7F4C4AD6B uv_run+507
13: 00007FF7F4C1741C node::loader::ModuleWrap::Initialize+164380
14: 00007FF7F4C17D42 node::loader::ModuleWrap::Initialize+166722
15: 00007FF7F4C4340A node::FreeEnvironment+186
16: 00007FF7F2D7FE95 v8::Extension::auto_enable+981
17: 00007FF7F2CCBCD6 std::__Cr::vector >::__alloc+75606
18: 00007FF7F3CC4254 uv_fs_get_path+118644
19: 00007FF7F3CC5EEE uv_fs_get_path+125966
20: 00007FF7F3CC10C0 uv_fs_get_path+105952
21: 00007FF7F2E8D582 v8::internal::StrongRootAllocatorBase::StrongRootAllocatorBase+541458
22: 00007FF7F2E8E924 v8::internal::StrongRootAllocatorBase::StrongRootAllocatorBase+546484
23: 00007FF7F2E8E6A4 v8::internal::StrongRootAllocatorBase::StrongRootAllocatorBase+545844
24: 00007FF7F2E8A9E0 v8::internal::StrongRootAllocatorBase::StrongRootAllocatorBase+530288
25: 00007FF7F2E8AB5D v8::internal::StrongRootAllocatorBase::StrongRootAllocatorBase+530669
26: 00007FF7F2BCCBC5 std::__Cr::vector >::vector >+60933
27: 00007FF7F7268642 Cr_z_adler32+4755858
28: 00007FFF834CE8D7 BaseThreadInitThunk+23
29: 00007FFF84A8C3FC RtlUserThreadStart+44

C:\Program Files\Herd>cd "C:\Program Files\Herd"

### Relevant log output

```shell

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.