-
-
Notifications
You must be signed in to change notification settings - Fork 426
Getting a "QFont::setPixelSize: Pixel size <= 0 (0)" Warning Message #485
Comments
There was some discussion about this on the mailing list that fizzled out: https://groups.google.com/forum/?fromgroups=#!topic/capybara-webkit/n1xMK0HnMWo I think it's an issue in Qt and we could silence it by filtering debug output with |
I get the same warning. Not the slightest hint about what it means. |
I get the same warning (and others) with an old capybara-webkit, testunit, and ruby 1.8.7, which seems to support @jferris suggestion that "it's an issue in Qt".
|
I have several types of warnings:
|
@petRUShka regarding the content-type error see rails/jquery-ujs#301 |
@santry, thanks for noticing that. What about first type of warnings? |
+1. I'm getting these same "QFont::setPixelSize: Pixel size <= 0 (0)" warnings as well. |
Here is the issue in the Qt JIRA. This issue seems to have been closed and fixed in QtWebkit instead. But that happened a couple years ago (after Qt 4.8.0 but before 4.8.4 which is the current 4.8.x release). It also appears that Qt 4.8.x might be using QtWebkit 4.9.4. Now whether or not 4.9.4 includes this bugfix, I don't know, but I would suspect at this point it does. So this is strange... |
It seems to have been fixed in QtWebkit more recently too... |
Does |
@jaredbeck, see #529. |
It looks like PR #529 includes a preprocessor directive that constrains Qt >= 4.8.0. So it seems that a constraint is possible. However, I think it's safe to assume we don't want to constrain Qt just to fix a warning message, however annoying. Therefore, I think we can close this issue and recommend that people update their Qt? |
I installed QT this past weekend through homebrew on a OSX 10.6.8 and I get the same error. |
I installed qt today through homebrew and also get the same message. On OSX Lion. |
Same error here with QT 4.8.4 on OSX 10.8.4. The warning message is pretty large, so I am supressing it now in my tests although I'd prefer to have no warning at all. |
@stefanhendriks how did you suppress this in your tests? Thanks! |
FYI: Arch just got qt5-webkit 5.1 and the messages are no longer appearing. |
@joshuaswilcox we basically have a class that overrides a method that writes messages. We collect them and print them after all tests are ran (we run dump_warnings ourselves at the end). Here some code: FYI, what i did was basically cut off the warning (in dump_warnings) at 255 characters orso.
|
@stefanhendriks Thanks! that warning has been bugging me for months. I didn't know realise was that easy to filter. Simply erasing it from the output stream is good enough for me though.
|
@stefanhendriks and @Fjan, sorry for the naivety, but where did you put your custom class? |
@joshuaswilcox Doesn't really matter, you would probably put it in the same file where you use it, typically test_helper.rb |
@Fjan perfect, thanks! |
@Fjan sorry to be a bother, but I added this to a test_helper.rb and required it in my controller_name_spec.rb, but it still prints out. Not sure what I am missing? Thanks very much |
@Fjan yeah here is my spec_helper.rb Capybara.default_driver = :webkit
Capybara.javascript_driver = :webkit
Capybara.default_wait_time = 5
Capybara.register_driver :webkit do |app|
Capybara::Webkit::Driver.new(app, stderr: WarningSuppressor)
end |
@joshuaswilcox Sorry, I don't know. This is not a good place for general Ruby questions, please try stack overflow |
@Fjan shouldn't that |
@rebelwarrior @joshuaswilcox You're right! I modified a line to remove some stuff that wasn't relevant here and I ended up reversing the condition. Sorry about that. |
Bingo, Thought I was going crazy. Thanks all. @Fjan @rebelwarrior |
Closing this out. We've done just about all we can in capybara-webkit to silence these issues. Anyone who is still experiencing issues should:
|
I use Pyqt and who who has solution. |
When running tests I get the following warning message:
Is there a way to hide/suppress this? I don't even know what it represents, and Its showing up every time I run the tests.
I'm using QT 4.8.4 on Mac OS 10.7.5
Gemfile:
The text was updated successfully, but these errors were encountered: