Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GC endless Loop on Java -> JS -> Java Conversion #320

Closed
NathanaelA opened this issue Dec 23, 2015 · 1 comment
Closed

GC endless Loop on Java -> JS -> Java Conversion #320

NathanaelA opened this issue Dec 23, 2015 · 1 comment
Assignees
Milestone

Comments

@NathanaelA
Copy link
Contributor

I'm not sure why this is causing issues; but I can duplicate the issue NathanaelA/nativescript-websockets#5 that was reported to me. Basically trying to create a SSL connection in JavaScript goes into a endless GC loop.
The Code:

if (this._url.indexOf("wss:") === 0) {
        var sslContext = javax.net.ssl.SSLContext.getInstance( "TLS" );
        sslContext.init( null, null, null );
        var socketFactory = sslContext.getSocketFactory();
    var CS = socketFactory.createSocket();

        // This line is where it goes into its endless loop.  Outputting the typeof CS = [object Object]
        this._socket.setSocket( CS );
    }

So I assume the issue is when it tries to marshall the CS variable back into Java that it must be having some weird problem to be causing a bazillion GC messages to appear (until you kill the app).

Test Application:
testComm.zip

@NathanaelA

This comment was marked as abuse.

@slavchev slavchev added the bug label Jan 4, 2016
@slavchev slavchev added this to the 1.6.0 (Under review) milestone Jan 4, 2016
@slavchev slavchev self-assigned this Jan 4, 2016
slavchev pushed a commit that referenced this issue Jan 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants