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

Binary might not work as expected depending on files in application directory. There's a conflict between local files and files within binary program

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.2.1
    • Core: Resource System
    • None
    • X11 GNU/linux maybe windows but not mac I guess ('cause of bundle)

    Description

      Hi,

      I had a crazy bug when deploying on X11. I thought it was a build problem but it turns out it's the way Qt deals with resources which was involved. I made a video (link at the end) to show out the whole thing and give you a way to reproduce that bug.

      But if you want directly the conclusion, here it is :
      You're binary might not work depending on what file the user put in the application directory.
      if you have let's say a resource file like so :

      images

      • 0.png
      • 1.png

      (...)

      now let's say the user put your binary in such a folder :
      misc

      • yourBinary
      • some other stuff
      • images
      1. 0.png
      2. 1.png
      3. winterHollydays.jpg
      4. (..)

      Then you're application may not work as expected...

      http://www.youtube.com/watch?v=Rleja0Hd9dU

      Attachments

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

        Activity

          People

            hjk hjk
            pir2open pierrede open
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes