Invalid url warning when saving file

Issue #613 closed
fabrice salvaire created an issue

On linux, a warning popup complains about invalid url when I want to save the pattern as a pdf. The popup appears before to open the file dialog and reappears when a character is entered in the filename widget.

Qt is 5.7

Comments (19)

  1. Susan Spencer

    Please describe more details. Operating system &version, Valentina version (from Help/About). In Valentina, did you have a pattern in Layout mode, then selected 'File/Layout/Export As', then selected 'PDF' in 'File Format', then clicked 'OK' button, then message appeared? Can you save the Layout as SVG or PNG?

  2. fabrice salvaire reporter

    OS is Fedora 26 Valentina v5a

    Steps:

    • open the pattern file
    • go in layout mode and generate it
    • select in menu File/Layout/Export as tiled PDF
    • then this popup appear

    This issue is related to #614

  3. Roman Telezhynskyi repo owner

    Thing is we can't reproduce this bug with such steps. We need your pattern file.

  4. Roman Telezhynskyi repo owner

    If we comment qInstallMessageHandler then we got kf5.kio.core: Invalid URL: QUrl("....pdf") which means KDE seems to perform some monkey patching on Qt ...

    Yes, looks like. We can suppress this message inside our message handler.

  5. fabrice salvaire reporter

    I also designed a Python/Qt software with an exception catcher, but I am afraid the use of qInstallMessageHandler will catch a lot of spams from Qt internals. You should maybe think to side effects. More valentina will be used, more you will receive funny platform specific bugs and warning spams are really annoying since user have to close the modal each time ...

  6. Roman Telezhynskyi repo owner

    Did i tell we will not suppress message? I don't understand your point. I propose to suppress annoying warnings.

  7. fabrice salvaire reporter

    My point is that it will be a mess to suppress annoying warnings each time you will discover "bugs" on a specific platform. On logging library like log4j there is a configuration mechanism to setup log filter but Qt don't implement such feature. Maybe the category context attribute could help.

    Such warnings should go to stderr, many applications report blabla warning messages on Linux when they are launched from the shell.

  8. Roman Telezhynskyi repo owner

    got kf5.kio.core: Invalid URL: QUrl("....pdf")

    Looks like we can try to use QLoggingCategory::setFilterRules and suppress the warning for category kf5.kio.core.

  9. kim.marchforce@gmail.com

    I stumbled over the same issue running KUbuntu 16.10 with all the current updates. I had fumbled around and decided it was QT related. attached is a screenshot that shows the info on the valentina version I am runningvalentina-config.jpg

  10. Susan Spencer

    Can't reproduce in Valentina v0.6.0.a, build date May 29, on Ubuntu 16.04 LTS, 64bit Intel laptop

  11. kim.marchforce@gmail.com

    I can reproduce this issue with ANY .val file or in TAPE with ANY .vit file. I have Ubuntu 17.04 with KDE. I previously had Ubuntu 16.10 with KDE and had the same problem. I also run Windows 10 with no problem. I run Ubuntu 16.10 under the Unity desktop (NO KDE) and no problem. Please let me know if I may be of any assistance

  12. Roman Telezhynskyi repo owner

    Please let me know if I may be of any assistance

    You can try this. And suppress warnings from kf5.kio.core.

  13. Log in to comment