Bug 408050 - Cannot open any files (QTemporaryFile::exists() returns false)
Summary: Cannot open any files (QTemporaryFile::exists() returns false)
Status: RESOLVED DUPLICATE of bug 406574
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: 2.27.2 (KDE Applications 18.12.2)
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-29 02:11 UTC by kgamesan
Modified: 2019-07-07 12:03 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 2.28.1 (KDE Applications 19.04.1)


Attachments
Sample xmi file to show problem - but happens with any file. (8.60 KB, text/x-xmi)
2019-05-29 02:11 UTC, kgamesan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kgamesan 2019-05-29 02:11:49 UTC
Created attachment 120367 [details]
Sample xmi file to show problem - but happens with any file.

SUMMARY
Cannot open any files. Files can be saved.

STEPS TO REPRODUCE
1. Open umbrello
2. Open file

OBSERVED RESULT
Error dialog shows up: The file <file:///....> does not exist

EXPECTED RESULT
File should open

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Fedora Release 29; Umbrello: 2.27.2 / Fedora package: umbrello-18.12.2-1.fc29.src.rpm
(available in About System):
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Error dialog is thrown in line 517 of umldoc.cpp as tmpfile.exists() (in line 512) returns false

I can use gdb to manually jump from 512 to 537 and am able to open files.
To reproduce...
 1. Install debuginfo files for umbrello (and qt5-core)
 2. Break at *0x000055555565b37b (break *0x000055555565b37b)
 3. Jump past if block (j *0x55555565b396)

For some reason tmpfile::exists() suddenly reports false in line 512. file.exists() reports true in the same line!

I reported the bug to redhat/fedora (https://bugzilla.redhat.com/show_bug.cgi?id=1711446) - but they requested that it be filed here also/instead.
Comment 1 Ludovic Jozeau 2019-07-07 12:03:23 UTC

*** This bug has been marked as a duplicate of bug 406574 ***