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

syntax error: unexpected '$4��g4' #48

Open
CoreDev333 opened this issue Oct 29, 2018 · 4 comments
Open

syntax error: unexpected '$4��g4' #48

CoreDev333 opened this issue Oct 29, 2018 · 4 comments

Comments

@CoreDev333
Copy link

CoreDev333 commented Oct 29, 2018

I'm trying to use this library on Android but after make universal and android build I've tried to inicialize Tor as described on samples. Turn's out this error came everytime.

I/OnionProxyManager: Starting Tor
W/OnionProxyManager: Tor exited with value 1
E/TorTest: Couldn't start Tor!
E/OnionProxyManager: /data/user/0/org.thoughtcrime.securesms/app_torfiles/tor[1]: syntax error: unexpected '�$��4��g�4'

Also I have to comment on OnionProxyManager.java because there is no such method on Control Connection.

line 391  // controlConnection.takeOwnership();
@CoreDev333
Copy link
Author

While debugging I found where error came from:

try {
  torProcess = processBuilder.start();
  CountDownLatch controlPortCountDownLatch = new CountDownLatch(1);
  eatStream(torProcess.getInputStream(), false, controlPortCountDownLatch);
  eatStream(torProcess.getErrorStream(), true, null);

at line 364 on class OnionProxyManager.
When ErrorStream is consumed I got the error described above.

Everything was working ok until it. Variebles getting values, context passing between classes.

@JesusMcCloud
Copy link

Try https://github.com/JesusMcCloud/netlayer for far more up-to-date tor bindings

@CoreDev333
Copy link
Author

CoreDev333 commented Oct 30, 2018

@JesusMcCloud I will look into it.
Is this repo suitable for android?

Actually not
JesusMcCloud/netlayer#10

@yaronyg
Copy link
Member

yaronyg commented Oct 30, 2018

Yeah to be clear, nobody is supporting this repo anymore. I don't have time to sleep these days much less handle side projects. :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants