Bug 376305 - Windows 7 Umbrello won't save model no mime types installed
Summary: Windows 7 Umbrello won't save model no mime types installed
Status: RESOLVED FIXED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: 2.21.0 (KDE Applications 16.12.0)
Platform: Microsoft Windows Microsoft Windows
: NOR major
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-10 18:13 UTC by Ben Stanley
Modified: 2017-05-10 14:06 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 2.21.2 (KDE Applications 16.12.2)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Stanley 2017-02-10 18:13:28 UTC
I fired up Umbrello and created a model from scratch.

Now I can't save the model file from Umbrello.

When I try to save, the following error is displayed:

No mime types are installed. Check that shared-mime-info is installed, and that XDG_DATA_DIRS is not set, or includes /usr/share.

Platform:
Windows 7 x64 (latest patches)
Umbrello 2.21.1 for Windows
Comment 1 Nobita 2017-03-03 15:49:30 UTC
(In reply to Ben Stanley from comment #0)
> I fired up Umbrello and created a model from scratch.
> 
> Now I can't save the model file from Umbrello.
> 
> When I try to save, the following error is displayed:
> 
> No mime types are installed. Check that shared-mime-info is installed, and
> that XDG_DATA_DIRS is not set, or includes /usr/share.
> 
> Platform:
> Windows 7 x64 (latest patches)
> Umbrello 2.21.1 for Windows

I have this problem, too. And here is a dirty but working solution, 
just copy the directory /usr/share/mime from a Linux machine to
your Windows dir (eg d:\umbrello-2.21.2\share).

Can't upload attachment, you may use mine at here
https://pan.baidu.com/s/1o8yNpwQ
Comment 2 Ralf Habacker 2017-03-06 09:23:50 UTC
Thanks for reporting. I just tried to reproduce this issue and I get the message too. Looking into the output directory uses to save the file I can see that the file has been generated and has valid content. This messagebox is displayed by kde libraries and does not affect file saving itself. This bug will be fixed in the next version.
Comment 4 dhlocker 2017-05-08 11:57:52 UTC
Well, that was a somewhat less than optimal experience. Downloaded and unpacked the portable version from <http://ftp2.nluug.nl/os/Linux/distr/opensuse/repositories/windows:/mingw:/win32/openSUSE_42.2/noarch/mingw32-umbrello-portable-2.21.90.89e79b8-1.3.noarch.rpm> to 

Started C:\Users\dlocker\Downloads\usr\i686-w64-mingw32\sys-root\mingw\umbrello-2.21.90.89e79b8\bin\umbrello.exe, created a "sequence diagram" (with only three objects, no connections or messages, just the three objects) and could not save that. The error box titled "Save Error: Umbrello UML Modeller" reported "There was a problem saving file: C:/Users/dlocker/AppData/Roaming/Projects/Projectname/XYzabc_moo.xmi" and indeed, no file of that name exists in that directory.

Windows 7 Professional; Service Pack 1; Intel(R) Core(TM) i7-4800MQ CUP @ 2.70GHz; 8.00GB; 64-bit Operating System. (maintained up to date on patches.)
Comment 5 Ralf Habacker 2017-05-08 19:35:11 UTC
Umbrello.exe uses a tcp connection to kioslave.exe for saving file (You can inspect this with procmon from sysinternals). The mentioned message occurs when this connection is blocked for example by a firewall.
Comment 6 dhlocker 2017-05-08 22:59:25 UTC
(In reply to Ralf Habacker from comment #5)
> Umbrello.exe uses a tcp connection to kioslave.exe for saving file (You can
> inspect this with procmon from sysinternals). The mentioned message occurs
> when this connection is blocked for example by a firewall.

Thank you Ralf. If that is in the docs, I will apologise for the bother.
Comment 7 Ralf Habacker 2017-05-09 07:15:26 UTC
I added a related faq entry to https://userbase.kde.org/Umbrello/FAQ#How_to_fix_the_error_message_.27There_was_a_problem_saving_file.27_.3F 

Thanks for pointing this out. Does this help you to fix your problem ?
Comment 8 dhlocker 2017-05-09 09:53:21 UTC
This helps very much. Many thanks.

----- Original Message -----
> From: "Ralf Habacker" <bugzilla_noreply@kde.org>
> To: dhlocker@comcast.net
> Sent: Tuesday, May 9, 2017 3:15:26 AM
> Subject: [umbrello] [Bug 376305] Windows 7 Umbrello won't save model no mime types installed
> 
> https://bugs.kde.org/show_bug.cgi?id=376305
> 
> --- Comment #7 from Ralf Habacker <ralf.habacker@freenet.de> ---
> I added a related faq entry to
> https://userbase.kde.org/Umbrello/FAQ#How_to_fix_the_error_message_.27There_was_a_problem_saving_file.27_.3F
> 
> Thanks for pointing this out. Does this help you to fix your problem ?
> 
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
> You voted for the bug.
Comment 9 Ralf Habacker 2017-05-10 14:06:46 UTC
Git commit 4def5639ebd6344173c301d53c22c3db438ee919 by Ralf Habacker.
Committed on 10/05/2017 at 14:06.
Pushed by habacker into branch 'Applications/17.04'.

Add some error message to debug output in case of file saving fails.

This makes it easier to see what's going on.

M  +9    -1    umbrello/umldoc.cpp

https://commits.kde.org/umbrello/4def5639ebd6344173c301d53c22c3db438ee919