Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Packet Capture Causes GUI Error?

    General pfSense Questions
    2
    6
    687
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      guardian Rebel Alliance
      last edited by

      I decided to leave a packet capture running for a few days, and when I hit stop I got the following:

      Crash report begins.  Anonymous machine information:
      
      amd64
      11.2-RELEASE-p4
      FreeBSD 11.2-RELEASE-p4 #2 b00c407ba5d(RELENG_2_4_4): Mon Nov 26 11:41:48 EST 2018     root@buildbot2.nyi.netgate.com:/build/ce-crossbuild-244/obj/amd64/ZfGpH5cd/build/ce-crossbuild-244/pfSense/tmp/FreeBSD-src/sys/pfSense
      
      Crash report details:
      
      PHP Errors:
      [27-Dec-2018 19:35:43 America/Toronto] PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 532692992 bytes) in /usr/local/www/diag_packet_capture.php on line 541
      [27-Dec-2018 19:35:43 America/Toronto] PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 532676888 bytes) in Unknown on line 0
      
      
      
      No FreeBSD crash data found.
      

      I was able to download the packet capture by clicking download, but I would think this initial error condition should be handled a bit more gracefully??

      I thought I should post this for what it is worth.

      If you find my post useful, please give it a thumbs up!
      pfSense 2.7.2-RELEASE

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        What size was the actual capture file?

        Steve

        G 1 Reply Last reply Reply Quote 0
        • G
          guardian Rebel Alliance @stephenw10
          last edited by

          @stephenw10 said in Packet Capture Causes GUI Error?:

          What size was the actual capture file?

          Steve
          Hi @stephenw10 - 6.1 GB (6,056,675,573 bytes). After the error, I was able to click the download button and download the file.

          If you find my post useful, please give it a thumbs up!
          pfSense 2.7.2-RELEASE

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            Hmm, yeah that would do it!

            I guess there could be some checking to prevent it trying to display large pcaps. Maybe default the detail level to 'None' or something similar.

            Have you opened that as a feature request or bug report on redmine? I don't see anything at a quick look.

            Steve

            1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              I created a bug to track it: https://redmine.pfsense.org/issues/9239

              G 1 Reply Last reply Reply Quote 1
              • G
                guardian Rebel Alliance @stephenw10
                last edited by guardian

                @stephenw10 said in Packet Capture Causes GUI Error?:

                I created a bug to track it: https://redmine.pfsense.org/issues/9239

                Thanks for doing that-Great job of writing up!
                (Not sure if its worth suggesting, but another possible solution might be to cut the output at some predefined number rather than none. Might also be easier to code as it wouldn't be necessary to create a "None" option. If you think the idea has merit please add to you report.)

                Thanks again for creating the report!

                If you find my post useful, please give it a thumbs up!
                pfSense 2.7.2-RELEASE

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.