<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>329831</bug_id>
          
          <creation_ts>2014-01-11 04:50:25 +0000</creation_ts>
          <short_desc>starting umbrello does not display any window</short_desc>
          <delta_ts>2014-01-30 14:37:23 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>umbrello</product>
          <component>general</component>
          <version>2.11.5</version>
          <rep_platform>MacPorts</rep_platform>
          <op_sys>macOS</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Nicolas Pavillon">nicos</reporter>
          <assigned_to name="Umbrello Development Group">umbrello-devel</assigned_to>
          <cc>celak.pande</cc>
    
    <cc>okellogg</cc>
    
    <cc>ralf.habacker</cc>
          
          <cf_commitlink>http://commits.kde.org/umbrello/9a14648f65fe58d9b7230b5ce16d55827d0b88ce</cf_commitlink>
          <cf_versionfixedin>4.12.3</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1424017</commentid>
    <comment_count>0</comment_count>
    <who name="Nicolas Pavillon">nicos</who>
    <bug_when>2014-01-11 04:50:25 +0000</bug_when>
    <thetext>When starting umbrello, no window appears, even when trying to open a new one through the menu. The program outputs the following warnings:
umbrello(9216)/kdeui (kdelibs): Attempt to use QAction &quot;edit_undo&quot; with KXMLGUIFactory! 
umbrello(9216)/kdeui (kdelibs): Attempt to use QAction &quot;edit_redo&quot; with KXMLGUIFactory! 
umbrello(9216) *UMLListView::findView: could not find  &quot;class diagram&quot;  in  UMLListViewItem: &quot;Logical View&quot;, type=&quot;lvt_Logical_View&quot;, id=&quot;Logical View&quot;, children=1 
umbrello(9216) *UMLListView::findView: could not find  &quot;class diagram&quot;  in  UMLListViewItem: &quot;Logical View&quot;, type=&quot;lvt_Logical_View&quot;, id=&quot;Logical View&quot;, children=1 

Trying to open a new window with the &quot;File -&gt; New...&quot; menu outputs again the two last lines of the output (could not find &quot;class diagram&quot;)

Reproducible: Always

Steps to Reproduce:
1. Start umbrello
2. Select &quot;File -&gt; New...&quot;
Actual Results:  
No window appears

Expected Results:  
A new window should appear

Umbrello is built from source under KDE 4.11.5, with the following dependencies:
  boost 1.55.0
  libxml2 2.9.1
  libxslt 1.1.28</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1424138</commentid>
    <comment_count>1</comment_count>
    <who name="Oliver Kellogg">okellogg</who>
    <bug_when>2014-01-11 17:03:16 +0000</bug_when>
    <thetext>Have you tried moving $HOME/.kde4/share/config/umbrellorc out of the way?
(see http://forum.kde.org/viewtopic.php?f=22&amp;t=38672)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1424214</commentid>
    <comment_count>2</comment_count>
    <who name="Nicolas Pavillon">nicos</who>
    <bug_when>2014-01-12 02:41:27 +0000</bug_when>
    <thetext>Yes. Unfortunately, this does not change anything to the described behaviour.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1425847</commentid>
    <comment_count>3</comment_count>
    <who name="Edy Santosa Putra">celak.pande</who>
    <bug_when>2014-01-20 05:22:23 +0000</bug_when>
    <thetext>I am also affected by this bug on Archlinux
Linux 
Qt: 4.8.5
KDE Development Platform: 4.12.1
Umbrello UML Modeller: 2.12.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1426466</commentid>
    <comment_count>4</comment_count>
    <who name="Edy Santosa Putra">celak.pande</who>
    <bug_when>2014-01-23 13:40:32 +0000</bug_when>
    <thetext>This would probably solves this problem, apparently umbrello main window started with 0 width and height. So I added this parameter in umbrellorc

[General Options]
Geometry=800,600

https://bbs.archlinux.org/viewtopic.php?pid=1369652</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1426498</commentid>
    <comment_count>5</comment_count>
    <who name="Nicolas Pavillon">nicos</who>
    <bug_when>2014-01-23 16:22:49 +0000</bug_when>
    <thetext>Great, I can confirm that changing these settings also solve the issue for me. To my understanding, the function:
UmbrelloSettings::geometry() 
returns (-1, -1) as a size if no proper umbrellorc is present, and the values are returned/used without being checked.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1427193</commentid>
    <comment_count>6</comment_count>
    <who name="Ralf Habacker">ralf.habacker</who>
    <bug_when>2014-01-27 15:00:32 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; Great, I can confirm that changing these settings also solve the issue for
&gt; me. To my understanding, the function:
&gt; UmbrelloSettings::geometry() 
&gt; returns (-1, -1) as a size if no proper umbrellorc is present, and the
&gt; values are returned/used without being checked.
According to https://qt-project.org/doc/qt-4.8/qwidget.html#minimumSize-prop are these values checked against minimumSize(). On my development machine minimumSize() returns QSize(0, 0), before the call to resize() , which means resize will set the size to (0,0). 
The mentioned documentation says about this case: 
&quot;Note: Setting the size to QSize(0, 0) will cause the widget to not appear on screen. This also applies to windows.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1427280</commentid>
    <comment_count>7</comment_count>
    <who name="Oliver Kellogg">okellogg</who>
    <bug_when>2014-01-27 22:01:27 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; Great, I can confirm that changing these settings also solve the issue for
&gt; me. To my understanding, the function:
&gt; UmbrelloSettings::geometry() 
&gt; returns (-1, -1) as a size if no proper umbrellorc is present, and the
&gt; values are returned/used without being checked.

Looking at the code, it seems the values are really being used without being checked. See UMLApp::readOptions() in umbrello/uml.cpp:1022
    resize(UmbrelloSettings::geometry());

When UmbrelloSettings::geometry() returns unexpected values such as (0,0) we should perhaps fall back to some sensible values?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1427840</commentid>
    <comment_count>8</comment_count>
    <who name="Ralf Habacker">ralf.habacker</who>
    <bug_when>2014-01-30 14:01:36 +0000</bug_when>
    <thetext>Git commit c6640aa458af39b1a31fb04ae6de26f0084f7758 by Ralf Habacker.
Committed on 30/01/2014 at 14:00.
Pushed by habacker into branch &apos;master&apos;.

Fix of &apos;starting umbrello does not display any window&apos;.

M  +5    -1    umbrello/uml.cpp

http://commits.kde.org/umbrello/c6640aa458af39b1a31fb04ae6de26f0084f7758</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1427848</commentid>
    <comment_count>9</comment_count>
    <who name="Ralf Habacker">ralf.habacker</who>
    <bug_when>2014-01-30 14:37:23 +0000</bug_when>
    <thetext>Git commit 9a14648f65fe58d9b7230b5ce16d55827d0b88ce by Ralf Habacker.
Committed on 30/01/2014 at 14:00.
Pushed by habacker into branch &apos;KDE/4.12&apos;.

Fix of &apos;starting umbrello does not display any window&apos;.
FIXED-IN:4.12.3
(cherry picked from commit c6640aa458af39b1a31fb04ae6de26f0084f7758)

M  +5    -1    umbrello/uml.cpp

http://commits.kde.org/umbrello/9a14648f65fe58d9b7230b5ce16d55827d0b88ce</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>