cairo.Error: input string not valid UTF-8

Bug #911070 reported by vick
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pybootchartgui (Ubuntu)
New
Undecided
Unassigned

Bug Description

I am working on bootchart.png.

When I use command "bootchart bootchart.tgz", it shows up this error:

parsing 'bootchart.tgz'
parsing 'header'
parsing 'proc_stat.log'
parsing 'proc_ps.log'
warning: no parent for pid '2' with ppid '0'
parsing 'proc_diskstats.log'
parsing 'kernel_pacct'
merged 0 logger processes
pruned 41 process, 0 exploders, 1 threads, and 1 runs
False
Traceback (most recent call last):
  File "/usr/bin/bootchart", line 23, in <module>
    sys.exit(main())
  File "/usr/lib/pymodules/python2.7/pybootchartgui/main.py", line 137, in main
    render()
  File "/usr/lib/pymodules/python2.7/pybootchartgui/main.py", line 128, in render
    batch.render(writer, res, options, filename)
  File "/usr/lib/pymodules/python2.7/pybootchartgui/batch.py", line 41, in render
    draw.render(ctx, options, *res)
  File "/usr/lib/pymodules/python2.7/pybootchartgui/draw.py", line 256, in render
    curr_y = draw_header(ctx, headers, off_x, duration)
  File "/usr/lib/pymodules/python2.7/pybootchartgui/draw.py", line 341, in draw_header
    draw_text(ctx, txt, TEXT_COLOR, off_x, header_y)
  File "/usr/lib/pymodules/python2.7/pybootchartgui/draw.py", line 111, in draw_text
    ctx.show_text(text)
cairo.Error: input string not valid UTF-8

Thanks for help.

Tags: patch
Revision history for this message
Anders Norgaard (anders-norgaard) wrote :

Hi Vick,

Interesting. I you attach your "bootchart.tgz" then I'll have a look.

Best,
Anders

Revision history for this message
vick (cvcv62075) wrote :
Revision history for this message
Riccardo Magliocchetti (riccardo) wrote :

vick, do you have a reference to what the nvs parameter is supposed to contain?

Revision history for this message
vick (cvcv62075) wrote :

Hi Riccardo,

Which file have nvs parameter?

Thanks.

Revision history for this message
Riccardo Magliocchetti (riccardo) wrote :

Vick, it's a parameter you are passing to your kernel. If you open the tarball you can see it in the file named header.

Revision history for this message
vick (cvcv62075) wrote :

Hi Riccardo,

I am working on embedded system, so I can only see the nvs parameter by tarball ?

Revision history for this message
Riccardo Magliocchetti (riccardo) wrote :

It's the stuff you are presumably passing to the kernel from the bootloader. cat /proc/cmdline from the tegra board will show you what i'm talking about.

Revision history for this message
vick (cvcv62075) wrote : Re: [Bug 911070] Re: cairo.Error: input string not valid UTF-8

It shows up
nvs=����������������������������������������������������������������������������;��������������������������������������������������������������������;��������������������������������������������;������������������������

2012/1/4 Riccardo Magliocchetti <email address hidden>

> It's the stuff you are presumably passing to the kernel from the
> bootloader. cat /proc/cmdline from the tegra board will show you what
> i'm talking about.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/911070
>
> Title:
> cairo.Error: input string not valid UTF-8
>
> Status in “pybootchartgui” package in Ubuntu:
> New
>
> Bug description:
> I am working on bootchart.png.
>
> When I use command "bootchart bootchart.tgz", it shows up this error:
>
> parsing 'bootchart.tgz'
> parsing 'header'
> parsing 'proc_stat.log'
> parsing 'proc_ps.log'
> warning: no parent for pid '2' with ppid '0'
> parsing 'proc_diskstats.log'
> parsing 'kernel_pacct'
> merged 0 logger processes
> pruned 41 process, 0 exploders, 1 threads, and 1 runs
> False
> Traceback (most recent call last):
> File "/usr/bin/bootchart", line 23, in <module>
> sys.exit(main())
> File "/usr/lib/pymodules/python2.7/pybootchartgui/main.py", line 137,
> in main
> render()
> File "/usr/lib/pymodules/python2.7/pybootchartgui/main.py", line 128,
> in render
> batch.render(writer, res, options, filename)
> File "/usr/lib/pymodules/python2.7/pybootchartgui/batch.py", line 41,
> in render
> draw.render(ctx, options, *res)
> File "/usr/lib/pymodules/python2.7/pybootchartgui/draw.py", line 256,
> in render
> curr_y = draw_header(ctx, headers, off_x, duration)
> File "/usr/lib/pymodules/python2.7/pybootchartgui/draw.py", line 341,
> in draw_header
> draw_text(ctx, txt, TEXT_COLOR, off_x, header_y)
> File "/usr/lib/pymodules/python2.7/pybootchartgui/draw.py", line 111,
> in draw_text
> ctx.show_text(text)
> cairo.Error: input string not valid UTF-8
>
> Thanks for help.
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/pybootchartgui/+bug/911070/+subscriptions
>

Revision history for this message
Riccardo Magliocchetti (riccardo) wrote :

Anders, i think i'm ending up with something like this in bootchart2, what do you think?

Revision history for this message
Anders Norgaard (anders-norgaard) wrote :

