SIGSEGV when testing Livewire component using Filament custom components

Hi everyone,

I’m running into a strange crash when testing (Pest) a Livewire component that uses Filament custom components.
Here’s a minimal example:

it('can render the platforms page', function () { Livewire::test(ShowPlatforms::class) ->assertStatus(200); });

When I run this test, I get:
Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)

If I test a normal route without Filament, it works fine:

it('can render the contribution table component', function () { $user = User::factory()->create(); $project = Project::factory()->create(['user_id' => $user->id]); $deal = Deal::factory()->create(['user_id' => $user->id, 'project_id' => $project->id]); $project->update(['average_price' => $deal->price]); Livewire::actingAs($user) ->test(ContributionTable::class, ['project' => $project]) ->assertStatus(200); });

So, If I test a Livewire component without any Filament components, it also works fine — so it seems to crash only when the Livewire component contains Filament parts (e.g., custom form fields, custom table columns).

Setup:

Laravel: 12 (starter kit with Livewire)

Filament: 4.0.0 beta-23

Livewire: 3.6.4

PHP version: [your PHP version here]

Has anyone seen this before or found a workaround?
Was this page helpful?