Bug 408050

Summary: Cannot open any files (QTemporaryFile::exists() returns false)
Product: [Applications] umbrello Reporter: kgamesan
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: RESOLVED DUPLICATE    
Severity: normal CC: rdieter, unifai
Priority: NOR    
Version: 2.27.2 (KDE Applications 18.12.2)   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
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.

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 ***