Git Product home page Git Product logo

Comments (9)

martijnthe avatar martijnthe commented on May 23, 2024 9

I came to tune after hitting this limitation of snakeviz -- thanks for filing that issue btw!

When loading a large-ish .prof file (2.9MiB), the browser tab crashes (out of memory?). I think the "Broken Pipe" is a consequence of the tab crashing, not the cause of it. FWIW, I tried it both with a recent Brave and Firefox. Same thing in both browsers.

A smaller .prof file (1MiB) loads OK, although it seems to bog down the browser quite a bit.

Tuna: version 0.5.11
Brave: Version 1.39.122 Chromium: 102.0.5005.115 (Official Build)
Python 3.8.12

from tuna.

gjohnston9 avatar gjohnston9 commented on May 23, 2024 1

Same here :( My .prof file is 1.9M, not sure if this could be caused by too much data

from tuna.

nschloe avatar nschloe commented on May 23, 2024

No idea.

from tuna.

zodman avatar zodman commented on May 23, 2024

I have a fat project in django what take long time to start ... i generate the profile and tuna cannot open...

http://transfer.sh/1DKbkv6/cprofile.out

I generate the HTML files and the output was 2GB of HTML the unique tool it could open is cprofilev

from tuna.

gabrielfougeron avatar gabrielfougeron commented on May 23, 2024

Hi. FYI, i got the same error as @anklebreaker running on wsl2 Windows11

from tuna.

notAlex2 avatar notAlex2 commented on May 23, 2024

I'm getting a similar error while using tuna 0.5.9 + python3.8 + Chrome 93.0.4577.63 + Ubuntu 18.04:

~$tuna out.cprofile 
Starting httpd on port 8000
127.0.0.1 - - [22/Oct/2021 11:40:29] "GET / HTTP/1.1" 200 -
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 53870)
Traceback (most recent call last):
  File "/usr/lib/python3.8/socketserver.py", line 316, in _handle_request_noblock
    self.process_request(request, client_address)
  File "/usr/lib/python3.8/socketserver.py", line 347, in process_request
    self.finish_request(request, client_address)
  File "/usr/lib/python3.8/socketserver.py", line 360, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python3.8/socketserver.py", line 747, in __init__
    self.handle()
  File "/usr/lib/python3.8/http/server.py", line 427, in handle
    self.handle_one_request()
  File "/usr/lib/python3.8/http/server.py", line 415, in handle_one_request
    method()
  File "/home/apeplowski/envs/py38_tf2_env/lib/python3.8/site-packages/tuna/main.py", line 53, in do_GET
    self.wfile.write(render(data, prof_filename).encode())
  File "/usr/lib/python3.8/socketserver.py", line 826, in write
    self._sock.sendall(b)
BrokenPipeError: [Errno 32] Broken pipe
----------------------------------------
127.0.0.1 - - [22/Oct/2021 11:42:03] "GET /static/tuna.css HTTP/1.1" 200 -
127.0.0.1 - - [22/Oct/2021 11:42:03] "GET /static/bootstrap.min.css HTTP/1.1" 200 -
127.0.0.1 - - [22/Oct/2021 11:42:03] "GET /static/favicon256.png HTTP/1.1" 200 -

from tuna.

vschoener avatar vschoener commented on May 23, 2024

Same error on my side. 2.9 MB for the file. Seems maybe too complicated to handle using a request?

from tuna.

gubenkoved avatar gubenkoved commented on May 23, 2024

Unfortunately unusable with my sample on 2.3 MiB of traces with the same symptom -- browser tab crashing and breaking the connection. It is able to render another sample with 700 KiB of data though.

Tuna: 0.5.11
Python: 3.10.6
OS: macOS 13.6.1

from tuna.

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.