Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Silence Warnings: QFont::setPixelSize
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  19 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Brandon Hilkert  
View profile  
 More options May 1 2012, 12:49 pm
From: Brandon Hilkert <bran...@meeteor.com>
Date: Tue, 1 May 2012 09:49:04 -0700 (PDT)
Local: Tues, May 1 2012 12:49 pm
Subject: Silence Warnings: QFont::setPixelSize

I'm getting these on the output of my spec request specs...

QFont::setPixelSize: Pixel size <= 0 (0)

Is there a way to silence or resolve this?

Thanks,
Brandon


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joe Ferris  
View profile  
 More options May 1 2012, 12:55 pm
From: Joe Ferris <jfer...@thoughtbot.com>
Date: Tue, 1 May 2012 12:55:42 -0400
Local: Tues, May 1 2012 12:55 pm
Subject: Re: Silence Warnings: QFont::setPixelSize

Hey Brandon,

I don't think anybody's found a way to turn off warnings in general. If you do find a way, please let me know or submit a pull request.

Thanks,
-Joe


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brandon Hilkert  
View profile  
 More options May 1 2012, 1:18 pm
From: Brandon Hilkert <bran...@meeteor.com>
Date: Tue, 1 May 2012 10:18:28 -0700 (PDT)
Local: Tues, May 1 2012 1:18 pm
Subject: Re: Silence Warnings: QFont::setPixelSize

Joe,

Thanks for the speedy reply. No problem. Just wanted to make sure I wasn't
missing something obvious.

best,
Brandon


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Gibbins  
View profile  
 More options May 1 2012, 7:25 pm
From: Mark Gibbins <xiy...@gmail.com>
Date: Tue, 1 May 2012 16:25:53 -0700 (PDT)
Local: Tues, May 1 2012 7:25 pm
Subject: Re: Silence Warnings: QFont::setPixelSize

Have you tried defining 'QT_NO_DEBUG_OUTPUT' and 'QT_NO_WARNING_OUTPUT'?

via
PhantomJS: https://github.com/ariya/phantomjs/blob/775c2ad2aff6849ab024445bad4db...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joe Ferris  
View profile  
 More options May 2 2012, 11:59 am
From: Joe Ferris <jfer...@thoughtbot.com>
Date: Wed, 2 May 2012 11:59:37 -0400
Local: Wed, May 2 2012 11:59 am
Subject: Re: Silence Warnings: QFont::setPixelSize

I haven't tried that yet; good find. Care to put together a pull request?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Gibbins  
View profile  
 More options May 4 2012, 2:50 pm
From: Mark Gibbins <xiy...@gmail.com>
Date: Fri, 4 May 2012 11:50:06 -0700 (PDT)
Local: Fri, May 4 2012 2:50 pm
Subject: Re: Silence Warnings: QFont::setPixelSize

I was going to send one over, but I was in two minds about tests. Would you
need one for this?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joe Ferris  
View profile  
 More options May 4 2012, 4:37 pm
From: Joe Ferris <jfer...@thoughtbot.com>
Date: Fri, 4 May 2012 16:37:05 -0400
Local: Fri, May 4 2012 4:37 pm
Subject: Re: Silence Warnings: QFont::setPixelSize

Having one would be better, and we already have the ability to capture STDOUT from the server, so I don't think it will be too bad as long as it's easy to reproduce the issue in a test.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Gibbins  
View profile  
 More options May 8 2012, 7:27 pm
From: Mark Gibbins <xiy...@gmail.com>
Date: Tue, 8 May 2012 16:27:29 -0700 (PDT)
Local: Tues, May 8 2012 7:27 pm
Subject: Re: Silence Warnings: QFont::setPixelSize

