Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Why does touching the buffers on data events cause JXcore to crawl to a near halt? #71

Open
yaronyg opened this issue Oct 28, 2016 · 4 comments
Assignees

Comments

@yaronyg
Copy link
Member

yaronyg commented Oct 28, 2016

The specific issue we ran into is in createPeerListener on incoming where we wanted to put on a data listener. But if we add the listener, even if it literally does nothing, it causes everything (on desktop anyway) in JXcore to slow to such a crawl that tests time out.

@enricogior
Copy link
Member

enricogior commented Nov 2, 2016

Is there a test to reproduce the issue?

@yaronyg yaronyg assigned yaronyg and unassigned enricogior Nov 2, 2016
@yaronyg
Copy link
Member Author

yaronyg commented Nov 2, 2016

I need to specify a test and where to put the on data events to show the crash.

@andrew-aladev
Copy link

andrew-aladev commented Nov 3, 2016

Maybe this is related with issue, because we are working on createPeerListener.

  1. clone [email protected]:thaliproject/ThaliTestApp.git branch aaladev_1407
  2. clone [email protected]:thaliproject/Thali_CordovaPlugin.git branch master_yarong_1446
  3. cd Thali_CordovaPlugin && ./build.sh
  4. cd ../ThaliTestApp && ./prepare.sh
  5. jx runOnDesktop.js 1 native > /tmp/fit1.txt & && jx runOnDesktop.js 2 native > /tmp/fit2.txt
  6. grep "round" /tmp/fit*

We are doing about 4-6 rounds and than one process returns segfault.

@yaronyg yaronyg assigned enricogior and unassigned yaronyg Nov 3, 2016
@yaronyg
Copy link
Member Author

yaronyg commented Nov 3, 2016

This has been promoted to working because we suspect it is related to thaliproject/Thali_CordovaPlugin_BtLibrary#69 but otherwise this should be in backlog for now since we don't need to use the buffer in the data event.

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

No branches or pull requests

3 participants