ctrlaltdelme's avatar

The process has been signaled with signal "4" when running tests

When running tests for my Inertia + Vue app, I get the error in the title. Logs here:

[2025-11-26 00:59:39] local.ERROR: The process has been signaled with signal "4". {"exception":"[object] (Symfony\\Component\\Process\\Exception\\ProcessSignaledException(code: 0): The process has been signaled with signal \"4\". at /home/ubuntuserver/PhpstormProjects/shelvdgg/vendor/symfony/process/Process.php:461)
[stacktrace]
#0 /home/ubuntuserver/PhpstormProjects/shelvdgg/vendor/symfony/process/Process.php(251): Symfony\\Component\\Process\\Process->wait()
#1 /home/ubuntuserver/PhpstormProjects/shelvdgg/vendor/nunomaduro/collision/src/Adapters/Laravel/Commands/TestCommand.php(119): Symfony\\Component\\Process\\Process->run(Object(Closure))
#2 /home/ubuntuserver/PhpstormProjects/shelvdgg/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): NunoMaduro\\Collision\\Adapters\\Laravel\\Commands\\TestCommand->handle()
#3 /home/ubuntuserver/PhpstormProjects/shelvdgg/vendor/laravel/framework/src/Illuminate/Container/Util.php(43): Illuminate\\Container\\BoundMethod::{closure:Illuminate\\Container\\BoundMethod::call():35}()
#4 /home/ubuntuserver/PhpstormProjects/shelvdgg/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(96): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))
#5 /home/ubuntuserver/PhpstormProjects/shelvdgg/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))
#6 /home/ubuntuserver/PhpstormProjects/shelvdgg/vendor/laravel/framework/src/Illuminate/Container/Container.php(836): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)
#7 /home/ubuntuserver/PhpstormProjects/shelvdgg/vendor/laravel/framework/src/Illuminate/Console/Command.php(211): Illuminate\\Container\\Container->call(Array)
#8 /home/ubuntuserver/PhpstormProjects/shelvdgg/vendor/symfony/console/Command/Command.php(318): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#9 /home/ubuntuserver/PhpstormProjects/shelvdgg/vendor/laravel/framework/src/Illuminate/Console/Command.php(180): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#10 /home/ubuntuserver/PhpstormProjects/shelvdgg/vendor/symfony/console/Application.php(1073): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#11 /home/ubuntuserver/PhpstormProjects/shelvdgg/vendor/symfony/console/Application.php(356): Symfony\\Component\\Console\\Application->doRunCommand(Object(NunoMaduro\\Collision\\Adapters\\Laravel\\Commands\\TestCommand), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#12 /home/ubuntuserver/PhpstormProjects/shelvdgg/vendor/symfony/console/Application.php(195): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#13 /home/ubuntuserver/PhpstormProjects/shelvdgg/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(197): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#14 /home/ubuntuserver/PhpstormProjects/shelvdgg/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1235): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#15 /home/ubuntuserver/PhpstormProjects/shelvdgg/artisan(16): Illuminate\\Foundation\\Application->handleCommand(Object(Symfony\\Component\\Console\\Input\\ArgvInput))
#16 {main}
"} 
0 likes
3 replies
jlrdw's avatar

For one thing, make sure you have a correct PHP version. Also clear all cache.

ctrlaltdelme's avatar

"Correct" PHP version in what way? What does the PHP version im using need to match?

For clearing cache I'm assuming its php artisan optimize:clear php artisan cache:clear php artisan config:clear

jlrdw's avatar

That was just one thing to check, correct PHP version for that version of symfony components. Other things to check is enough memory, check dependencies, etc.

Please or to participate in this conversation.