Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-78558

QtWebEngine max_old_space_size flag does not work with sandboxing enabled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.9.5
    • WebEngine
    • None
    • Ubuntu 18.04
    • Linux/X11

    Description

      I have a browser application that needs to load a web page which allocates a large amount of memory (>2GB).  The page will crash unless I run it with flags "--no-sandbox --js-flags=--max_old_space_size=4096".  If I use just " --js-flags=--max_old_space_size=4096", the crash still occurs.

      Chrome browser 77.0.3865.75 is able to render the page with just the "--js-flags=--max_old_space_size=4096" flag used.

      Crash output:

      $./mybrowser -js-flags=-max_old_space_size=4096

      <--- Last few GCs --->

      [1:0x558bead335f0] 9873 ms: Scavenge 1827.1 (1880.5) -> 1825.9 (1888.0) MB, 22.6 / 0.0 ms allocation failure
      [1:0x558bead335f0] 9907 ms: Scavenge 1834.4 (1888.0) -> 1833.2 (1895.0) MB, 22.7 / 0.0 ms allocation failure
      [1:0x558bead335f0] 9940 ms: Scavenge 1841.7 (1895.5) -> 1840.5 (1902.5) MB, 22.4 / 0.0 ms allocation failure
      [1:0x558bead335f0] 10185 ms: Scavenge 1849.0 (1902.5) -> 1847.8 (1907.0) MB, 234.8 / 0.0 ms allocation failure

      <--- JS stacktrace --->
      Cannot get stack trace in GC.
      Received signal 4 ILL_ILLOPN 7fa385e14215
      #0 0x7fa38439af42 <unknown>
      #1 0x7fa3824a9f20 <unknown>
      #2 0x7fa385e14215 <unknown>
      #3 0x7fa384feb2ee <unknown>
      #4 0x7fa384feb600 <unknown>
      #5 0x7fa3852257bf <unknown>
      #6 0x7fa38522be1e <unknown>
      #7 0x7fa385237e09 <unknown>
      #8 0x7fa385209cac <unknown>
      #9 0x7fa385210f38 <unknown>
      #10 0x7fa3852116dc <unknown>
      #11 0x7fa3851cc942 <unknown>
      #12 0x7fa3851cd6ba <unknown>
      #13 0x7fa385771476 <unknown>
      #14 0x047f9a6043a7 <unknown>
      r8: 0000000000000072 r9: 00007fa360000870 r10: 0000000000000160 r11: 0000000000000003
      r12: 00007fa3881e3d92 r13: 00007ffc5910e020 r14: 0000558bead33610 r15: 00007ffc5910e840
      di: 0000558bead38e40 si: 00007fa3851c8110 bp: 0000558bead335f0 bx: 0000000000000000
      dx: 0000000001000000 ax: 000000000000077a cx: 0000000000000000 sp: 00007ffc5910ccf0
      ip: 00007fa385e14215 efl: 0000000000010203 cgf: 002b000000000033 erf: 0000000000000000
      trp: 0000000000000006 msk: 0000000000000000 cr2: 0000000000000000
      [end of stack trace]

       

       

      Attachments

        1. 1404_BrowserMainWindow.png
          1404_BrowserMainWindow.png
          283 kB
        2. 1404_demobowser_max_old_space_size.png
          1404_demobowser_max_old_space_size.png
          498 kB
        3. 1404_demobrowser_crash1.png
          1404_demobrowser_crash1.png
          134 kB
        4. 1404_demobrowser_crash2.png
          1404_demobrowser_crash2.png
          126 kB
        5. 1404_demobrowser_run_no_flags.png
          1404_demobrowser_run_no_flags.png
          21 kB
        6. 1804_5131_crash.png
          1804_5131_crash.png
          199 kB
        7. 1804_5131_with_max_old_space_size.png
          1804_5131_with_max_old_space_size.png
          259 kB
        8. 1804_598_befor_crash_memory_increasing.png
          1804_598_befor_crash_memory_increasing.png
          189 kB
        9. 1804_598_crash.png
          1804_598_crash.png
          188 kB
        10. 1804_598_flag_not_sticking_1.png
          1804_598_flag_not_sticking_1.png
          230 kB
        11. 1804_598_flag_not_sticking_2.png
          1804_598_flag_not_sticking_2.png
          227 kB
        12. 1804_598_ldd.png
          1804_598_ldd.png
          353 kB
        13. 1804_598_output.png
          1804_598_output.png
          188 kB
        14. 1804_598_RunSettings.png
          1804_598_RunSettings.png
          171 kB
        15. withhelp.png
          withhelp.png
          266 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt_webengine_team Qt WebEngine Team
            mschan01 Michael Schanne
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes