Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-17297

Alignment trap in QFontMetrics::xHeight() on ARM

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 4.7.1
    • GUI: Font handling
    • None
    • Embedded Linux 2.6.22, PXA270 cpu.

    Description

      I configured the kernel, so that it informed about unaligned access:

      # echo 3 > /proc/cpu/alignment
      

      Details here: http://lecs.cs.ucla.edu/wiki/index.php/XScale_alignment

      This program demonstrates the problem

      #include <QApplication>
      #include <QFontMetrics>
      #include <stdio.h>
      
      int main(int argc, char **argv)
      {
      	QApplication app(argc, argv);
      	QFontMetrics fm(app.font());
      	fprintf(stdout, "%d\n", fm.xHeight());
      	return app.exec();
      }
      
      # /xbin/tmp -qws
      [   84.340000] Alignment trap: tmp (252) PC=0x40a4d678 Instr=0xe5843000 Address=0x0002b501 FSR 0x813
      16
      

      Also, I use "Terminus" font(bdf).

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              laborer Sergey Gusarov
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes