>> I stand corrected, this is not a bug, when QT designer/eclipse plugin
> starts it checks for the availability of all references made in the
> CustomWidgets.
>
> My custom widget implemented a class which was not provided to QT at
> startup, this caused the plugin to crash.
>
> On Thu, Jul 9, 2009 at 1:13 PM, Deepak Angeshwar <[email protected]>wrote:
> > Hi All,
> >
> > I have been trying QT Designer & QT Jambi plugin for eclipse and noticed
> > the following issues.
> > After creating custom widgets I am able to add it to the QT designer and
> > use it.
> >
> > But if my customwidget class implements an interface, QTDesigner crashes
> >
> > It crases even if I define an inner class in the CustomWidget and that
> > inner class implements an interface.
> >
> > Can some one let me know if this is a know issue, if so I will try to
> > change my design.
> >
> >
> >
> > The Log message I get is
> >
> > ##
> > # An unexpected error has been detected by Java Runtime Environment:
> > #
> > #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x670d6338, pid=4696,
> > tid=700
> > #
> > # Java VM: Java HotSpot(TM) Client VM (11.3-b02 mixed mode windows-x86)
> > # Problematic frame:
> > # C  [QtCore4.dll+0xd6338]
> > #
> > # If you would like to submit a bug report, please visit:
> > #   http://java.sun.com/webapps/bugreport/crash.jsp
> > # The crash happened outside the Java Virtual Machine in native code.
> > # See problematic frame for where to report the bug.
> > #
> >
> > ---------------  T H R E A D  ---------------
> >
> > Current thread (0x01ee9000):  JavaThread "main" [_thread_in_native,
> > id=700, stack(0x00030000,0x00130000)]
> >
> > siginfo: ExceptionCode=0xc0000005, reading address 0x0000046a
> >
> > Registers:
> > EAX=0x0000046a, EBX=0x0e67ef98, ECX=0x0e559b58, EDX=0x0d5f2750
> > ESP=0x0012f34c, EBP=0x0012f380, ESI=0x65577148, EDI=0x0e559b58
> > EIP=0x670d6338, EFLAGS=0x00010287
> >
> > Top of Stack: (sp=0x0012f34c)
> > 0x0012f34c:   670d6320 0e559b58 6532c297 0e559b58
> > 0x0012f35c:   0da69718 0012f398 6532c30b 0e67ef98
> > 0x0012f36c:   0da69718 00000000 0012f3dc 654e096b
> > 0x0012f37c:   00000000 0012f3ec 6532cf06 0012f398
> > 0x0012f38c:   06476a40 0e67ef98 0012f3dc 00000001
> > 0x0012f39c:   00000002 00000001 00000000 00000000
> > 0x0012f3ac:   00000000 00000063 0000001d 003d91e0
> > 0x0012f3bc:   003d9840 00000000 00000000 671cde38
> >
> > Instructions: (pc=0x670d6338)
> > 0x670d6328:   8b f1 74 12 8b 07 8b 10 8b cf ff d2 3b c6 74 0d
> > 0x670d6338:   8b 00 85 c0 75 f6 5f 33 c0 5e c2 04 00 8b c7 5f
> >
> >
> > Stack: [0x00030000,0x00130000],  sp=0x0012f34c,  free space=1020k
> > Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native
> > code)
> > C  [QtCore4.dll+0xd6338]
> > C  [QtGui4.dll+0x32cf06]
> > C  [QtGui4.dll+0x32c00d]
> > j
> > com.trolltech.qt.gui.QPushButton.<init>(Lcom/trolltech/qt/gui/QWidget;)V+
> >26 j
> > com.tsdevelopment.customwidgets.Ui_PriceWidget.setupUi(Lcom/trolltech/qt/
> >gui/QWidget;)V+104 j
> > com.tsdevelopment.customwidgets.PriceWidget.<init>(Lcom/trolltech/qt/gui/
> >QWidget;)V+21 j
> > com.tsdevelopment.customwidgets.Ui_MasterWidget.setupUi(Lcom/trolltech/qt
> >/gui/QWidget;)V+36 j
> > com.tsdevelopment.customwidgets.MasterWidget.<init>(Lcom/trolltech/qt/gui
> >/QWidget;)V+21 v  ~StubRoutines::call_stub
> >
> > Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
> > j  com.trolltech.qt.gui.QPushButton.__qt_QPushButton_QWidget(J)V+0
> > j
> > com.trolltech.qt.gui.QPushButton.<init>(Lcom/trolltech/qt/gui/QWidget;)V+
> >26 j
> > com.tsdevelopment.customwidgets.Ui_PriceWidget.setupUi(Lcom/trolltech/qt/
> >gui/QWidget;)V+104 j
> > com.tsdevelopment.customwidgets.PriceWidget.<init>(Lcom/trolltech/qt/gui/
> >QWidget;)V+21 j
> > com.tsdevelopment.customwidgets.Ui_MasterWidget.setupUi(Lcom/trolltech/qt
> >/gui/QWidget;)V+36 j
> > com.tsdevelopment.customwidgets.MasterWidget.<init>(Lcom/trolltech/qt/gui
> >/QWidget;)V+21 v  ~StubRoutines::call_stub
> > j
> > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Ljava/lang/reflect
> >/Constructor;[Ljava/lang/Object;)Ljava/lang/Object;+0 j
> > sun.reflect.NativeConstructorAccessorImpl.newInstance([Ljava/lang/Object;
> >)Ljava/lang/Object;+72 j
> > sun.reflect.DelegatingConstructorAccessorImpl.newInstance([Ljava/lang/Obj
> >ect;)Ljava/lang/Object;+5 j
> > java.lang.reflect.Constructor.newInstance([Ljava/lang/Object;)Ljava/lang/
> >Object;+92 j
> > com.trolltech.tools.designer.CustomWidget.createWidget(Lcom/trolltech/qt/
> >gui/QWidget;)Lcom/trolltech/qt/gui/QWidget;+14 v  ~StubRoutines::call_stub
> >
> > ---------------  P R O C E S S  ---------------
> >
> > Java Threads: ( => current thread )
> >   0x0d09e000 JavaThread "Thread-0" daemon [_thread_blocked, id=5896,
> > stack(0x0d200000,0x0d300000)]
> >   0x01ffe400 JavaThread "Low Memory Detector" daemon [_thread_blocked,
> > id=5164, stack(0x0ce00000,0x0cf00000)]
> >   0x01feac00 JavaThread "CompilerThread0" daemon [_thread_blocked,
> > id=3796, stack(0x0cd00000,0x0ce00000)]
> >   0x01fe9400 JavaThread "Attach Listener" daemon [_thread_blocked,
> > id=5160, stack(0x0cc00000,0x0cd00000)]
> >   0x01fdec00 JavaThread "Signal Dispatcher" daemon [_thread_blocked,
> > id=4508, stack(0x0cb00000,0x0cc00000)]
> >   0x01fca400 JavaThread "Finalizer" daemon [_thread_blocked, id=4164,
> > stack(0x0ca00000,0x0cb00000)]
> >   0x01fc9000 JavaThread "Reference Handler" daemon [_thread_blocked,
> > id=5844, stack(0x0c900000,0x0ca00000)]
> > =>0x01ee9000 JavaThread "main" [_thread_in_native, id=700,
> > stack(0x00030000,0x00130000)]
> >
> > Other Threads:
> >   0x01fc4400 VMThread [stack: 0x0c800000,0x0c900000] [id=3340]
> >   0x02000400 WatcherThread [stack: 0x0cf00000,0x0d000000] [id=5952]
> >
> > VM state:not at safepoint (normal execution)
> >
> > VM Mutex/Monitor currently owned by a thread: None
> >
> > Heap
> >  def new generation   total 960K, used 650K [0x04800000, 0x04900000,
> > 0x04ce0000)
> >   eden space 896K,  65% used [0x04800000, 0x048929f0, 0x048e0000)
> >   from space 64K,  99% used [0x048f0000, 0x048fff88, 0x04900000)
> >   to   space 64K,   0% used [0x048e0000, 0x048e0000, 0x048f0000)
> >  tenured generation   total 4096K, used 746K [0x04ce0000, 0x050e0000,
> > 0x08800000)
> >    the space 4096K,  18% used [0x04ce0000, 0x04d9ab30, 0x04d9ac00,
> > 0x050e0000)
> >  compacting perm gen  total 12288K, used 7934K [0x08800000, 0x09400000,
> > 0x0c800000)
> >    the space 12288K,  64% used [0x08800000, 0x08fbfa30, 0x08fbfc00,
> > 0x09400000)
> > No shared spaces configured.
> >
> > Dynamic libraries:
> > 0x00400000 - 0x004b3000
> > C:\Downloads\QT\qtjambi-win32-lgpl-4.5.0_01\qtjambi-win32-lgpl-4.5.0_01\b
> >in\designer.exe 0x77b30000 - 0x77c57000     C:\Windows\system32\ntdll.dll
> > 0x761e0000 - 0x762bc000     C:\Windows\system32\kernel32.dll
> > 0x10000000 - 0x101d2000
> > C:\Downloads\QT\qtjambi-win32-lgpl-4.5.0_01\qtjambi-win32-lgpl-4.5.0_01\b
> >in\QtDesignerComponents4.dll 0x00bc0000 - 0x00e46000
> > C:\Downloads\QT\qtjambi-win32-lgpl-4.5.0_01\qtjambi-win32-lgpl-4.5.0_01\b
> >in\QtDesigner4.dll 0x002e0000 - 0x00388000
> > C:\Downloads\QT\qtjambi-win32-lgpl-4.5.0_01\qtjambi-win32-lgpl-4.5.0_01\b
> >in\QtScript4.dll 0x67000000 - 0x671e2000
> > C:\Downloads\QT\qtjambi-win32-lgpl-4.5.0_01\qtjambi-win32-lgpl-4.5.0_01\b
> >in\QtCore4.dll 0x76c90000 - 0x76d2d000     C:\Windows\system32\USER32.dll
> > 0x765f0000 - 0x7663b000     C:\Windows\system32\GDI32.dll
> > 0x77990000 - 0x77a56000     C:\Windows\system32\ADVAPI32.dll
> > 0x76bc0000 - 0x76c83000     C:\Windows\system32\RPCRT4.dll
> > 0x76640000 - 0x76785000     C:\Windows\system32\ole32.dll
> > 0x77ce0000 - 0x77d8a000     C:\Windows\system32\msvcrt.dll
> > 0x76d30000 - 0x76d5d000     C:\Windows\system32\WS2_32.dll
> > 0x77c70000 - 0x77c76000     C:\Windows\system32\NSI.dll
> > 0x72710000 - 0x72797000
> > C:\Windows\WinSxS\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4016_
> >none_d0893820442e7fe4\MSVCP80.dll 0x75f10000 - 0x75fab000
> > C:\Windows\WinSxS\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4016_
> >none_d0893820442e7fe4\MSVCR80.dll 0x61000000 - 0x61054000
> > C:\Downloads\QT\qtjambi-win32-lgpl-4.5.0_01\qtjambi-win32-lgpl-4.5.0_01\b
> >in\QtXml4.dll 0x65000000 - 0x6573d000
> > C:\Downloads\QT\qtjambi-win32-lgpl-4.5.0_01\qtjambi-win32-lgpl-4.5.0_01\b
> >in\QtGui4.dll 0x77a60000 - 0x77ad3000     C:\Windows\system32\comdlg32.dll
> > 0x77c80000 - 0x77cd9000     C:\Windows\system32\SHLWAPI.dll
> > 0x750a0000 - 0x7523e000
> > C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_
> >6.0.6002.18005_none_5cb72f96088b0de0\COMCTL32.dll 0x76e80000 - 0x77990000 
> >    C:\Windows\system32\SHELL32.dll
> > 0x764d0000 - 0x7655d000     C:\Windows\system32\OLEAUT32.dll
> > 0x76d70000 - 0x76d8e000     C:\Windows\system32\IMM32.dll
> > 0x76400000 - 0x764c8000     C:\Windows\system32\MSCTF.dll
> > 0x747d0000 - 0x74802000     C:\Windows\system32\WINMM.dll
> > 0x74790000 - 0x747c9000     C:\Windows\system32\OLEACC.dll
> > 0x74220000 - 0x74262000     C:\Windows\system32\WINSPOOL.DRV
> > 0x64000000 - 0x640e0000
> > C:\Downloads\QT\qtjambi-win32-lgpl-4.5.0_01\qtjambi-win32-lgpl-4.5.0_01\b
> >in\QtNetwork4.dll 0x77c60000 - 0x77c69000     C:\Windows\system32\LPK.DLL
> > 0x76950000 - 0x769cd000     C:\Windows\system32\USP10.dll
> > 0x6c1b0000 - 0x6c1b5000     C:\Windows\system32\avgrsstx.dll
> > 0x74e20000 - 0x74e5f000     C:\Windows\system32\uxtheme.dll
> > 0x76090000 - 0x760ae000     C:\Windows\system32\userenv.dll
> > 0x76070000 - 0x76084000     C:\Windows\system32\Secur32.dll
> > 0x01d30000 - 0x01d39000
> > C:\Downloads\QT\qtjambi-win32-lgpl-4.5.0_01\qtjambi-win32-lgpl-4.5.0_01\p
> >lugins\designer\JambiCustomWidget.dll 0x01d70000 - 0x01da2000
> > C:\Downloads\QT\qtjambi-win32-lgpl-4.5.0_01\qtjambi-win32-lgpl-4.5.0_01\b
> >in\qtjambi.dll 0x01db0000 - 0x01dc5000
> > C:\Downloads\QT\qtjambi-win32-lgpl-4.5.0_01\qtjambi-win32-lgpl-4.5.0_01\p
> >lugins\designer\JambiLanguage.dll 0x6d800000 - 0x6da56000     C:\Program
> > Files\Java\jre6\bin\client\jvm.dll 0x7c340000 - 0x7c396000
> > C:\Downloads\QT\qtjambi-win32-lgpl-4.5.0_01\qtjambi-win32-lgpl-4.5.0_01\b
> >in\MSVCR71.dll 0x76010000 - 0x7603c000     C:\Windows\system32\apphelp.dll
> > 0x6d290000 - 0x6d298000     C:\Program Files\Java\jre6\bin\hpi.dll
> > 0x761d0000 - 0x761d7000     C:\Windows\system32\PSAPI.DLL
> > 0x6d7b0000 - 0x6d7bc000     C:\Program Files\Java\jre6\bin\verify.dll
> > 0x6d330000 - 0x6d34f000     C:\Program Files\Java\jre6\bin\java.dll
> > 0x6d7f0000 - 0x6d7ff000     C:\Program Files\Java\jre6\bin\zip.dll
> > 0x0d300000 - 0x0d3bd000
> > C:\Downloads\QT\qtjambi-win32-lgpl-4.5.0_01\qtjambi-win32-lgpl-4.5.0_01\b
> >in\com_trolltech_qt_core.dll 0x02180000 - 0x021c1000
> > C:\Downloads\QT\qtjambi-win32-lgpl-4.5.0_01\qtjambi-win32-lgpl-4.5.0_01\b
> >in\com_trolltech_qt_xml.dll 0x0d3c0000 - 0x0d86e000
> > C:\Downloads\QT\qtjambi-win32-lgpl-4.5.0_01\qtjambi-win32-lgpl-4.5.0_01\b
> >in\com_trolltech_qt_gui.dll 0x020b0000 - 0x020ef000
> > C:\Downloads\QT\qtjambi-win32-lgpl-4.5.0_01\qtjambi-win32-lgpl-4.5.0_01\b
> >in\phonon4.dll 0x0da70000 - 0x0e337000
> > C:\Downloads\QT\qtjambi-win32-lgpl-4.5.0_01\qtjambi-win32-lgpl-4.5.0_01\b
> >in\QtWebKit4.dll 0x75430000 - 0x75438000    
> > C:\Windows\system32\VERSION.dll
> > 0x021d0000 - 0x021fe000
> > C:\Downloads\QT\qtjambi-win32-lgpl-4.5.0_01\qtjambi-win32-lgpl-4.5.0_01\b
> >in\com_trolltech_qt_webkit.dll 0x66000000 - 0x66041000
> > C:\Downloads\QT\qtjambi-win32-lgpl-4.5.0_01\qtjambi-win32-lgpl-4.5.0_01\b
> >in\QtSvg4.dll 0x0e350000 - 0x0e362000
> > C:\Downloads\QT\qtjambi-win32-lgpl-4.5.0_01\qtjambi-win32-lgpl-4.5.0_01\b
> >in\com_trolltech_tools_designer.dll 0x0e380000 - 0x0e389000
> > C:\Downloads\QT\qtjambi-win32-lgpl-4.5.0_01\qtjambi-win32-lgpl-4.5.0_01\p
> >lugins\imageformats\qgif4.dll 0x0e3a0000 - 0x0e3c1000
> > C:\Downloads\QT\qtjambi-win32-lgpl-4.5.0_01\qtjambi-win32-lgpl-4.5.0_01\p
> >lugins\imageformats\qjpeg4.dll 0x0e3e0000 - 0x0e419000
> > C:\Downloads\QT\qtjambi-win32-lgpl-4.5.0_01\qtjambi-win32-lgpl-4.5.0_01\p
> >lugins\imageformats\qmng4.dll 0x0e430000 - 0x0e438000
> > C:\Downloads\QT\qtjambi-win32-lgpl-4.5.0_01\qtjambi-win32-lgpl-4.5.0_01\p
> >lugins\imageformats\qsvg4.dll 0x0e450000 - 0x0e497000
> > C:\Downloads\QT\qtjambi-win32-lgpl-4.5.0_01\qtjambi-win32-lgpl-4.5.0_01\p
> >lugins\imageformats\qtiff4.dll 0x71780000 - 0x7178c000    
> > C:\Windows\system32\dwmapi.dll
> >
> > VM Arguments:
> > java_command: <unknown>
> > Launcher Type: generic
> >
> > Environment Variables:
> >
> > CLASSPATH=C:\Downloads\QT\qtjambi-win32-lgpl-4.5.0_01\qtjambi-win32-lgpl-
> >4.5.0_01\qtjambi-4.5.0_01.jar;C:\Downloads\QT\qtjambi-win32-lgpl-4.5.0_01\
> >qtjambi-win32-lgpl-4.5.0_01\qtjambi-designer-4.5.0_01.jar;C:\Downloads\QT\
> >qtjambi-win32-lgpl-4.5.0_01\qtjambi-win32-lgpl-4.5.0_01\qtjambi-examples-4
> >.5.0_01.jar;C:\Downloads\QT\qtjambi-win32-lgpl-4.5.0_01\qtjambi-win32-lgpl
> >-4.5.0_01\tsdevelopment;C:\Downloads\QT\qtjambi-win32-lgpl-4.5.0_01\qtjamb
> >i-win32-lgpl-4.5.0_01\fi-protocol-1.0-SNAPSHOT.jar;
> >
> > PATH=C:\Downloads\QT\qtjambi-win32-lgpl-4.5.0_01\qtjambi-win32-lgpl-4.5.0
> >_01\bin USERNAME=deepaka
> > OS=Windows_NT
> > PROCESSOR_IDENTIFIER=x86 Family 6 Model 23 Stepping 10, GenuineIntel
> >
> >
> >
> > ---------------  S Y S T E M  ---------------
> >
> > OS: Windows Vista Build 6002 Service Pack 2
> >
> > CPU:total 4 (4 cores per cpu, 1 threads per core) family 6 model 7
> > stepping 10, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3
> >
> > Memory: 4k page, physical 2097151k(1562632k free), swap 4194303k(4194303k
> > free)
> >
> > vm_info: Java HotSpot(TM) Client VM (11.3-b02) for windows-x86 JRE
> > (1.6.0_13-b03), built on Mar  9 2009 01:15:24 by "java_re" with MS VC++
> > 7.1
> >
> > time: Thu Jul 09 13:08:08 2009
> > elapsed time: 0 seconds



I have the same problem. The only workaround that I found is to have an 
alternative project with the same customWidget in the same package but without 
the interface implemented.
_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest

Reply via email to