Oh my, indeed, it looks like the ConnectionTransfer reads any (binary)
data that's currently in the clipboard, that looks really wrong and
dangerous.

https://github.com/apache/directory-studio/blob/master/plugins/connection.ui/src/main/java/org/apache/directory/studio/connection/ui/dnd/ConnectionTransfer.java#L143


On 12/10/19 9:36 PM, Stefan Seelmann wrote:
> Hi Dave,
> 
> the below OOM error looks weird. When it creates the "Connections" view
> with all the actions it seems the paste action gets active and it reads
> from your clipboard. If so I'd say that's a bug, I'll investigate.
> 
> It it possible that there is a huge text in your clipboard you copied
> before starting Studio? Can you try to clean it?
> 
> Kind Regards,
> Stefan
> 
> On 12/10/19 7:44 PM, David Parker wrote:
>> Hello,
>>
>> This is starting to get a bit frustrating.  I continue to have heap-related
>> crashes on startup, using both 2.0.0-M13 and 2.0.0-M14.  I thought I had
>> solved my problem with a clean install of M13 and Java 8u161, but a few
>> days later, I'm back to the exact same issue.  I did not have any of these
>> problems until I got a new desktop PC and upgraded from Debian 9 to Debian
>> 10.  The LDAP schemas have not changed, and are not very big.  I have no
>> idea what's causing ADS to crash on startup with the heap error.
>>
>> Any help is greatly appreciated.
>>
>> Here's my ~/.ApacheDirectoryStudio/.metadata/.log from a recent launch
>> attempt (this is launching 2.0.0-M13):
>>
>> java.lang.OutOfMemoryError: Java heap space
>> at java.lang.StringCoding$StringDecoder.decode(StringCoding.java:149)
>> at java.lang.StringCoding.decode(StringCoding.java:193)
>> at java.lang.StringCoding.decode(StringCoding.java:254)
>> at java.lang.String.<init>(String.java:546)
>> at java.lang.String.<init>(String.java:566)
>> at
>> org.apache.directory.studio.connection.ui.dnd.ConnectionTransfer.nativeToJava(ConnectionTransfer.java:169)
>> at org.eclipse.swt.dnd.Clipboard.getContents(Clipboard.java:320)
>> at org.eclipse.swt.dnd.Clipboard.getContents(Clipboard.java:240)
>> at
>> org.apache.directory.studio.connection.ui.actions.PasteAction.getFromClipboard(PasteAction.java:290)
>> at
>> org.apache.directory.studio.connection.ui.actions.PasteAction.getConnectionsToPaste(PasteAction.java:181)
>> at
>> org.apache.directory.studio.connection.ui.actions.PasteAction.getText(PasteAction.java:62)
>> at
>> org.apache.directory.studio.connection.ui.actions.StudioActionProxy.<init>(StudioActionProxy.java:68)
>> at
>> org.apache.directory.studio.connection.ui.actions.StudioActionProxy.<init>(StudioActionProxy.java:94)
>> at
>> org.apache.directory.studio.connection.ui.actions.ConnectionViewActionProxy.<init>(ConnectionViewActionProxy.java:45)
>> at
>> org.apache.directory.studio.connection.ui.widgets.ConnectionActionGroup.<init>(ConnectionActionGroup.java:141)
>> at
>> org.apache.directory.studio.ldapbrowser.ui.views.connection.ConnectionViewActionGroup.<init>(ConnectionViewActionGroup.java:95)
>> at
>> org.apache.directory.studio.ldapbrowser.ui.views.connection.ConnectionView.createPartControl(ConnectionView.java:138)
>> at
>> org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:150)
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@directory.apache.org
> For additional commands, e-mail: users-h...@directory.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@directory.apache.org
For additional commands, e-mail: users-h...@directory.apache.org

Reply via email to