Trolltech Home | Qt-jambi-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-jambi-interest Archive, May 2007
plugin designer crashes eclipse


Message 1 in thread

Hello and good morning

I send a file (called MyWizard.jui) which was transformed from a *ui to
*.jui via generator.

This file forces the plugin designer (not the jtjambe/bin/designer) to
crash eclipse. After that there is no way to work with the plugin -
designer any more (even with correct files which worked fine before). 
The plugin-designer then crashes every time I want to open a *.jui file 
or even close the view.

The only way to repair this behavier - as I could see - is to delete all
plugin files from trolltech, start eclipse again, gain the message, that
not all plugins could be loadet, close eclipse again, copy the plugin
files again and start eclipse then.

best regards
Arne

PS.: the transformed file looks a little bit strange, because it was
first transformed from qt3.x ui to qt4.x and the to qtjambei (*.jui). 
But as the designer crashes by opening it, there was no way to make it a 
little more pretty ;-)


<ui version="4.0" language="jambi" >
<ui version="4.0" language="jambi" >
 <class>QMyWizardBase</class>
 <widget class="QDialog" name="QMyWizardBase" >
  <property name="geometry" >
   <rect>
    <x>0</x>
    <y>0</y>
    <width>456</width>
    <height>314</height>
   </rect>
  </property>
  <property name="windowTitle" >
   <string>Assistent</string>
  </property>
  <property name="sizeGripEnabled" >
   <bool>true</bool>
  </property>
  <widget class="Line" name="line1_2" >
   <property name="geometry" >
    <rect>
     <x>9</x>
     <y>9</y>
     <width>438</width>
     <height>16</height>
    </rect>
   </property>
   <property name="frameShape" >
    <enum>com.trolltech.qt.gui.QFrame.Shape.HLine</enum>
   </property>
   <property name="frameShadow" >
    <enum>com.trolltech.qt.gui.QFrame.Shadow.Sunken</enum>
   </property>
  </widget>
  <widget class="QWidget" native="1" name="PageStack" >
   <property name="geometry" >
    <rect>
     <x>9</x>
     <y>18</y>
     <width>438</width>
     <height>16</height>
    </rect>
   </property>
   <widget class="QWidget" native="1" name="LeerPage" >
    <property name="geometry" >
     <rect>
      <x>0</x>
      <y>0</y>
      <width>100</width>
      <height>30</height>
     </rect>
    </property>
   </widget>
  </widget>
  <widget class="QWidget" name="" >
   <property name="geometry" >
    <rect>
     <x>20</x>
     <y>231</y>
     <width>438</width>
     <height>71</height>
    </rect>
   </property>
   <layout class="QHBoxLayout" >
    <property name="margin" >
     <number>0</number>
    </property>
    <property name="rightMargin" >
     <number>0</number>
    </property>
    <property name="leftMargin" >
     <number>0</number>
    </property>
    <property name="topMargin" >
     <number>0</number>
    </property>
    <property name="bottomMargin" >
     <number>0</number>
    </property>
    <item>
     <widget class="QPushButton" name="HelpButton" >
      <property name="sizePolicy" >
       <sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
        <horstretch>0</horstretch>
        <verstretch>0</verstretch>
       </sizepolicy>
      </property>
      <property name="toolTip" >
       <string>&lt;p>Hilfestellung zu der aktuellen Seite&lt;/p></string>
      </property>
      <property name="whatsThis" >
       <string>&lt;b>&lt;font color="#00508c">Online - Hilfe&lt;/font>&lt;/b>&#xd;&#xd;&#xd;&#xd;&#xd;