Okay, I've done some more digging around and it seems the debug messages
may come out even if you supply those flags when building capybara-webkit
if you're using the pre-built binary from homebrew, or simply a debug
version. The homebrew formula builds with the configure flag
"-with-debug-and-release", making it pop out the warnings no matter what.
The solution is to use a release build of Qt, or just build it yourself.
With a release build, the flags work and capybara-webkit stays silent. I'm
finishing the test(s) now and should have a pull request for you soon.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joe Ferris  
View profile  
 More options May 9 2012, 9:32 am
From: Joe Ferris <jfer...@thoughtbot.com>
Date: Wed, 9 May 2012 09:32:10 -0400
Local: Wed, May 9 2012 9:32 am
Subject: Re: Silence Warnings: QFont::setPixelSize

Hey Mark,

Thanks again for looking into this. I'm looking forward to the pull request.

-Joe


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Gibbins  
View profile  
 More options May 11 2012, 2:27 pm
From: Mark Gibbins <xiy...@gmail.com>
Date: Fri, 11 May 2012 11:27:18 -0700 (PDT)
Local: Fri, May 11 2012 2:27 pm
Subject: Re: Silence Warnings: QFont::setPixelSize

Hi Joe,

Turns out this is a bit more complex than I laid out above. It seems that even with those flags and a fresh release build of Qt, it still prints the debug messages. It has something to do with the strange (at least to me!) way that the QDebug lib works. Apparently it doesn't really matter what flags you use, it just blurts out these messages. So in the end I had to actually root out the exact message being printed (I discovered it in th QtGui lib as part of text rendering), rewrite all the debug messages in that lib to check for debug flags and then recompile it.

I'm not sure it's much of a problem for Rails developers as it sends the messages to STDOUT, but I was testing a command line client and it was failing the tests. Besides, It's just plain annoying!

If you need more details on the exact edits let me know, as it might fall out of the scope of the project now.

- Mark


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jan Maurits Faber  
View profile  
 More options Jul 12 2012, 8:20 am
From: Jan Maurits Faber <jmfa...@gmail.com>
Date: Thu, 12 Jul 2012 05:20:03 -0700 (PDT)
Local: Thurs, Jul 12 2012 8:20 am
Subject: Re: Silence Warnings: QFont::setPixelSize

I get the same annoying warnings. Since this bug seems to have been in Qt
for years, perhaps there is a way to simply this particular message from
the stderr stream? I haven't been successful in getting rid of them yet.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joe Ferris  
View profile  
 More options Jul 13 2012, 12:53 pm
From: Joe Ferris <jfer...@thoughtbot.com>
Date: Fri, 13 Jul 2012 09:53:13 -0700
Local: Fri, Jul 13 2012 12:53 pm
Subject: Re: Silence Warnings: QFont::setPixelSize

I think you could set up some kind of a filter list using qInstallMsgHandler: http://qt-project.org/doc/qt-4.8/qtglobal.html#qInstallMsgHandler


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Gibbins  
View profile  
 More options Jul 14 2012, 9:11 am
From: Mark Gibbins <xiy...@gmail.com>
Date: Sat, 14 Jul 2012 06:11:32 -0700 (PDT)
Local: Sat, Jul 14 2012 9:11 am
Subject: Re: Silence Warnings: QFont::setPixelSize

FWIW, the actual edits to completely silence the warnings are very minimal (a conditional define in one function). What about just overriding the method that prints this message?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joe Ferris  
View profile  
 More options Jul 18 2012, 9:21 pm
From: Joe Ferris <jfer...@thoughtbot.com>
Date: Wed, 18 Jul 2012 18:21:50 -0700
Local: Wed, Jul 18 2012 9:21 pm
Subject: Re: Silence Warnings: QFont::setPixelSize

Which function are you talking about? Are you suggesting that we override something from Qt?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Amin Ariana  
View profile  
 More options Mar 18, 8:02 pm
From: Amin Ariana <ami...@gmail.com>
Date: Mon, 18 Mar 2013 17:02:02 -0700 (PDT)
Local: Mon, Mar 18 2013 8:02 pm
Subject: Re: Silence Warnings: QFont::setPixelSize

