论坛首页 入门讨论版 企业应用

Eclipse RCP开发中出现的No more callbacks 异常信息

浏览 201 次
该帖已经被评为新手帖
作者 正文
最后更新时间:2008-06-27
目前发现客户端使用时总是偶尔会出现org.eclipse.swt.SWTError: No more callbacks的异常,界面不能响应任何事件.哪位朋友遇到过同样的问题吗?
   
最后更新时间:2008-06-27
做了几年的Eclipse,也没有见到过这种情况
1、把异常堆栈贴出来
2、看一下当前系统的UI句柄数
   
0 请登录后投票
最后更新时间:2008-06-27
ENTRY org.eclipse.ui 4 0 2008-06-26 16:51:52.470
!MESSAGE No more callbacks
!STACK 0
org.eclipse.swt.SWTError: No more callbacks
at org.eclipse.swt.SWT.error(SWT.java:3400)
at org.eclipse.swt.SWT.error(SWT.java:3297)
at org.eclipse.swt.SWT.error(SWT.java:3268)
at org.eclipse.swt.widgets.Display.getMonitors(Display.java:1709)
at org.eclipse.jface.window.Window.getClosestMonitor(Window.java:915)
at org.eclipse.jface.window.Window.getConstrainedShellBounds(Window.java:956)
at org.eclipse.jface.window.Window.constrainShellSize(Window.java:409)
at org.eclipse.jface.window.Window.open(Window.java:789)
at com.application.pub.Report.Print(ReportUtil.java:496)
at com.application.advisors.perspective.view.composite.UseInfoQueryComposite$6.widgetSelected(UseInfoQueryComposite.java:279)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at com.dawnpro.eims.client.rcp.application.Application.run(Application.java:60)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
   
0 请登录后投票
最后更新时间:2008-06-27
怎么查看UI的句柄数?
   
0 请登录后投票
最后更新时间:2008-06-27
把任务管理器打开
在查看->选择列菜单中 将 句柄计数 加上
如果你的句柄太多,有可能是你的Font或者Image,Color没有释放

更多的可能是你的DLL有问题
你的版本是多少

因为没有你的源代码,所以只能猜了
   
0 请登录后投票
最后更新时间:2008-06-27
我刚看了我的swt的版本为org.eclipse.swt.win32.win32.x86_3.2.0.v3232m.jar
   
0 请登录后投票
最后更新时间:2008-06-27
用过sleak做内存泄漏分析测试吗? 我在我的eclipse上用不起来
   
0 请登录后投票
最后更新时间:2008-06-27
我发现我打开一个视图的时候句柄数和GDI增加了,关闭此视图句柄数却没有相应的减少GDI会自动减少。
是我的dispose方法没起作用吗?视图里没用到font color Image 对象
   
0 请登录后投票
最后更新时间:2008-06-28
我准备把程序放在3.3上面在试试
   
0 请登录后投票
论坛首页 入门讨论版 企业应用

跳转论坛:
JavaEye推荐