Blueiris 5 memory leak

wh@tever

Young grasshopper
Joined
Nov 7, 2017
Messages
39
Reaction score
2
am i the only person having a memory leak issue with blueiris? If i dont use the remote access webui or android app i have no issues. as soon as i use the android app i can slowly watch the memory usage go up until 10 hours later blueiris completely locks up. im not using quicksync im aware of the driver issue. I personally do not think the version 5 upgrade was worth it. the ui still has the same old feel and same OLD features v4 did. i think the "major" upgrade is more of a joke than a practical thing. Ive had nothing but problems with blueiris 5. i contacted support and their response was check my antivirus... i mean really... i have had to have countless updates to fix problems ive reported and now it just seems more and more broken after each update. these people need to pay real developers and build solid software. I'm very disappointed with blueiris right now. It even still has the same old junk user permissions. and just keeps crashing. im sick of coming home to have to force close the software. keep in mind my cpu never reaches over 50 percent.
 

fenderman

Staff member
Joined
Mar 9, 2014
Messages
36,902
Reaction score
21,274
am i the only person having a memory leak issue with blueiris? If i dont use the remote access webui or android app i have no issues. as soon as i use the android app i can slowly watch the memory usage go up until 10 hours later blueiris completely locks up. im not using quicksync im aware of the driver issue. I personally do not think the version 5 upgrade was worth it. the ui still has the same old feel and same OLD features v4 did. i think the "major" upgrade is more of a joke than a practical thing. Ive had nothing but problems with blueiris 5. i contacted support and their response was check my antivirus... i mean really... i have had to have countless updates to fix problems ive reported and now it just seems more and more broken after each update. these people need to pay real developers and build solid software. I'm very disappointed with blueiris right now. It even still has the same old junk user permissions. and just keeps crashing. im sick of coming home to have to force close the software. keep in mind my cpu never reaches over 50 percent.
Yes you are the only one.
Use another vms. Thousands of other users here don’t have your many problems. I have over 20 blue Iris machines running without issue. Blue Iris is developed by a single person who does an outstanding job and that’s why you can get this exceptional software for only $60. That fee won’t get you support for your own user errors. The key to a stable and problem free blue iris installation is using adequate hardware And clean installing Blue Iris on a dedicated machine.
There is a list of updates and improvements with Blue Iris five they are well worth the measly $30 it cost to upgrade. If you thought Blue Iris and it’s updates were expensive wait till you experience other VMS.
Please report back as to what software you end up going with.
 

wh@tever

Young grasshopper
Joined
Nov 7, 2017
Messages
39
Reaction score
2
i do have adequate hardware, im using a rtx 2080ti and a gtx 1080ti for decoding my camera streams. the cpu is a 8700k and running almost 22 of my 6mp cameras im only using about 45 percent of the cpu. if i restart blueiris and never connect to the webui or with the android app it runs perfectly indefinitely. when blueiris freezes my computer is still working fine and responsive however blueiris is not. i cant even stop the service i have to force close the program. i guess it could have something to do with a recent nvidia graphic card driver update. i too have multiple bluiris pc's in this configuration and i have zero issues with them because 4 out of 5 are running blueiris 4.
 

fenderman

Staff member
Joined
Mar 9, 2014
Messages
36,902
Reaction score
21,274
i do have adequate hardware, im using a rtx 2080ti and a gtx 1080ti for decoding my camera streams. the cpu is a 8700k and running almost 22 of my 6mp cameras im only using about 45 percent of the cpu. if i restart blueiris and never connect to the webui or with the android app it runs perfectly indefinitely. when blueiris freezes my computer is still working fine and responsive however blueiris is not. i cant even stop the service i have to force close the program. i guess it could have something to do with a recent nvidia graphic card driver update. i too have multiple bluiris pc's in this configuration and i have zero issues with them because 4 out of 5 are running blueiris 4.
It’s not related to Blue Iris five
 

wh@tever