There's an open issue on this on
GitHub: https://github.com/thoughtbot/capybara-webkit/issues/485 ... sadly,
it references this thread without any new information. This is the only
warning I get in my Capbara Webkit integration tests.

QFont::setPixelSize: Pixel size <= 0 (0)

There's a very old QT bug report for this, from 2 years ago as well:
http://qt.gitorious.org/qt/qt/merge_requests/933

Wonder what others did to suppress this warning successfully in Rails /
RSpec?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joe Ferris  
View profile   Translate to Translated (View Original)
 More options Mar 21, 10:21 am
From: Joe Ferris <jfer...@thoughtbot.com>
Date: Thu, 21 Mar 2013 10:21:53 -0400
Local: Thurs, Mar 21 2013 10:21 am
Subject: Re: Silence Warnings: QFont::setPixelSize

You can suppress a number of warnings by installing a version of Qt that doesn't have DEBUG compiled in. Downloading the official versions (http://qt-project.org/downloads) is one way to do this.

We've also discussed a new feature that would allow people to filter messages by a pattern. I haven't had time to work on it yet, but if anybody's interested in contributing, please email me directly and I'll explain what would be involved in writing a pull request for it.

-Joe


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Amin Ariana  
View profile   Translate to Translated (View Original)
 More options Mar 21, 1:46 pm
From: Amin Ariana <ami...@gmail.com>
Date: Thu, 21 Mar 2013 10:46:14 -0700
Local: Thurs, Mar 21 2013 1:46 pm
Subject: Re: Silence Warnings: QFont::setPixelSize

Thanks Joe -

FYI, fwiw I uninstalled my brew version of QT and installed the non-debug
official 4.8 version. A ran my Capybara Webkit tests and I still do get the
"QFont::setPixelSize: Pixel size <= 0 (0)" warning.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joe Ferris  
View profile   Translate to Translated (View Original)
 More options Mar 21, 1:50 pm
From: Joe Ferris <jfer...@thoughtbot.com>
Date: Thu, 21 Mar 2013 13:50:14 -0400
Local: Thurs, Mar 21 2013 1:50 pm
Subject: Re: Silence Warnings: QFont::setPixelSize

If you install a new version of Qt, you'll also need to recompile capybara-webkit by uninstalling and reinstalling.

You can figure out which version of Qt capybara-webkit is using with this command on OS X:

    otool -L $(bundle show capybara-webkit)/bin/webkit_server

I believe you can use `ldd` instead of `otool -L` on Linux.

-Joe


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Amin Ariana  
View profile   Translate to Translated (View Original)
 More options Mar 21, 2:35 pm
From: Amin Ariana <ami...@gmail.com>
Date: Thu, 21 Mar 2013 11:35:24 -0700
Local: Thurs, Mar 21 2013 2:35 pm
Subject: Re: Silence Warnings: QFont::setPixelSize

Thanks for the quick follow up Joe.

I uninstalled and reinstalled the gem, still get the same warning. Here is
the output of the command you suggested after the reinstall (and I double
checked that in between, the webkit_server directory was empty) :

QtWebKit.framework/Versions/4/QtWebKit (compatibility version 4.9.0,
current version 4.9.3)
QtGui.framework/Versions/4/QtGui (compatibility version 4.8.0, current
version 4.8.4)
QtCore.framework/Versions/4/QtCore (compatibility version 4.8.0, current
version 4.8.4)
QtNetwork.framework/Versions/4/QtNetwork (compatibility version 4.8.0,
current version 4.8.4)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version
52.0.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version
1105.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
159.1.0)

Here's the qmake / QT version:

qmake -v
QMake version 2.01a
Using Qt version 4.8.4 in /Library/Frameworks

This is on Mac OSX Lion if that matters. Also I do have QT 5 installed in
parallel to 4.8, but doesn't look like it's been used. I'm slightly
surprised by the version that QtWebKit is listing (4.9).


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »