ygraph crashes when loading a file

Bug #1074476 reported by Tom Dörffel
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
ygraph (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

General information:

1) Operating system: Linux Mint 13 Maya, Release: 13
2) ygraph version:0.16~cvs20090218-1.1

Loading a file into ygraph with the command:

$ ygraph <file1>

allways leads to crashing the program with a segfault:

(ygraph:17237): Gdk-CRITICAL **: IA__gdk_text_height: assertion `font != NULL' failed

(ygraph:17237): Gdk-CRITICAL **: IA__gdk_text_width: assertion `font != NULL' failed
Speicherzugriffsfehler

Normally, the program should show an animated 2D plot of the input data.

Obviously there are two packages missing in the dependency list: xfonts-75dpi xfonts-100dpi
Installing them fixes the problem.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ygraph (Ubuntu):
status: New → Confirmed
Revision history for this message
crysman (crysman) wrote :

Does not work for me even with the fonts packages installed :(

$ ygraph testdata.xl

(ygraph:8628): Gdk-CRITICAL **: IA__gdk_text_height: assertion `font != NULL' failed

(ygraph:8628): Gdk-CRITICAL **: IA__gdk_text_width: assertion `font != NULL' failed
Segmentation fault (core dumped)

$ cat testdata.xl
1 0.5
2 0.765
3 1
4 0.8

What is wrong? :(
#crysman

Revision history for this message
Tom Dörffel (tom-doerffel) wrote :

Sorry, but I can't help you.

I ran your test data and it worked.

You're really sure, you installed the correct packages?

 Tom

Revision history for this message
GeorgeDunlap (dunlapg) wrote :

The attached patch relaxes the font requirements.

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

The attachment "relax-font-requests.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
Joshua Besneatte (besneatte) wrote :

I am on raring and have the same error.

Installing the font packages did not help.

Linux joshua-laptop 3.8.0-27-generic #40-Ubuntu SMP Tue Jul 9 00:17:05 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

joshua@joshua-laptop:~/Documents/pi$ ygraph -v
ygraph 0.16

joshua@joshua-laptop:~/Documents/pi$ ygraph 10.txt

(ygraph:25187): Gdk-CRITICAL **: IA__gdk_text_height: assertion `font != NULL' failed

(ygraph:25187): Gdk-CRITICAL **: IA__gdk_text_width: assertion `font != NULL' failed
Segmentation fault (core dumped)

joshua@joshua-laptop:~/Documents/pi$ tail -n 3 /var/log/syslog
Aug 5 12:18:06 joshua-laptop kernel: [184250.214814] ygraph[25131]: segfault at 4 ip 0000000000408be5 sp 00007fff5654df40 error 4 in ygraph[400000+13000]
Aug 5 12:19:55 joshua-laptop kernel: [184359.362828] ygraph[25148]: segfault at 4 ip 0000000000408be5 sp 00007fff7cdd4350 error 4 in ygraph[400000+13000]
Aug 5 12:20:51 joshua-laptop kernel: [184415.215467] ygraph[25187]: segfault at 4 ip 0000000000408be5 sp 00007fffe40ebb00 error 4 in ygraph[400000+13000]

Revision history for this message
Urname (urname) wrote :

same problem!

and now solved!

1) issue:
installed ygraph, and it crashed upon opening a file. (ygraph 0.16~cvs20090218-1.2ubuntu1)

2) suggested fixes in this thread:
i confirm that installing xfonts-75dpi and xfonts-100dpi DOES NOT resolve the problem. (at least, by themselves they are not sufficient.)

the patch provided above in this thread is also useless, without further instructions on how to use it.

3) solution:
installing the package libtiff-dev DOES resolve the problem in my case.

sudo apt-get install libtiff-dev

hope this helps someone...

Revision history for this message
Patrick Bourg (patrick-bourg) wrote :

The problem still persist for me unfortunately.
I tried everything listed in the above posts, but the error message still persists.
I can confirm that it is most likely tied to Mint, because I installed ygraph on Ubuntu on a separate machine and there, it works as expected!

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.