&#xd;&#xd;&#xd;&#xd;&#xd;
Startet die Online-Hilfe für diesen Assistenten.</string>
      </property>
      <property name="text" >
       <string/>
      </property>
      <property name="icon" >
       <iconset/>
      </property>
      <property name="shortcut" >
       <string/>
      </property>
      <property name="autoDefault" >
       <bool>false</bool>
      </property>
     </widget>
    </item>
    <item>
     <spacer>
      <property name="orientation" >
       <enum>Qt::Vertical</enum>
      </property>
      <property name="sizeType" >
       <enum>QSizePolicy::Expanding</enum>
      </property>
      <property name="sizeHint" >
       <size>
        <width>40</width>
        <height>21</height>
       </size>
      </property>
     </spacer>
    </item>
    <item>
     <widget class="QPushButton" name="CancelButton" >
      <property name="toolTip" >
       <string>&lt;p>Bricht diesen Assistenten ab&lt;/p></string>
      </property>
      <property name="whatsThis" >
       <string>&lt;b>&lt;font color="#00508c">Abbruch&lt;/font>&lt;/b>&#xd;&#xd;&#xd;&#xd;&#xd;
&#xd;&#xd;&#xd;&#xd;&#xd;
&lt;p>Bricht diesen Assistenten ab. Alle eventuellen Eingaben gehen verloren&lt;/p></string>
      </property>
      <property name="text" >
       <string>&amp;Abbruch</string>
      </property>
      <property name="shortcut" >
       <string>Alt+A</string>
      </property>
      <property name="autoDefault" >
       <bool>false</bool>
      </property>
     </widget>
    </item>
    <item>
     <spacer>
      <property name="orientation" >
       <enum>Qt::Vertical</enum>
      </property>
      <property name="sizeType" >
       <enum>QSizePolicy::Expanding</enum>
      </property>
      <property name="sizeHint" >
       <size>
        <width>40</width>
        <height>20</height>
       </size>
      </property>
     </spacer>
    </item>
    <item>
     <widget class="QPushButton" name="BackButton" >
      <property name="toolTip" >
       <string>&lt;p>zurück zur vorangehenden  Seite&lt;/p></string>
      </property>
      <property name="whatsThis" >
       <string>&lt;b>&lt;font color="#00508c">Zurück&lt;/font>&lt;/b>&#xd;&#xd;&#xd;&#xd;&#xd;
&lt;p>&#xd;&#xd;&#xd;&#xd;&#xd;
Soweit es sich nicht um die erste Seite des Assistenten handelt, gelangen Sie mit dieser Schaltfläche auf die vorangegangen Schaltfläche. Diese Schaltfläche ist - bis auf die erste Seite - immer aktiviert&lt;/p></string>
      </property>
      <property name="text" >
       <string>&amp;Zurück</string>
      </property>
      <property name="shortcut" >
       <string>Alt+Z</string>
      </property>
      <property name="autoDefault" >
       <bool>false</bool>
      </property>
     </widget>
    </item>
    <item>
     <widget class="QWidget" native="1" name="NextFinishStack" >
      <widget class="QWidget" name="WeiterPage" >
       <property name="geometry" >
        <rect>
         <x>0</x>
         <y>0</y>
         <width>77</width>
         <height>25</height>
        </rect>
       </property>
       <layout class="QHBoxLayout" >
        <property name="margin" >
         <number>0</number>
        </property>
        <property name="rightMargin" >
         <number>0</number>
        </property>
        <property name="leftMargin" >
         <number>0</number>
        </property>
        <property name="topMargin" >
         <number>0</number>
        </property>
        <property name="bottomMargin" >
         <number>0</number>
        </property>
        <item>
         <widget class="QPushButton" name="NextButton" >
          <property name="toolTip" >
           <string>&lt;p>Weiter zur nächsten Seite des Assistenten&lt;/p></string>
          </property>
          <property name="whatsThis" >
           <string>&lt;b>&lt;font color="#00508c">Weiter zur nächsten Seite&lt;/font>&lt;/b>&#xd;&#xd;&#xd;&#xd;&#xd;
