-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[OomBootstrapper] BindingResolutionException: Target class [bugsnag] does not exist. #527
Comments
On second thought, here is some more information. The issue occurs when running my PHPUnit test suite. When the |
I have found a solution. The memory leak seems to stem from class OomBootstrapper
{
protected static bool $isRegistered = false;
public function bootstrap()
{
if (self::$isRegistered) {
return;
}
$this->reservedMemory = str_repeat(' ', 1024 * 256);
register_shutdown_function(function () use ($app) {
// ...
});
self::$isRegistered = true;
}
} |
Hi @wimski, Thanks for raising. Glad you've found a solution for now. We're going to look into this to see what we can do to fix on our side. |
any updates on this issue? |
This is the workaround as an extended class which I use in my projects. <?php
declare(strict_types=1);
namespace App\Extensions\Bugsnag\BugsnagLaravel;
use Bugsnag\BugsnagLaravel\OomBootstrapper as BugsnagOomBootstrapper;
/**
* @see https://github.com/bugsnag/bugsnag-laravel/issues/527#issuecomment-1463844176
*/
class OomBootstrapper extends BugsnagOomBootstrapper
{
protected static bool $isRegistered = false;
public function bootstrap(): void
{
if (self::$isRegistered) {
return;
}
parent::bootstrap();
self::$isRegistered = true;
}
} |
I'm trying to use the
OomBootstrapper
, but I get aBindingResolutionException
.Environment
2.26
3.29.0
8.2.3
2.5.4
10.0.0
Steps
app.config
.OomBootstrapper
in both kernel classes as per the documentation.Stack trace
Details
The text was updated successfully, but these errors were encountered: