Coder Social home page Coder Social logo

Comments (13)

barryvdh avatar barryvdh commented on May 20, 2024

So you upgraded your entire app to 4.1 and it stopped working, or just updated this package?

Can you disable all of the datacollectors (publish the config and set all to false) and see of the errors persists? If not, try enabling one by one.
Does this problem also occur on older versions of the debugbar (required 1.0 for instance, insteaf of 1.*)

from laravel-debugbar.

barryvdh avatar barryvdh commented on May 20, 2024

And when you create a new 4.1 projects with just this package, does it also occur?

from laravel-debugbar.

GrahamCampbell avatar GrahamCampbell commented on May 20, 2024

In my experience, this usually happens when we try to create an instance of something with an instance of itself in the constructor.

from laravel-debugbar.

oliverkaiser avatar oliverkaiser commented on May 20, 2024

upgrade my app to 4.1

will try out disabling collectors, an older version and fresh installation later today or tomorrow.

from laravel-debugbar.

jaketoolson avatar jaketoolson commented on May 20, 2024

I was just having a similar issue actually! White screen, no errors. I was triggering a simple filter with a redirect:

Route::filter('admin_auth', function()
{
    if ( ! Sentry::check())
    {
        // if not logged in, redirect to login
        return Redirect::to('users/login');
    }
});

The redirect failed regardless of what I tried to add to the redirect. So I looked at the log:

[2013-12-26 13:59:42] log.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Allowed memory size of 134217728 bytes exhausted (tried to allocate 41555547 bytes)' in /vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php:234
Stack trace:
#0 [internal function]: Illuminate\Exception\Handler->handleShutdown()
#1 {main} [] []

When looking for an issue, I happened upon a different and separate github issue (https://github.com/juy/profiler/issues/21) that referenced "profiler" (not debugbar). Again, this has no connection to debugbar but for testing I very quickly disabled the debugbar and I no longer incur a whitescreen and all is well, so it's a very curious problem.

from laravel-debugbar.

barryvdh avatar barryvdh commented on May 20, 2024

Could you also try and disable the data collectors (through config) and enable them ony by one and see when the error occurs? (and possibly older version of the debugbar) Will try to look into it tomorrow but have no idea what is causing this yet.

from laravel-debugbar.

oliverkaiser avatar oliverkaiser commented on May 20, 2024

ok sorry, it seems like it has to do with my own "mailer extension". (deactivating the mail collector helped, also changing back to the native laravel mail functionality ...)

from laravel-debugbar.

barryvdh avatar barryvdh commented on May 20, 2024

Okay, if you find out what was causing it exactly, let me know so I can perhaps create a patch.

@jaketoolson your error is probably something related to stacking the data on a redirect, can you open a new issue, when you find the collector that kills it?

from laravel-debugbar.

foysalit avatar foysalit commented on May 20, 2024

hi, I'm having the same issue as @jaketoolson and here's the log entry -

[2014-01-10 23:16:57] local.ERROR: exception 'DebugBar\DebugBarException' with message 'Session must be started before using stack data in the debug bar' in /var/www/themiss/vendor/maximebf/debugbar/src/DebugBar/DebugBar.php:413
Stack trace:
#0 /var/www/themiss/vendor/maximebf/debugbar/src/DebugBar/DebugBar.php(304): DebugBar\DebugBar->initStackSession()
#1 /var/www/themiss/vendor/barryvdh/laravel-debugbar/src/Barryvdh/Debugbar/LaravelDebugBar.php(268): DebugBar\DebugBar->stackData()
#2 /var/www/themiss/vendor/barryvdh/laravel-debugbar/src/Barryvdh/Debugbar/Middleware.php(35): Barryvdh\Debugbar\LaravelDebugbar->modifyResponse(Object(Illuminate\Http\Request), Object(Illuminate\Http\RedirectResponse))
#3 /var/www/themiss/vendor/laravel/framework/src/Illuminate/Http/FrameGuard.php(38): Barryvdh\Debugbar\Middleware->handle(Object(Illuminate\Http\Request), 1, true)
#4 /var/www/themiss/vendor/laravel/framework/src/Illuminate/Session/Middleware.php(58): Illuminate\Http\FrameGuard->handle(Object(Illuminate\Http\Request), 1, true)
#5 /var/www/themiss/vendor/laravel/framework/src/Illuminate/Cookie/Queue.php(47): Illuminate\Session\Middleware->handle(Object(Illuminate\Http\Request), 1, true)
#6 /var/www/themiss/vendor/laravel/framework/src/Illuminate/Cookie/Guard.php(51): Illuminate\Cookie\Queue->handle(Object(Illuminate\Http\Request), 1, true)
#7 /var/www/themiss/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Illuminate\Cookie\Guard->handle(Object(Illuminate\Http\Request), 1, true)
#8 /var/www/themiss/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(552): Stack\StackedHttpKernel->handle(Object(Illuminate\Http\Request))
#9 /var/www/themiss/public/index.php(49): Illuminate\Foundation\Application->run()
#10 {main} [] []

I tried disabling the data collectors one by one but nothing seems to fix it. the package works great everywhere and the issue occurs only when I return a "Redirect".

Let me know if I should open a new issue or if you need any other info from my end. Oh, and great job on the package :)

from laravel-debugbar.

foysalit avatar foysalit commented on May 20, 2024

Okay, So I figured out the reason. The error log said it has something to do with the session and in fact I was doing some session work on the before the redirect. Turned out, if I remove the Session::save(); call in my code, the error doesn't occur anymore. Thought this might give you an insight?

from laravel-debugbar.

barryvdh avatar barryvdh commented on May 20, 2024

Okay So this only occurs on Redirects, when saving something in the session? Otherwise it is fine?

from laravel-debugbar.

barryvdh avatar barryvdh commented on May 20, 2024

I pushed a new version to dev-master (see commit above), does that fix it for you?

from laravel-debugbar.

foysalit avatar foysalit commented on May 20, 2024

Yes, it was only happening on redirects after saving the session and with the dev-master seems to be working great 👍
thanks a bunch for the quick fix, you're awesome :)

from laravel-debugbar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.