Skip to content

Catching memory exhaustion #272

@elieux

Description

@elieux
  • bug report? maybe
  • feature request? no
  • version: 2.4.8

Steps to Reproduce

\Tracy\Debugger::enable(\Tracy\Debugger::DEVELOPMENT); while (true) $a[] = str_repeat('x', 1024);

Shows the default PHP error output:

Fatal error: Allowed memory size of [...] bytes exhausted (tried to allocate 1025 bytes) in [...] on line [...] Call Stack: [...] 

Even worse, it shows nothing with ini_set('display_errors', false).

Description

The code that's supposed to make Tracy work even in case of reaching the memory limit doesn't seem to help when the limit is reached by a small allocation.

Is there anything we can do to fix this and let Tracy show the SoD even in this case?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions