<?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="https://blueirissoftware.com/forum/app.php/feed/topic/2739" />

	<title>Blue Iris</title>
	<subtitle>Blue Iris User Group</subtitle>
	<link href="https://blueirissoftware.com/forum/index.php" />
	<updated>2021-10-14T15:06:53+00:00</updated>

	<author><name><![CDATA[Blue Iris]]></name></author>
	<id>https://blueirissoftware.com/forum/app.php/feed/topic/2739</id>

		<entry>
		<author><name><![CDATA[varghesesa]]></name></author>
		<updated>2021-10-14T15:06:53+00:00</updated>

		<published>2021-10-14T15:06:53+00:00</published>
		<id>https://blueirissoftware.com/forum/viewtopic.php?p=10810#p10810</id>
		<link href="https://blueirissoftware.com/forum/viewtopic.php?p=10810#p10810"/>
		<title type="html"><![CDATA[Server issues - Isolate Issue]]></title>

		
		<content type="html" xml:base="https://blueirissoftware.com/forum/viewtopic.php?p=10810#p10810"><![CDATA[
<span style="font-size:150%;line-height:116%"><strong class="text-strong">Introduction</strong></span><br><br>There are many reasons why BI can crash.  Support often requests:<ul><li>Verify all Security Software Exemptions.  See <a href="viewtopic.php?f=14&amp;t=2080" class="postlink">Windows Tuning article</a> for details.</li><li>Monitor RAM and CPU usage to verify these are stable and not leading to the issue.<br>If RAM is continuing to grow, it is often due to incorrect Security Software exclusions.<br>If CPU utilization is &gt;65%, re-add your cameras using best practices.<br>The biggest CPU savings are dual streams on all cameras / Direct to disc recording / hardware acceleration (e.g. Intel QuickSync).<br>The <a href="viewtopic.php?f=11&amp;t=2426" class="postlink">Connect cameras correctly</a> section in the Checklist walks through connecting cameras correctly.</li><li>Attempt to isolate any source of instability by temporarily disabling specific cameras.</li></ul>This article is about <strong class="text-strong">how do you isolate any source of instability by temporarily disabling specific cameras</strong>.<br><br><br><span style="font-size:150%;line-height:116%"><strong class="text-strong">Isolate the Issue</strong></span><br><br>Recently, an update caused instability to my machine.  The symptom was switching Profiles caused BI to crash.<br>This is often where a user stops with ticket information.<br><br>Below is the information I provided which led to resolution.<br>Engineering started working on the issue at 1:50 PM.<br>Engineering resolved the issue at 2:50 PM.<br><br>With the right information, it is easy to resolve software issues that result in a crash.<ul><li>Can you provide steps to reproduce the issue?</li><li>Can you isolate the issue to a particular camera?</li></ul><blockquote class="uncited"><div>I started with a video showing the steps to reproduce the issue.  Sometimes, there are enough clues in the video for engineering to have ideas.<br>This time they needed more information.</div></blockquote><blockquote class="uncited"><div>Engineering response:<br><br>Hello Sam ... same as for a customer:<br><br>See troubleshooting in help for instructions on locating/reporting error details.<br>Does this happen if not running as a service?<br>Does it happen if camera X is enabled?</div></blockquote>My responses as I investigated to isolate the issue.<br><blockquote class="uncited"><div>Crashes as a service.  Still crashes when not running as a service.<br><br>Faulting application name: BlueIris.exe, version: 5.5.1.8, time stamp: 0x61659f5b<br>Faulting module name: mfc140u.dll, version: 14.26.28720.3, time stamp: 0x5e74b0d1<br>Exception code: 0xc0000005<br>Fault offset: 0x00000000002c34b0<br>Faulting process id: 0x1670<br>Faulting application start time: 0x01d7bf92f0a6f7e3<br>Faulting application path: C:\Program Files\Blue Iris 5\BlueIris.exe<br>Faulting module path: C:\Windows\SYSTEM32\mfc140u.dll<br>Report Id: 744bd896-188f-4447-ab99-3ba5384b2adf<br>Faulting package full name:<br>Faulting package-relative application ID: <br><br>Testing cameras.  Standby.<br></div></blockquote>Provided visual to engineering so EASY to understand.<br><blockquote class="uncited"><div>With one camera.  Switching from Profile 0 -&gt; 2<br>I can now reproduce the issue with just one camera.<br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=1967" class="postimage" alt="isolate_img1.png" onclick="viewableArea(this);" /></dt></dl></div><br>Faulting application name: BlueIris.exe, version: 5.5.1.8, time stamp: 0x61659f5b<br>Faulting module name: ntdll.dll, version: 10.0.19041.1202, time stamp: 0x4f115fac<br>Exception code: 0xc0000374<br>Fault offset: 0x00000000000ff199<br>Faulting process id: 0x1494<br>Faulting application start time: 0x01d7bf935d7d72f7<br>Faulting application path: C:\Program Files\Blue Iris 5\BlueIris.exe<br>Faulting module path: C:\Windows\SYSTEM32\ntdll.dll<br>Report Id: 253e4276-0f40-4ed5-888d-3d902572255f<br>Faulting package full name:<br>Faulting package-relative application ID:</div></blockquote>More test cases to isolate the issue: Is the Profile switch the problem or something else?<br>Is the Profile switch just a red herring for something else?<br>Confirmed the active cameras + profile change is causing the issue.<br><blockquote class="uncited"><div>Disabling camera.<br>Switching profiles.<br>Enabling camera.<br>Software runs.</div></blockquote>Turn stuff off on the one camera.  Are the camera settings for this one camera causing the issue?<br><blockquote class="uncited"><div>Camera settings: H/W Accel = Intel.<br>H/W Accel on/off has no impact.<br>Still crashes on profile switch.</div></blockquote>Visuals always help understanding.<br><blockquote class="uncited"><div>Suspicious of clones.  Enabled non-cloned camera.<br>No issues switching profiles so far.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=1968" class="postimage" alt="isolate_img2.png" onclick="viewableArea(this);" /></dt></dl></div></div></blockquote>Another visual for better understanding.<br><blockquote class="uncited"><div>Two non-cloned cameras.<br>No issues switching profiles.<br>Let me know when you can reproduce the error.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=1969" class="postimage" alt="isolate_img3.png" onclick="viewableArea(this);" /></dt></dl></div></div></blockquote>Reconfirmed my suspicion that clones are causing the crash.<br><blockquote class="uncited"><div>Enabled bottom left camera (also a clone).<br>Switch from Profile 2 -&gt; 0 caused a crash.<br><br>Faulting application name: BlueIris.exe, version: 5.5.1.8, time stamp: 0x61659f5b<br>Faulting module name: mfc140u.dll, version: 14.26.28720.3, time stamp: 0x5e74b0d1<br>Exception code: 0xc0000005<br>Fault offset: 0x00000000002c34b0<br>Faulting process id: 0xd48<br>Faulting application start time: 0x01d7bf94c030fef0<br>Faulting application path: C:\Program Files\Blue Iris 5\BlueIris.exe<br>Faulting module path: C:\Windows\SYSTEM32\mfc140u.dll<br>Report Id: 24b89ecf-c541-418f-be7f-fe3232d7f47c<br>Faulting package full name:<br>Faulting package-relative application ID:<br><br>In Event Viewer Crash Event always followed by:<br><br>Fault bucket 1677643144606994550, type 4<br>Event Name: APPCRASH<br>Response: Not available<br>Cab Id: 0<br><br>Problem signature:<br>P1: BlueIris.exe<br>P2: 5.5.1.8<br>P3: 61659f5b<br>P4: mfc140u.dll<br>P5: 14.26.28720.3<br>P6: 5e74b0d1<br>P7: c0000005<br>P8: 00000000002c34b0<br>P9:<br>P10:<br><br>Attached files:<br>\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERC6EA.tmp.mdmp<br>\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERC891.tmp.WERInternalMetadata.xml<br>\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERC8A2.tmp.xml<br>\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERC8B0.tmp.csv<br>\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERC8D0.tmp.txt<br><br>These files may be available here:<br>\\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_BlueIris.exe_c687f6ab5d0f4b5206f43e9c6e677773abae78_9f5cc1ae_23a5bd04-3fd0-497a-a405-30d5b2f15853</div></blockquote><span style="font-size:150%;line-height:116%"><strong class="text-strong">Engineering Addresses Issue</strong></span><br><br>Engineering requested BI Settings.<br><br>Some more feedback I shared:<br><blockquote class="uncited"><div>FYI, under profile 2, the clone masters become inactive.  That could be the key.<br>The clones however become active.</div></blockquote>An hour later, Engineering found the issue.<br><br>I asked engineering for details on how they resolved the issue:<br><blockquote class="uncited"><div>Good work.  Thanks!<br><br>I'm assuming you had to replicate the crash before resolving the issue.  <br>What helped you get to the root cause.<br>Did any of my symptoms help?<br>Did you simply import my registry, assign valid IP addresses to my cameras and reproduce the crash?<br><br>I want to document this example so users know what it takes to resolve crashes.</div></blockquote>Engineering response:<br><blockquote class="uncited"><div>I just started eliminating things.  <br><br>Deleted all of the groups. <br>Disabled other cameras.  <br>It was the clone. <br>Disabled deepstack on it then no crash</div></blockquote><span style="font-size:150%;line-height:116%"><strong class="text-strong">Conclusion</strong></span><br><br>I was able to Isolate the issue by identifying a single camera (clone) with steps to reproduce the crash.<br>From there, Engineering turned off settings on the camera to identify the root cause.<br><br>The core issue was incorrectly handling static object detection when camera streams turn off.<p>Statistics: Posted by <a href="https://blueirissoftware.com/forum/memberlist.php?mode=viewprofile&amp;u=521">varghesesa</a> — Thu Oct 14, 2021 3:06 pm</p><hr />
]]></content>
	</entry>
	</feed>
