#8 closed defect (fixed)
Xpra sun.awt.X11.XlibWrapper.XGetAtomName issue
Reported by: | nicolyon | Owned by: | Antoine Martin |
---|---|---|---|
Priority: | major | Milestone: | 0.0.7.x |
Component: | server | Version: | 0.0.7.36 |
Keywords: | Cc: |
Description
When trying to run http://www.mucommander.com/ on xpra i got an error about the atom name but on local X i don't have this.
I Try with the svn version of xpra.
Change History (9)
comment:1 Changed 10 years ago by
comment:2 Changed 9 years ago by
Owner: | changed from Antoine Martin to Antoine Martin |
---|---|
Status: | new → accepted |
Apparently, this affects other applications like matlab...
Here is the error:
Atom was 0 Atom was 0 [2011-11-30 00:01:57.016] SEVERE Launcher#main,609 Startup failed java.lang.NullPointerException: Failed to retrieve atom name. at sun.awt.X11.XlibWrapper.XGetAtomName(Native Method) at sun.awt.X11.XAtom.getName(XAtom.java:186) at sun.awt.X11.XDataTransferer.getTargetNameForAtom(XDataTransferer.java:141) at sun.awt.X11.XDataTransferer.getNativeForFormat(XDataTransferer.java:130) at sun.awt.datatransfer.DataTransferer.getFlavorsForFormatsAsSet(DataTransferer.java:861) at sun.awt.datatransfer.SunClipboard.formatArrayAsDataFlavorSet(SunClipboard.java:350) at sun.awt.datatransfer.SunClipboard.addFlavorListener(SunClipboard.java:378) at com.mucommander.ui.dnd.ClipboardNotifier.<init>(ClipboardNotifier.java:53) at com.mucommander.ui.action.impl.PasteClipboardFilesAction.<init>(PasteClipboardFilesAction.java:54) at com.mucommander.ui.action.impl.PasteClipboardFilesAction$Factory.createAction(PasteClipboardFilesAction.java:74) at com.mucommander.ui.action.ActionManager.getActionInstance(ActionManager.java:316) at com.mucommander.ui.action.ActionManager.getActionInstance(ActionManager.java:266) at com.mucommander.ui.main.menu.MainMenuBar.<init>(MainMenuBar.java:190) at com.mucommander.ui.main.MainFrame.init(MainFrame.java:188) at com.mucommander.ui.main.MainFrame.<init>(MainFrame.java:296) at com.mucommander.ui.main.WindowManager.createNewMainFrame(WindowManager.java:338) at com.mucommander.ui.main.WindowManager.createNewMainFrame(WindowManager.java:305) at com.mucommander.Launcher.main(Launcher.java:574)
The problem is somewhere within the clipboard code.
Simply using the -no-clipboard
allows the application to run.
In winswitch there is a GUI option when starting a session called: "Clipboard Sharing"
comment:3 Changed 9 years ago by
An almost identical stacktrace (from awt.X11
down) was submitted as #52
comment:4 Changed 9 years ago by
Maybe it is something similar to this issue that was going on with synergy:
https://bugs.launchpad.net/ubuntu/+source/synergy/+bug/207057
I think that in such case the issue was an atom with zero value getting added to a list of clipboard formats (targets). In that case the bug was there only on 64 bit systems. Can someone confirm if it is the case now? Even if the causes are different, I think that the above bug report incorporates a snappet of C code that helps verifying what is going on with the clipboard calls, so it may still be useful.
comment:5 Changed 9 years ago by
More up-to-date link: http://synergy-foss.org/tracker/issues/27
Will take another look at the clipboard code, it is a bit obscure..
Relevant pygtk doc: Supplying The Selection
comment:6 Changed 9 years ago by
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
Thanks for the pointers, proved very useful.
I eventually found the (very old) bug with X11 atoms vs GdkAtoms
, and also another one in bitness (64 vs 32 with struct) - both fixed in r490
You should now be able to use the clipboard with all Java apps.
comment:7 Changed 9 years ago by
Component: | client → server |
---|---|
Version: | 1.0 → 0.0.7.36 |
comment:8 Changed 9 years ago by
Milestone: | current → 0.0.7.x |
---|
comment:9 Changed 6 weeks ago by
this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/8
the application is mucommander and can be downloaded at http://www.mucommander.com/