Looks sensible.

Best,
Anders

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "filter-chars.diff" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
vick (cvcv62075) wrote : Re: [Bug 911070] Re: cairo.Error: input string not valid UTF-8

Thank you Riccardo, I will try this patch.

2012/1/9 Ubuntu Foundation's Bug Bot <email address hidden>

> The attachment "filter-chars.diff" of this bug report has been
> identified as being a patch. The ubuntu-reviewers team has been
> subscribed to the bug report so that they can review the patch. In the
> event that this is in fact not a patch you can resolve this situation by
> removing the tag 'patch' from the bug report and editing the attachment
> so that it is not flagged as a patch. Additionally, if you are member
> of the ubuntu-reviewers team please also unsubscribe the team from this
> bug report.
>
> [This is an automated message performed by a Launchpad user owned by
> Brian Murray. Please contact him regarding any issues with the action
> taken in this bug report.]
>
> ** Tags added: patch
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/911070
>
> Title:
> cairo.Error: input string not valid UTF-8
>
> Status in “pybootchartgui” package in Ubuntu:
> New
>
> Bug description:
> I am working on bootchart.png.
>
> When I use command "bootchart bootchart.tgz", it shows up this error:
>
> parsing 'bootchart.tgz'
> parsing 'header'
> parsing 'proc_stat.log'
> parsing 'proc_ps.log'
> warning: no parent for pid '2' with ppid '0'
> parsing 'proc_diskstats.log'
> parsing 'kernel_pacct'
> merged 0 logger processes
> pruned 41 process, 0 exploders, 1 threads, and 1 runs
> False
> Traceback (most recent call last):
> File "/usr/bin/bootchart", line 23, in <module>
> sys.exit(main())
> File "/usr/lib/pymodules/python2.7/pybootchartgui/main.py", line 137,
> in main
> render()
> File "/usr/lib/pymodules/python2.7/pybootchartgui/main.py", line 128,
> in render
> batch.render(writer, res, options, filename)
> File "/usr/lib/pymodules/python2.7/pybootchartgui/batch.py", line 41,
> in render
> draw.render(ctx, options, *res)
> File "/usr/lib/pymodules/python2.7/pybootchartgui/draw.py", line 256,
> in render
> curr_y = draw_header(ctx, headers, off_x, duration)
> File "/usr/lib/pymodules/python2.7/pybootchartgui/draw.py", line 341,
> in draw_header
> draw_text(ctx, txt, TEXT_COLOR, off_x, header_y)
> File "/usr/lib/pymodules/python2.7/pybootchartgui/draw.py", line 111,
> in draw_text
> ctx.show_text(text)
> cairo.Error: input string not valid UTF-8
>
> Thanks for help.
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/pybootchartgui/+bug/911070/+subscriptions
>

Revision history for this message
vick (cvcv62075) wrote :

Hi Riccardo,

My source code didn't match your patch, how can I use this patch ?

Now, I still have this bug, please give me some help!

Thanks!

Revision history for this message
Riccardo Magliocchetti (riccardo) wrote :

Vick, somebody from ubuntu should change the patch to apply or fix it in another way.

Revision history for this message
vick (cvcv62075) wrote :

My ubuntu version is 11.04.

So the reason is caused by ubuntu system ? not the source(bootchart.tgz)
created by the embedded system ?

2012/2/11 Riccardo Magliocchetti <email address hidden>

> Vick, somebody from ubuntu should change the patch to apply or fix it in
> another way.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/911070
>
> Title:
> cairo.Error: input string not valid UTF-8
>
> Status in “pybootchartgui” package in Ubuntu:
> New
>
> Bug description:
> I am working on bootchart.png.
>
> When I use command "bootchart bootchart.tgz", it shows up this error:
>
> parsing 'bootchart.tgz'
> parsing 'header'
> parsing 'proc_stat.log'
> parsing 'proc_ps.log'
> warning: no parent for pid '2' with ppid '0'
> parsing 'proc_diskstats.log'
> parsing 'kernel_pacct'
> merged 0 logger processes
> pruned 41 process, 0 exploders, 1 threads, and 1 runs
> False
> Traceback (most recent call last):
> File "/usr/bin/bootchart", line 23, in <module>
> sys.exit(main())
> File "/usr/lib/pymodules/python2.7/pybootchartgui/main.py", line 137,
> in main
> render()
> File "/usr/lib/pymodules/python2.7/pybootchartgui/main.py", line 128,
> in render
> batch.render(writer, res, options, filename)
> File "/usr/lib/pymodules/python2.7/pybootchartgui/batch.py", line 41,
> in render
> draw.render(ctx, options, *res)
> File "/usr/lib/pymodules/python2.7/pybootchartgui/draw.py", line 256,
> in render
> curr_y = draw_header(ctx, headers, off_x, duration)
> File "/usr/lib/pymodules/python2.7/pybootchartgui/draw.py", line 341,
> in draw_header
> draw_text(ctx, txt, TEXT_COLOR, off_x, header_y)
> File "/usr/lib/pymodules/python2.7/pybootchartgui/draw.py", line 111,
> in draw_text
> ctx.show_text(text)
> cairo.Error: input string not valid UTF-8
>
> Thanks for help.
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/pybootchartgui/+bug/911070/+subscriptions
>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.