News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

The 08 October 2018 build (11499) is out.

Started by killerbot, October 08, 2018, 08:24:54 PM

Previous topic - Next topic

New Pagodi

I'll try to use the 15 August 2018 build for a few days and see if it happens.

Kilmatead

Quote from: oBFusCATed on October 22, 2018, 06:55:50 PM
@Kilmatead: What happens if you disable the file manager plugin?
As noted by New Pagodi, this seems to have solved it.  At least after giving it a speculative 3-hour "idle test". :)

Quote from: oBFusCATedDoes this happen with the previous night build?
No... I used that build for 2 months with nary a complaint.

stahta01

Can now duplicate the CPU high usage very fast with nightly build.
With FileManager Enabled, right click on folder and choose refresh under the Management pane and files tab

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

stahta01

#33
Quote from: stahta01 on October 23, 2018, 12:14:40 AM
Can now duplicate the CPU high usage very fast with nightly build.
With FileManager Enabled, right click on folder and choose refresh under the Management pane and files tab

Tim S.

I am working on building CB using MSys2 GCC with debug build option.

What gdb commands do I need to use/learn to get the information to so someone can fix this bug.

I am a gdb newbie level user; the most advanced command I have used is bt (backtrace).

Edit: Plan is to try the bt (backtrace) command unless someone gives better suggestion.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

oBFusCATed

"thread apply all bt" is better than bt, because it prints the stack for all threads.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Quiss

Quote from: stahta01 on October 23, 2018, 12:14:40 AM
Can now duplicate the CPU high usage very fast with nightly build.
With FileManager Enabled, right click on folder and choose refresh under the Management pane and files tab

Tim S.
I've built several revisions and found that, this starts with rev11463; rev11462 is ok.

Windows 10-x64-v1809
wxWidgets3.1.1-x64 with mingw64-7.2.0

oBFusCATed

Thanks for doing the bisect. It is obvious that this commit is wrong. I don't know where I've looked while doing the review.

Can you try if this change fixes it:

diff --git a/src/plugins/contrib/FileManager/directorymonitor.cpp b/src/plugins/contrib/FileManager/directorymonitor.cpp
index e6dd9b64f..f95220d8d 100644
--- a/src/plugins/contrib/FileManager/directorymonitor.cpp
+++ b/src/plugins/contrib/FileManager/directorymonitor.cpp
@@ -370,10 +370,10 @@ public:
                 {
                     delete it->second;
                     it = m_monmap.erase(it);
+                    continue;
                 }
-                else
-                    ++it;
             }
+            ++it;
         }
         for(size_t i=0;i<update_paths.GetCount();i++)
         {


(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Quiss

Yes, this patch fixes the issue. No high cpu when right click-refresh folder, also it's been opened for half an hour.