Young grasshopper
Joined
Nov 7, 2017
Messages
39
Reaction score
2
How can you say this do you have access to the source code? can you real time debug the software? im telling you even since he starting pushing out updates in the last month i've had nothing but problems with it. google will reveal a lot of other uses experiencing similar issues. one thing i notice is when i connect with the app if i look on the right side where the alert images as in the default screen i can see the camera flash every couple of seconds as if the cameras are restarting "the image with the vertical colored bars. the stream is in fact not resetting they just glitch out like that. and again my issues only persist when i use the webui or app to connect to blue iris. since my pc has 64 gb of ram it take about 10 hours but blue iris starts chewing up ram until its crashed.
 

wh@tever

Young grasshopper
Joined
Nov 7, 2017
Messages
39
Reaction score
2
Tell me, if its not blue iris that has an issue what do you think it would be. i mean im open to ideas. again tho like you said, its a one man developer that handles the whole program? im not dissing on blue iris i really like blue iris. However ever since the release of v5 i have had to report numerous problems that needed to be fixed. He did drop updates right away to fix a lot of the issues but now theres this issue. a month ago i did not have this issue.
 

wh@tever

Young grasshopper
Joined
Nov 7, 2017
Messages
39
Reaction score
2
what about geovision. i don't care about the $600. is there any reason not to use it compared to blue iris except the price?
 

anijet

Pulling my weight
Joined
Mar 10, 2014
Messages
346
Reaction score
165
Location
CA
Why don't you just revert back to v4? Sounds like it would solve all your problems.
 

Steven4x4

