Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Tk fonts crash on Fedora

by wulvrine (Friar)
on Nov 29, 2007 at 11:39 UTC ( [id://653809]=note: print w/replies, xml ) Need Help??


in reply to Re: Tk fonts crash on Fedora
in thread Tk fonts crash on Fedora

zentara
Thanks for pointing that blunder out!
I've changed it to both "fontCreate('myFont', @fontopts)" and to just using "-font=>$font"
and unfortunately both still show the seg fault.
Any other ideas??

I'm going to update the post with that fix

s&&VALKYRIE &&& print $_^q|!4 =+;' *|

Replies are listed 'Best First'.
Re^3: Tk fonts crash on Fedora
by zentara (Archbishop) on Nov 29, 2007 at 14:24 UTC
    Any other ideas??

    I googled for "Fedora fonts" and apparently there are others who have problems too. Maybe try changing the font to something else, like Helvetica or Courier, possibly Times has a problem in your Fedora version?


    I'm not really a human, but I play one on earth. Cogito ergo sum a bum
      zentara
      I actually did peek on google and saw that. I tried Helvetica, Courier etc and same issue.
      I'm at a loss as to what to try next.

      s&&VALKYRIE &&& print $_^q|!4 =+;' *|
        Have you run the script thru strace, and see what happens when it crashes? Even better, run it thru a debugging-enabled Tk, and see what the gnu debugger outputs. That is what Slaven would need if you file a bug report.
        > From an old post by Slaven (annotated by me) Any help would be appreciated... A backtrace would be helpful: create Tk with debugging support (use perl Makefile.PL OPTIMIZE=-g #make a debugging Tk ), make sure that core dumps are written (e.g. by issuing ulimit -c unlimited #ensure you can get core dumps ), and for the backtrace you should try: #gdb /path/to/perl /path to core/ #start gdb telling it to run perl and #where the core dump should go gdb /usr/bin/perl ./core (gdb prompt) run ./my_tk_program #run your tk program bt # do the backtrace thru the core dump #Regards,Slaven
        If done correctly, it will tell you the exact error and line of code where it was caused in the Tk source code.

        If I were you, I would first try to upgrade to the latest Tk-804-027_500, in which many bugfixes have been applied. I've had to patch my vanilla Tk version, because it segfaulted when run with Gtk2 programs...... that patch is included in the _500 release.


        I'm not really a human, but I play one on earth. Cogito ergo sum a bum

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://653809]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-04-19 17:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found