Tristan,

I've put in a change into our CVS so that, in the case of graphs larger 
than the maximum bitmaps,
it will warn and scale the rendering down to fit, instead of (trying to) 
error out.

Your graph now produces:

    $  dot -Tpng kprof-output-graph.dot >out.png
    dot: graph is too large for bitmap. Scaling by 0.46544 to fit

I can provide patches if you need them?

John



John Ellson wrote:
> Tristan,
>
> Basically the graph is too large for bitmap outputs.
>
> We've added some checks recently, so I get:
>
>
>      $  dot -Tpng kprof-output-graph.dot >out.png  
>     dot: width (70400 >= 32768) is too large.
>     Segmentation fault
>
>
> (Mmm, we should exit cleanly after reporting the problem.  I'll fix that...)
>
>
> You could use something like:  -Gsize="6,6"
> to get fixed size images.
>
>
> John
>
>
>
>
> Tristan Schmelcher wrote:
>   
>> ** Attachment added: "kprof-output-graph.dot"
>>    http://launchpadlibrarian.net/15639102/kprof-output-graph.dot
>>
>> ** Description changed:
>>
>>   Binary package hint: graphviz
>>   
>>   I have a Dell XPS M1710 laptop running pure up-to-date Hardy.  I tried
>>   to use dot from graphviz to visualize a graph produced by kprof for a
>>   program of mine, but I have found that it is unable to handle this
>>   particular graph file properly. The problem behaves differently with
>>   different output plugins. SVG works fine, but all other output types
>> - that I have tried have either caused dot to rapidly consume all
>> - available memory (jpg, gif) or have produced files that cause that in
>> - whatever program I try to view them with (ps, png). I have 2 GB of RAM,
>> - and yet this bug chews through it in a matter of seconds.
>> + that I have tried have either caused dot to run forever and rapidly
>> + consume all available memory (jpg, gif) or have produced files that
>> + cause that in whatever program I try to view them with (ps, png). I have
>> + 2 GB of RAM, and yet this bug chews through it in a matter of seconds.
>>   
>>   The offending dot file is attached.
>>   
>>   $ lsb_release -rd
>>   Description:       Ubuntu 8.04
>>   Release:   8.04
>>   $ apt-cache policy graphviz
>>   graphviz:
>>     Installed: 2.16-3ubuntu2
>>     Candidate: 2.16-3ubuntu2
>>     Version table:
>>    *** 2.16-3ubuntu2 0
>>           500 http://archive.ubuntu.com hardy/main Packages
>>           100 /var/lib/dpkg/status
>>
>> ** Summary changed:
>>
>> - dot runs forever consuming all available memory
>> + dot/kprof runs forever consuming all available memory
>>
>>
>>     
>
>

-- 
dot/kprof runs forever consuming all available memory
https://bugs.launchpad.net/bugs/243442
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to