Young grasshopper
Joined
Apr 22, 2017
Messages
35
Reaction score
12
Best Practices:
Before you update drivers or software, or install new software, always backup your system.
Or if your system is running in a VM, even better, create a snapshot or checkpoint.
Then Install/Update, test it, if something failed, roll back, if nothing apparent fails, then continue to test for the next couple of days before deleting that snapshot.
There are numerous factors that come into affect.
I've ran into random issues in the past and this helped me to quickly overcome them.
Alternatively, if you can lose half a day, revert to your backup from the day before if you have automatic backups enabled using a specific software. (I'd recommend Veeam).
 

wh@tever

Young grasshopper
Joined
Nov 7, 2017
Messages
39
Reaction score
2
TBH reverting back to v4 sounds like the best idea as its the most stable. and there are hardly any reason to really update unless your running and want to join multiple sessions together or use the new AI services. to me the new ui in v5 is a downgrade and has no new features, looks terrible and you cant control hardly anything about the layout still
 

Ssayer

BIT Beta Team
Joined
Jan 5, 2016
Messages
19,608
Reaction score
70,938
Location
SE Michigan USA
Haha, you missed one very important part with your cut and paste (right at the top)... please allow me...

---------------------------------------------------------

Posted by u/pueblokc 6 months ago


Blue iris memory leak

Hey all, been dealing with a random issue with blue iris 5

--------------------------------------------------------------

Do I need to highlight the "6 months ago" part? :p

Many, many, many, many users here, and only you seem to have the problem you're stating. Yep, must be Blue Iris's fault! :p :p :p
 

wh@tever

Young grasshopper
Joined
Nov 7, 2017
Messages
39
Reaction score
2
Sssayer, must be that agent orange effecting you brain. i mean by all means i allow you to put your foot in your mouth, and get your head out of the place the sun dont shine.
 
Last edited:

fenderman

Staff member
Joined
Mar 9, 2014
Messages
36,902
Reaction score
21,274
How can you say this do you have access to the source code? can you real time debug the software? im telling you even since he starting pushing out updates in the last month i've had nothing but problems with it. google will reveal a lot of other uses experiencing similar issues. one thing i notice is when i connect with the app if i look on the right side where the alert images as in the default screen i can see the camera flash every couple of seconds as if the cameras are restarting "the image with the vertical colored bars. the stream is in fact not resetting they just glitch out like that. and again my issues only persist when i use the webui or app to connect to blue iris. since my pc has 64 gb of ram it take about 10 hours but blue iris starts chewing up ram until its crashed.
I can say this because there are THOUSANDS of blue iris 5 users on this forum many of who stream using the webserver and this is THE ONLY POST WITH THIS SPECIFIC MEMORY LEAK. You would think there would be at lest one other.
 

fenderman

Staff member
Joined
Mar 9, 2014
Messages
36,902
Reaction score
21,274
TBH reverting back to v4 sounds like the best idea as its the most stable. and there are hardly any reason to really update unless your running and want to join multiple sessions together or use the new AI services. to me the new ui in v5 is a downgrade and has no new features, looks terrible and you cant control hardly anything about the layout still
Please dont lie claiming no new features. Here is a list of new features and keep in mind new features are added monthly.
Blue iris 5 is 100 percent stable on my 20+ systems. No one has the issue you have. This is an issue on your particular system. Figure it out.
OR sit there using old software for the next 10 years because you are too cheap to spend 30 bux on the upgrade.

W H AT ’ S N E W
With hundreds of updates, so much has changed since version 4 was first released in
December 2014. But 4.5 years later, it’s time to take Blue Iris to the next level with this
major upgrade to version 5. Here’s what you can expect to find:
UI refresh
Every element was redesigned and re-rendered for a consistent, high-contrast, high-
resolution and modern aesthetic. Buttons and other tools have been more intuitively
grouped and sized. A new font has been selected for improved antialiasing and readability.
Help documentation refresh
It’s been awhile! The Help may now be read in book format as well as in-context via Adobe
Acrobat bookmarks throughout the UI. Major topics previously neglected have been re-
written to reflect all that has been added to this software over the years.
High DPI display awareness
Windows and UI elements will be scaled automatically to match your Windows Display
control panel selections. UI elements were designed to look sharp at up to 300 DPI. No
more tiny icons on 4K monitors and beyond.
Remote management
This is perhaps the most significant upgrade in terms of software power and flexibility—you
may now use one Blue Iris installation to manage many others simultaneously.
PAG E ? 7
When connected to one or more remote systems via the new remote management control
panel, you get a concise view of each system’s status. You may then make any remote Blue
Iris server ‘active’ in the UI, giving you complete virtual control of that remote Blue Iris
installation without the hassle or many shortcomings of an otherwise “remote desktop”
solution. BVR clips are opened using progressive download management so that only the
portions of the file of interest are transferred. Status pages, the timeline and clips lists are
refreshed as they are updated on the server. Sounds are played and popups may be
displayed locally from all remote connected systems. Configuration changes are made
seamlessly by uploading any edits.
Alert action set lists
Every possible action that’s supported by Blue Iris may now be applied to camera alerts as
well as many other conditions such as user account login, status messages, digital input
signals, and more. You may create a list of these actions to be executed in any order or
combination. Each action has an associated profile selector to allow you to manage actions
for all profiles together on one page.
PAG E ? 8
New alert action types
There are also new action types. These include toaster pop-up messages in the lower-right
corner of the Windows display, FTP transfers, and simply the ability to wait an arbitrary
time between consecutive actions. You now may specify the devices and text for push
notifications. Support for legacy Android GCM push notifications was added.
Clip management updates
In addition to its own UI refresh, the timeline view receives a couple of other interesting
updates—the ability to zoom in further and have alert images displayed directly on the clip
tracks.
The clip view list may be “unfolded” to fill the display with clip images. Days are delimited
by a solid color bar.
Viewer playback controls
In place of generic play/pause/stop buttons, a more interactive speed control has been
designed and implemented. For BVR content, you may now slide the speed control left to
slow down or reverse, or right to speed up and go forward. Click the horizontal control
anywhere to set the speed directly, or slide and release to return to the previous setting.
Camera configuration synchronization
On several camera settings pages you will find the option to synchronize that page with
another camera’s settings. This allows you to make changes to one camera’s settings and
have that affect one or more other cameras’ behavior. This will come in handy if you find
yourself setting (and then having to later adjust) the same alerts or other settings across
multiple cameras.
PAG E ? 9
Global volume control
You may now use the mute and volume controls to adjust the live volume on all cameras
simultaneously. For mixing levels, use the gain control found on each camera’s audio
settings page. The same mute and volume control is used by the clip viewer window as
well.
Technology
The time is right with a major software upgrade to also update development and runtime
environments. The latest Microsoft technologies, video processing and runtime libraries are
now used and redistributed. While we lose support for the oldest operating systems (dating
back to 2001!) we gain support for many emergent technologies which will be further
leveraged in the 5.x series.
As we are all interested in getting the most out of our CPU clock cycles, these newer
development tools combined with new code optimizations will combine to contribute to a
more efficiently running system. Work will continue with Intel and Nvidia to further
leverage graphics hardware assistance.
And that’s not all!
Unlike other software which is released just once, or which sees an update only every one or
two years, this is just the beginning for Blue Iris 5. As with versions past, improvement and
innovation will continue over the coming years. The client apps for iOS and Android, as
well as the UI3 browser interface all will receive major updates as well.
Artificial intelligence is quickly becoming the major focus for all video security software, and
this includes Blue Iris 5. In conjunction with Sentry Smart Alerts, a solution is already in
place to reduce false triggers when human recognition is ideal. These options will be
expanded to also include free services as well as LPR and facial recognition technologies.
Please keep the suggestions coming, and we thank you for your continued support of Blue
Iris.
PAG E ? 10
U P DAT E N OT E S
As major changes are made to version 5, they will be documented in this section.
5.1.0 - February 16, 2020
A clip “export” command has been added to the JSON web services. This allows the UI3 to
offer a more powerful experience managing video downloads.
Once the evaluation period is over, the software will continue to run as a “viewer only.”
This allows BVR files to be opened and exported without a software license.
Copy and Paste buttons have been added to the motion detector mask editing window.
Masks may only be pasted when the target image size matches the copied image size.
Using the Shield icon or camera “pause” commands you may now cancel a camera alert in-
progress.
5.0.9 - January 31, 2020
Video encoder options now include an audio bitrate selection. This and the audio codec
setting are now honored for convert/export.
The /admin?sendkeys interface may now be used to emulate keyboard input. This addition
supports integration with HA software requirements.
The Plate Recognizer option from the camera AI settings page now has a minimum
confidence setting before a plate number is written to the database.
When using HTTPS for both WAN and LAN, the secure flag is added to the HTTP Set-Cookie
response header. This is required for PCI compliance in some organizations.
When using the option to log all web server connections, failed authentication attempts also
now are logged.
5.0.8 - January 10, 2020
The auto-cycle option to Only cycle when at least one camera is triggered will now display all
triggered cameras together at once
PAG E ? 11
It is now possible to change the selected camera group during timeline playback. This
makes is easier to follow motion events without having to exit playback.
The camera settings window now loads tabs as they are visited, allowing this window to
open and close more quickly.
Many updates to make Remote Management more reliable when live updates are made to
camera and other configuration
UTC timestamps for Alert images now reflect any pre-trigger time that’s recorded;
previously this was the video frame at the time of trigger. This change helps with alert-to-
alert navigation in the timeline view.
The Sound alert may be specified to continue through the duration of a camera trigger.
The daily automatic database compact & repair may be ran on specific days of the week.
The camera red border when recording is now optional.
5.0.7 - December 15, 2019
The web server will now send an “image not found” JPEG in reply to an /alerts/ request for
a non-existent database record. Previously there was either no response or a file not found
error returned and these both confused the iOS app.
The use of HTTP keep-alive semantics is now optional on the Advanced page from Settings/
Web server.
The Plate Recognizer AI integration now pulls a status on the Trigger/AI page. This serves
to both validate the token entry as well as to provide usage statistics for the current period.
Camera source triggers (via ONVIF) were previously handled as “external” triggers but are
now labeled more appropriately as ONVIF triggers. A new check box on the Alerts tab in
camera settings determines whether alerts will fire for ONVIF triggers. The trigger state in
Blue Iris now is also maintained until a trigger reset event is received from the camera
(previously this was ignored and the trigger ended after the break time only).
One headache from the use of Intel hardware decoding has been the ambiguity between
1088 and 1080 line resolution. The Intel decoder will take a 1080 line source and force an
output of 1088 lines. This is because 1080 is not a multiple of 16, yet 1088 is, and that’s
required by the decoder. This has caused confusion as a new resolution forces a new zone
PAG E ? 12
map in the motion detector. Beginning with this version, the output size is cropped at 1080
lines. This will eliminate “garbage” lines from appearing at the bottom of the decoded
frames. However, this may result in the need to redesign your zone maps, sorry for that
inconvenience.
5.0.6 - November 11, 2019
Camera frame windows now operate more independently. Each frame window now may
have its own settings for Temporary full screen (double click), Auto-cycle, Show camera
names, and Solo selected camera. This provides much more flexibility for systems with
multiple monitors.
Improved audio/video synchronization from timed sources (RTSP, HLS, analog devices)—
timing information will be stored to the BVR file and although efforts have been made to
improve live and BVR playback synchronization, this timing information is most valuable
when exporting to MP4 format.
Improved responsiveness to motion with managed decoding (limit decoding unless required
on camera settings Video tab).
5.0.5 - October 23, 2019
You may now select to use the Time-Lapse feature during automatic export configured on
the Settings/Clips page or for bulk/background export configured by right-clicking clips.
Previously this was only available when exporting from the clip viewer window.
The web server now makes more extensive use of the HTTP connection “keep alive” header
to reduce the number of connections to the server. This will help with overall efficiency, but
especially when using NGROK and some AT&T routers which have recently introduced a
“TCP flooding” prevention mechanism, potentially breaking web services.
The code-signing certificate used to verify secure binary deliverables has been renewed for
another three years and all executables have been re-signed.
The architecture used to create group images for streaming has been redesigned and coded
to allow for higher frame rate throughput. While it’s now possible to get 30 fps from a
group stream, this may still not be practical for most users with dozens of cameras due to
the CPU resources required. Flickering of borders and timecode under high system demand
should be mitigated as well.
PAG E ? 13
Inter-process communication between service and console has been revised to allow the
service to better control the console when required.
The email alert configuration now isolates the “alert image” from the other image types
which may be attached.
The full log may now be downloaded from the Status/Messages page during remote
administration.
The push notification “rich push” and GIF options have been moved from the Settings/Web
server/Advanced page to the push notification alert configuration page. And for even more
flexibility you may now choose to use the camera’s current image instead of the alert image.
5.0.4 - September 16, 2019
A new “folder” icon at the top of the Clips window allows you to select special database
views. Notably, Sentry Smart Alert views may be found here, for either confirmed or
cancelled alerts. Only newly added alerts will appear in these views unless you repair the
database.
A new option on the AI page from Trigger in camera settings allows you to automatically
“flag” confirmed Sentry alerts. Until dedicated views can be added to the client phone apps,
this may be useful.
5.0.3 - September 15, 2019
With a continued focus on AI for version 5, it was time to upgrade one of the most critical of
algorithms in the software—the motion detector. You will find a third choice has been
added to the algorithm selection box found on the Motion configuration page from the
Trigger tab in camera settings—Edge vector. This will eventually replace simple as the default.
The algorithm discerns between leading edge and trailing edge motion and uses this
information to compute a motion vector (magnitude and angle). The goal for this new
algorithm is to reduce false positives (a consistent vector is required over the make time in
order to trigger) and to feed more advanced AI with more relevant frames. Please provide
feedback on effectiveness (in the form of BVR video clips for analysis).
5.0.2 - August 12, 2019
Blue Iris now honors the Windows preference to move the cursor to the default button
(usually OK) on pop-up message dialogs.
PAG E ? 14
The code to create and alert images has been moved to its own thread—this makes the video
capture thread more efficient and allows for alert image post-processing. Also, the trigger/
alerts thread has been re-written to work most effectively with Sentry Smart Alerts.
Sentry Smart Alert configuration has been moved to a new page “Artificial Intelligence” from
the Trigger tab in camera settings. ALPR support using Plate Recognizer has been added to
this page as well. Sentry works to filter false-alarms via person-detection. ALPR works by
analyzing the alert image—if a license tag is found, the number is added to the database and
visible on the alerts list.
5.0.1 - August 1, 2019
After a couple of months spent focusing solely on bug fixes and minor usability
enhancements, we have reached a point of stability that now allows us to continue with
more significant development.
The console now recognizes when the service has crashed and has been restarted. An
automatic reconnection is attempted for seamless use of the console window.
The latest version of the Intel MFX library (2019R1) is now being used. This update was
made in an attempt to bring stability to systems experiencing memory leaks with some
versions of the Intel drivers, and to possibly offer H.265 decoding and (eventually) hardware
encoding using Intel QuickSync.
 

fenderman

Staff member
Joined
Mar 9, 2014
Messages
36,902
Reaction score
21,274
Tell me, if its not blue iris that has an issue what do you think it would be. i mean im open to ideas. again tho like you said, its a one man developer that handles the whole program? im not dissing on blue iris i really like blue iris. However ever since the release of v5 i have had to report numerous problems that needed to be fixed. He did drop updates right away to fix a lot of the issues but now theres this issue. a month ago i did not have this issue.
Blue iris 4 was frequently updated as well, full of new features and bug fixes. There is NO ONE in the industry that pushes out more new features at this rate or fixes bugs this quickly (every vms/nvr etc has bugs). Your mistake was not using common sense by waiting a few weeks before updating. If you update the instant its available you are to blame.
 

fenderman

Staff member
Joined
Mar 9, 2014
Messages
36,902
Reaction score
21,274
what about geovision. i don't care about the $600. is there any reason not to use it compared to blue iris except the price?
Buy the geovision, its is GREAT and they have never had a bug or issue to date. Let us know how it works out for you.
 

wh@tever

Young grasshopper
Joined
Nov 7, 2017
Messages
39
Reaction score
2
im thinking about trying it. but jsut because someone pushes updates very frequently does not indicate a good thing. but its not a bad thing either. some software is designed so good from the start there's nothing to fix. I really like blue iris
 

fenderman

Staff member
Joined
Mar 9, 2014
Messages
36,902
Reaction score
21,274
im thinking about trying it. but jsut because someone pushes updates very frequently does not indicate a good thing. but its not a bad thing either. some software is designed so good from the start there's nothing to fix. I really like blue iris
yes, geovision, is perfect from the outset. Never needs updating. Try it, its awesome!
 

IP_man

n3wb
Joined
Feb 1, 2020
Messages
16
Reaction score
16
Location
Canada
If it were me, I'd run perfmon and capture per process memory usage:

How to Track CPU and Memory Usage Per Process

Once you have some good data, try to create as small a test case as simple/small as possible. Once you have it, report it to the dev.

Many years ago, I remember I was using some OSS weather software (Linux). I had demonstrable data showing there was a memory leak with some contributed software (wind rose generation). As I did have the source (unlike you), I was able to run Linux utilities to find the source of the leak. I sent a patch to the author who claimed he was not having any memory leak issues on his end. ;) Once I applied the patch, no more memory leak. And none for the 1,000's of other users of the add on.

Edit
As a software package becomes more and more complex, it becomes increasingly difficult to ensure and prove correctness. While it may be true that very few Use Cases trigger a defect, it only takes the confluences of one or more infrequent events to trigger a bug.

It may be that you have found the issue. Given that it seems you can egregiously cause an issue, it should be relatively simple to build the test case from which the dev can resolve the issue.

You may have to run some instrumented code to capture additional data for the dev. Depending on how BI is built, it may have debug flags/switches that you can enable to increase verbosity from which the dev can resolve the issue.

As you can probably guess, I'm a developer .. of sorts. ;)
 
Last edited:

SouthernYankee

IPCT Contributor
Joined
Feb 15, 2018
Messages
5,170
Reaction score
5,320
Location
Houston Tx
As a reference I have had My BI version 5.0.8.2 supporting 13 cameras running for 5 days on an I7-4790. The memory usage has been solid at 3800 MB. I saw the original post I have started UI3 multiple times on a number of different machines and tables. I have run the BI Android app on my phone and on an android tablet. The memory remains the same.
 
Top