<p dir="auto">Hi,</p>
<p dir="auto">I found problem in<br>
parentLocation = self.locations[parentTask.locationID]</p>
<p dir="auto">In python script:<br>
<a href="https://github.com/opencv/opencv/blob/master/modules/ts/misc/trace_profiler.py">https://github.com/opencv/opencv/blob/master/modules/ts/misc/trace_profiler.py</a></p>
<ul dir="auto">
<li>Read the documentation to test with the latest developer build.</li>
<li>Check if other person has already created the same issue to avoid duplicates. You can comment on it if there already is an issue.</li>
<li>Try to be as detailed as possible in your report.</li>
<li>Report only one problem per created issue.</li>
</ul>
<h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV =&gt; 3.4.1</li>
<li>Operating System / Platform =linux 64 Bit</li>
<li>Compiler =GCC<br>
--&gt;</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">I found problem in<br>
parentLocation = self.locations[parentTask.locationID]</p>
<p dir="auto">In python script:<br>
<a href="https://github.com/opencv/opencv/blob/master/modules/ts/misc/trace_profiler.py">https://github.com/opencv/opencv/blob/master/modules/ts/misc/trace_profiler.py</a></p>
<p dir="auto">first I found problem in read file string<br>
<a href="https://github.com/opencv/opencv/blob/3.4.1/modules/ts/misc/trace_profiler.py#L164">https://github.com/opencv/opencv/blob/3.4.1/modules/ts/misc/trace_profiler.py#L164</a><br>
This I fix by put whole name in variable:<br>
filename = 'OpenCVTrace-000.txt'; before was '/OpenCVTrace-000.txt'<br>
But after that I still get error<br>
Traceback (most recent call last):<br>
File "trace_profiler.py", line 442, in <br>
trace.process()<br>
File "trace_profiler.py", line 287, in process<br>
parentLocation = self.locations[parentTask.locationID]<br>
KeyError: 1</p>
<p dir="auto">It show that dict is empty.<br>
Test report file can by find in attachment.</p>
<p dir="auto">--&gt;</p>
<p dir="auto">used command:<br>
python trace_profiler.py /home/root/opencv_dnn_bench/trace/OpenCVTrace.txt<br>
<a href="https://github.com/opencv/opencv/files/2580605/OpenCVTrace.txt">OpenCVTrace.txt</a><br>
<a href="https://github.com/opencv/opencv/files/2580606/OpenCVTrace-000.txt">OpenCVTrace-000.txt</a></p>
<h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV =&gt; 4.2.0</li>
<li>Operating System / Platform =&gt; Ubuntu 18.04, macOS 10.14, Windows 64 Bit</li>
<li>Compiler =&gt; gcc-7.2, Apple Clang XCode 11.3, Visual Studio 2017, Visual Studio 2019</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">I've found that some of my non-OpenCV thirdparty libraries are copied to the installation directory into <code class="notranslate">lib/opencv4/3rdparty/</code>. This is breaking my build because I can no longer resolve duplicate linking. Some libraries from <code class="notranslate">lib/opencv4/3rdparty/</code> where copied from <code class="notranslate">lib/</code> and exist now twice under different names. When they get pulled into the build by different dependencies then I can not easily resolve the duplication.</p>
<p dir="auto">What is the purpose of <code class="notranslate">lib/opencv4/3rdparty/</code>? And can it be disabled/avoided/removed?</p>