&#xd;&#xd;&#xd;&#xd;&#xd;
&lt;p>Diese Schaltfläche führt Sie zu der nächsten Seite des Assistenten. Sie ist nur aktiviert, wenn alle erforderlichen Eingaben erfolgt sind. &lt;/p>&#xd;&#xd;&#xd;&#xd;&#xd;
&#xd;&#xd;&#xd;&#xd;&#xd;
&lt;p>Ist diese Schaltfläche inaktiv, erfahren Sie in der sog. Bubble Help (bitte mit der Maus über der Schaltfläche verweilen) welche notwendige Eingabe noch fehlt&lt;/p></string>
          </property>
          <property name="text" >
           <string>&amp;Weiter</string>
          </property>
          <property name="shortcut" >
           <string>Alt+W</string>
          </property>
          <property name="default" >
           <bool>true</bool>
          </property>
         </widget>
        </item>
       </layout>
      </widget>
      <widget class="QWidget" name="FinishPage" >
       <property name="geometry" >
        <rect>
         <x>0</x>
         <y>0</y>
         <width>77</width>
         <height>25</height>
        </rect>
       </property>
       <layout class="QHBoxLayout" >
        <property name="margin" >
         <number>0</number>
        </property>
        <property name="rightMargin" >
         <number>0</number>
        </property>
        <property name="leftMargin" >
         <number>0</number>
        </property>
        <property name="topMargin" >
         <number>0</number>
        </property>
        <property name="bottomMargin" >
         <number>0</number>
        </property>
        <item>
         <widget class="QPushButton" name="FinishButton" >
          <property name="toolTip" >
           <string>&lt;p>Beendet dieses Assistenten und übernimmt alle Eingaben&lt;/p></string>
          </property>
          <property name="whatsThis" >
           <string>&lt;b>&lt;font color="#00508c">Fertigstellen&lt;/font>&lt;/b>&#xd;&#xd;&#xd;&#xd;&#xd;
&#xd;&#xd;&#xd;&#xd;&#xd;
&lt;p>Ein Klick auf diese Schaltfläche beendet den Assistenten. Alle Eingaben werden übernommen. Diese Schaltfläche ist nur aktiviert, wenn es sich um die letzte Seite handelt und alle (auf der letzen Seite) notwendigen Eingaben erfolgt sind&lt;/p></string>
          </property>
          <property name="text" >
           <string>&amp;Fertigstellen</string>
          </property>
          <property name="shortcut" >
           <string>Alt+F</string>
          </property>
         </widget>
        </item>
       </layout>
      </widget>
     </widget>
    </item>
   </layout>
  </widget>
  <widget class="Line" name="line1" >
   <property name="geometry" >
    <rect>
     <x>20</x>
     <y>170</y>
     <width>438</width>
     <height>16</height>
    </rect>
   </property>
   <property name="frameShape" >
    <enum>com.trolltech.qt.gui.QFrame.Shape.HLine</enum>
   </property>
   <property name="frameShadow" >
    <enum>com.trolltech.qt.gui.QFrame.Shadow.Sunken</enum>
   </property>
  </widget>
 </widget>
 <layoutdefault spacing="6" margin="11" />
 <tabstops>
  <tabstop>NextButton</tabstop>
  <tabstop>HelpButton</tabstop>
  <tabstop>CancelButton</tabstop>
  <tabstop>BackButton</tabstop>
  <tabstop>FinishButton</tabstop>
 </tabstops>
 <resources/>
 <connections/>
</ui>



Message 2 in thread

Arne Stocker wrote:

>
> This file forces the plugin designer (not the jtjambe/bin/designer) to
> crash eclipse. After that there is no way to work with the plugin -
> designer any more (even with correct files which worked fine before). 
> The plugin-designer then crashes every time I want to open a *.jui 
> file or even close the view.
>

Hi, Arne. Sorry for the late answer.

I have tried opening your file both with designer.exe as well as the 
Eclipse plugin, and it doesn't crash in either for me.

Do you happen to get any crash log when this happens that may help us 
reproduce it?

-- Eskil