<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="http://theeyetribe.com/forum/feed.php?f=25&amp;t=513" />

<title>The Eye Tribe</title>
<subtitle>Developer Forum</subtitle>
<link href="http://theeyetribe.com/forum/index.php" />
<updated>2015-07-22T18:10:28+02:00</updated>

<author><name><![CDATA[The Eye Tribe]]></name></author>
<id>http://theeyetribe.com/forum/feed.php?f=25&amp;t=513</id>
<entry>
<author><name><![CDATA[Micky]]></name></author>
<updated>2015-07-22T18:10:28+02:00</updated>
<published>2015-07-22T18:10:28+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=513&amp;p=2168#p2168</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=513&amp;p=2168#p2168"/>
<title type="html"><![CDATA[Re: Concurrency Problems]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=513&amp;p=2168#p2168"><![CDATA[
It is possible to have multiple trackers connected to the same system. Just remember to assign different tcp ports for each instance (--port, or in config) along with the device index (--device, or in config), e.g. if two TheEyeTracker devices are connected start two servers like:<br /><dl class="codebox"><dt>Code: </dt><dd><code>1: EyeTribe --device=0 --port=6555  (default)<br />2: EyeTribe --device=1 --port=6556<br /></code></dd></dl><br />We have a boost synchronization bug in the C++ SDK that basically prevents you from using multiple GazeApi objects within the same process. It is often shown as memory issues at different places. We have fixed this with the next release of the SDK. In the mean time you can solve the issue by adding <br /><dl class="codebox"><dt>Code: </dt><dd><code>#define BOOST_SPIRIT_THREADSAFE<br /></code></dd></dl><br />in the C++ SDK header/source files before including any boost/property_tree headers. Some details about the same problem can be found here: <a href="http://stackoverflow.com/questions/8156948/is-boostproperty-treeptree-thread-safe" class="postlink">http://stackoverflow.com/questions/8156948/is-boostproperty-treeptree-thread-safe</a><br /><br />The following C++ code sample should then work without the crash:<br /><dl class="codebox"><dt>Code: </dt><dd><code>  GazeListenerObj gaze; // derived from gtl::IGazeListener<br /><br />  gtl::GazeApi api0;<br />  api0.add_listener( gaze );<br />  api0.connect( 6555 );<br /><br />  gtl::GazeApi api1;<br />  api1.add_listener( gaze );<br />  api1.connect( 6556 );<br /></code></dd></dl><p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=6640">skataMicky</a> — 22 Jul 2015, 18:10</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[ignaciofallas@gmail.com]]></name></author>
<updated>2015-07-15T14:05:17+02:00</updated>
<published>2015-07-15T14:05:17+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=513&amp;p=2152#p2152</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=513&amp;p=2152#p2152"/>
<title type="html"><![CDATA[Re: Concurrency Problems]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=513&amp;p=2152#p2152"><![CDATA[
Thanks, it would be great if in such a case you keep me notified. I'll myself try to come up with a solution in the near future, because I need this soon, if I find the solution I'll let you know.<br /><br /><br />Best regards,<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=8856">skataignaciofallas@gmail.com</a> — 15 Jul 2015, 14:05</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Anders]]></name></author>
<updated>2015-07-15T13:49:19+02:00</updated>
<published>2015-07-15T13:49:19+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=513&amp;p=2151#p2151</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=513&amp;p=2151#p2151"/>
<title type="html"><![CDATA[Re: Concurrency Problems]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=513&amp;p=2151#p2151"><![CDATA[
<blockquote class="uncited"><div><br />Yes I'm completely sure. Is good to know the official answer then. If some day you want to support concurrency I'll be glad to hear it.<br /></div></blockquote><br /><br />I'll let our C++ team know about this, but since this is not officially supported, I cannot promise that it is something we'll look into in a near future (if ever).<br /><br />Should you find a solution to the SDK issue, feel free to contribute it to the <a href="https://github.com/EyeTribe/tet-cpp-client" class="postlink">GitHub project</a>.<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=120">skataAnders</a> — 15 Jul 2015, 13:49</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[ignaciofallas@gmail.com]]></name></author>
<updated>2015-07-15T13:39:28+02:00</updated>
<published>2015-07-15T13:39:28+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=513&amp;p=2150#p2150</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=513&amp;p=2150#p2150"/>
<title type="html"><![CDATA[Re: Concurrency Problems]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=513&amp;p=2150#p2150"><![CDATA[
Yes I'm completely sure. Is good to know the official answer then. If some day you want to support concurrency I'll be glad to hear it. <br /><br />Thanks again<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=8856">skataignaciofallas@gmail.com</a> — 15 Jul 2015, 13:39</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Anders]]></name></author>
<updated>2015-07-15T12:54:45+02:00</updated>
<published>2015-07-15T12:54:45+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=513&amp;p=2149#p2149</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=513&amp;p=2149#p2149"/>
<title type="html"><![CDATA[Re: Concurrency Problems]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=513&amp;p=2149#p2149"><![CDATA[
<blockquote class="uncited"><div><br />I have two TET trackers connected in the same computer with the respective servers for each tracker at different ports. Now I want to connect using the sdk to both servers at the same time and get the data from each of them. I'm having memory violations when getting the gazedata, and I guess this is due to the structures of the file &quot;gazeapi_types.h&quot; which are single and probably both instances of the sdk are using at the same time.<br /></div></blockquote><br /><br />Well then I am afraid that is your problem. The Eye Tribe Dev Kit do not officially support several trackers connected to one machine.<br /><br />That being said, have you made sure that the two SDKs instances use each their ports when instantiated?<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=120">skataAnders</a> — 15 Jul 2015, 12:54</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[ignaciofallas@gmail.com]]></name></author>
<updated>2015-07-15T12:17:25+02:00</updated>
<published>2015-07-15T12:17:25+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=513&amp;p=2148#p2148</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=513&amp;p=2148#p2148"/>
<title type="html"><![CDATA[Re: Concurrency Problems]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=513&amp;p=2148#p2148"><![CDATA[
Hi again, <br /><br />I have two TET trackers connected in the same computer with the respective servers for each tracker at different ports.  Now I want to connect using the sdk to both servers at the same time and get the data from each of them. I'm having memory violations when getting the gazedata, and I guess this is due to the structures of the file &quot;gazeapi_types.h&quot; which are single and probably both instances of the sdk are using at the same time.<br /><br />Best,<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=8856">skataignaciofallas@gmail.com</a> — 15 Jul 2015, 12:17</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Anders]]></name></author>
<updated>2015-07-15T12:07:20+02:00</updated>
<published>2015-07-15T12:07:20+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=513&amp;p=2147#p2147</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=513&amp;p=2147#p2147"/>
<title type="html"><![CDATA[Re: Concurrency Problems]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=513&amp;p=2147#p2147"><![CDATA[
<blockquote class="uncited"><div><br />I'm trying to connect two eyetribes to the same program I'm building. I have found that it fails for memory violations when this line: &quot;if (gaze_data.state &amp; gtl::GazeData::GD_STATE_TRACKING_GAZE)&quot; is executed. What I can see is that GazeData contains single structures that in case of creating two instances of the GazeListener class will be used/accessed for those two instances, causing the system to fail. Please correct me if I'm wrong here, but so far the only solution I can see is to create another class that stores this information allocating this memory separately for each instance of a GazeListener, but this is a mayor change in the sdk.<br />I was wondering if you have some help here, any other solution or even some example or guidance. I would be very thankful with any help.<br /></div></blockquote><br /><br />In order to help you I first need to understand the problem you have.<br /><br />Are you saying that you have two TET trackers connected to the same computer? Or are you saying that you have two instances of the TET C++ SDK running at the same time?<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=120">skataAnders</a> — 15 Jul 2015, 12:07</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[ignaciofallas@gmail.com]]></name></author>
<updated>2015-07-15T10:54:02+02:00</updated>
<published>2015-07-15T10:54:02+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=513&amp;p=2146#p2146</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=513&amp;p=2146#p2146"/>
<title type="html"><![CDATA[Concurrency Problems]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=513&amp;p=2146#p2146"><![CDATA[
Hi, <br /><br />I'm trying to connect two eyetribes to the same program I'm building. I have found that it fails for memory violations when this line: &quot;if (gaze_data.state &amp; gtl::GazeData::GD_STATE_TRACKING_GAZE)&quot; is executed. What I can see is that GazeData contains single structures that in case of creating two instances of the GazeListener class will be used/accessed for those two instances, causing the system to fail. Please correct me if I'm wrong here, but so far the only solution I can see is to create another class that stores this information allocating this memory separately for each instance of a GazeListener, but this is a mayor change in the sdk. <br />I was wondering if you have some help here, any other solution or even some example or guidance. I would be very thankful with any help.<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=8856">skataignaciofallas@gmail.com</a> — 15 Jul 2015, 10:54</p><hr />
]]></content>
</entry>
</feed>