Author Topic: The 30 October 2011 build (7550) is out.  (Read 89608 times)

Offline darmar

  • Multiple posting newcomer
  • *
  • Posts: 59
Re: The 30 October 2011 build (7550) is out.
« Reply #15 on: November 03, 2011, 06:37:29 pm »
I am experiencing a crash of C::B Nightly on kubuntu (KDE, linux).

I experienced this behaviour with my build of C::B first. But now I have installed a fresh system on VirtualBox and installed Nightly from Jensí repository. I have the same crash. The crash occurs only, when Symbols tab is active and an item is selected in the TopTree (Code-Completion plugin).

I wanted to find out where is the problem and I looked into the code of CC plugin. I haven't found a bug in CC code, but it something to do with update of m_TreeBottom from the secondary thread. I added the call to "AddPendingEvent" in "classbrowserbuilderthread.cpp" file to update m_TreeBottom from main thread. C::B is running on KDE without the problem now.

Do somebody experiencing the same problem?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12766
    • Travis build status
Re: The 30 October 2011 build (7550) is out.
« Reply #16 on: November 03, 2011, 07:25:44 pm »
darmar: Patch? MacOSX users have reported the same problem.
(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!]

Offline darmar

  • Multiple posting newcomer
  • *
  • Posts: 59
Re: The 30 October 2011 build (7550) is out.
« Reply #17 on: November 04, 2011, 08:41:11 pm »
Here is my diff file (attached).

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9597
Re: The 30 October 2011 build (7550) is out.
« Reply #18 on: November 05, 2011, 10:21:51 am »
Here is my diff file (attached).
Could it be that this patch is in-complete? Because from a quick look I see that you've changed the Init() interface but do not use it anywhere (in this patch at least).
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline darmar

  • Multiple posting newcomer
  • *
  • Posts: 59
Re: The 30 October 2011 build (7550) is out.
« Reply #19 on: November 05, 2011, 06:34:08 pm »
It seems to me, that the changed interface is used (88 line in patch).
« Last Edit: November 05, 2011, 06:36:43 pm by darmar »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9597
Re: The 30 October 2011 build (7550) is out.
« Reply #20 on: November 06, 2011, 10:43:27 am »
It seems to me, that the changed interface is used (88 line in patch).
My fault... :oops:
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline Kehom

  • Single posting newcomer
  • *
  • Posts: 6
Re: The 30 October 2011 build (7550) is out.
« Reply #21 on: November 07, 2011, 11:30:10 pm »
Hello,
After a long time without using Linux, I'm finally (lack of time and job duties) reactivating it in my machine.
Currently I'm using Kubuntu 11.10 and the latest build from jens' repository.
I have found one bug (I think).
To reproduce:
-  Settings -> Compiler and debug...
- Change focus to another application.
- Get back to Code::Blocks and I'm unable to change the tabs.

There is something else that I have noticed some time ago regarding the Global Variables editor. I tested it only under Windows and didn't have time to verify under Linux.
I don't have exact way of reproducing it, however I can tell how it happened here:
I opened an old project that used the variable 'wx'. Long time later, fresh Code::Blocks install, different organization of files on my HD etc etc. In order to have different versions of wxWidgets I have set wx_version as the variables names. Because the variable 'wx' was not present, Code::Blocks presented me with a window saying that there was not 'wx' variable. I set to the correct one (regarding my new settings) and then Code::Blocks asked me if I wanted to save an invalid variable. I answered 'No' and... the same question came again. So, no way to don't save the requested 'wx' variable. If needed I can redo my steps to provide a more concise and detailed steps to reproduce the issue.


Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12766
    • Travis build status
Re: The 30 October 2011 build (7550) is out.
« Reply #22 on: November 07, 2011, 11:32:53 pm »
If needed I can redo my steps to provide a more concise and detailed steps to reproduce the issue.
Yes, please give exact steps to reproduce this problem.
(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!]

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7253
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: The 30 October 2011 build (7550) is out.
« Reply #23 on: November 08, 2011, 07:12:02 am »
Hello,
After a long time without using Linux, I'm finally (lack of time and job duties) reactivating it in my machine.
Currently I'm using Kubuntu 11.10 and the latest build from jens' repository.
I have found one bug (I think).
To reproduce:
-  Settings -> Compiler and debug...
- Change focus to another application.
- Get back to Code::Blocks and I'm unable to change the tabs.

Is it possible, that you have changed any of the open files (including the projectfile) outside C::B ?

If yes, the dialog that tells you about that might be hidden behind the settings-dialog.

Offline Kehom

  • Single posting newcomer
  • *
  • Posts: 6
Re: The 30 October 2011 build (7550) is out.
« Reply #24 on: November 08, 2011, 01:05:01 pm »
Yes, please give exact steps to reproduce this problem.

Ok, I will review here the steps and will see if that happens under Linux too. May take some time.

Is it possible, that you have changed any of the open files (including the projectfile) outside C::B ?

If yes, the dialog that tells you about that might be hidden behind the settings-dialog.

Actually, no. I didn't change any file. Well, I re-read what I wrote and I was not very clear at all (sorry for that)! Anyway, I merely got into another window to verify one path so I could add it into the "Search directories".
Well, I was able to change from "Compiler settings" tab to "Search directories" tab. What I was unable to do was changing the "sub-tabs". For example, "Search directories->Compiler" to "Search directories->Linker".
If I close the window (Global compiler settings) and re-open it then I can change those tabs again.
Just tested this under Windows and this issue does not happen.

Offline teto

  • Almost regular
  • **
  • Posts: 127
Re: The 30 October 2011 build (7550) is out.
« Reply #25 on: November 10, 2011, 11:04:41 pm »
I suffer from different bugs (some from previous builds), one problem being I haven't found the way to reproduce them even if they often happen:
-I had this file where I wanted to do a switch(){ case: } and each time I would relaunch cb after the crash, it would crash on "cas..." (the lookup to autocomplete systematically made it crash so I typed it backwards ^^)
-Sometimes CTRL+MAJ+C or X doesn't do a thing, sometimes it works.
-Try replacing (CTRL+R) "this->axisComp[n]" in the following code, cb answers with "no matches found". Yet with CTRL+F it finds matches:

Code: [Select]
    SJoystickComponent& comp = this->axisComp[n];
    const maxValue = (f32)this->axisComp[n].maxRead;
    const minValue = (f32)this->axisComp[n].minRead;
    //const f32 readScale = (f32)this->axisComp[n].maxRead - (f32)this->axisComp[n].minRead;

    //! Update min and max values if detect out of scope value
    if (hidEvent.value < minValue){
        this->axisComp[n].minRead = hidEvent.value;
    }
    else if (hidEvent.value > maxValue){
        this->axisComp[n].maxRead = hidEvent.value;
    }
-Sometimes I can't edit a tab anymore. I need to change tab and then come back to my previous tab to be able to edit text once again.



All of them have been experienced with windows 7 64 bits. I'm not 100% sure but I may have experienced the latest bug on ubuntu too.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5236
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: The 30 October 2011 build (7550) is out.
« Reply #26 on: November 11, 2011, 01:54:08 am »
-I had this file where I wanted to do a switch(){ case: } and each time I would relaunch cb after the crash, it would crash on "cas..." (the lookup to autocomplete systematically made it crash so I typed it backwards ^^)
What does this means? I can't follow you. Which step cause CB crash?

Quote
-Sometimes CTRL+MAJ+C or X doesn't do a thing, sometimes it works.
Press "X" does not work??? What is "MAJ"???


Quote
-Try replacing (CTRL+R) "this->axisComp[n]" in the following code, cb answers with "no matches found". Yet with CTRL+F it finds matches:

Code: [Select]
    SJoystickComponent& comp = this->axisComp[n];
    const maxValue = (f32)this->axisComp[n].maxRead;
    const minValue = (f32)this->axisComp[n].minRead;
    //const f32 readScale = (f32)this->axisComp[n].maxRead - (f32)this->axisComp[n].minRead;

    //! Update min and max values if detect out of scope value
    if (hidEvent.value < minValue){
        this->axisComp[n].minRead = hidEvent.value;
    }
    else if (hidEvent.value > maxValue){
        this->axisComp[n].maxRead = hidEvent.value;
    }
It looks like a bug in Find/replacement.


Quote
-Sometimes I can't edit a tab anymore. I need to change tab and then come back to my previous tab to be able to edit text once again.
How to reproduce this problem?
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7253
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: The 30 October 2011 build (7550) is out.
« Reply #27 on: November 11, 2011, 06:38:17 am »
-Try replacing (CTRL+R) "this->axisComp[n]" in the following code, cb answers with "no matches found". Yet with CTRL+F it finds matches:

Code: [Select]
    SJoystickComponent& comp = this->axisComp[n];
    const maxValue = (f32)this->axisComp[n].maxRead;
    const minValue = (f32)this->axisComp[n].minRead;
    //const f32 readScale = (f32)this->axisComp[n].maxRead - (f32)this->axisComp[n].minRead;

    //! Update min and max values if detect out of scope value
    if (hidEvent.value < minValue){
        this->axisComp[n].minRead = hidEvent.value;
    }
    else if (hidEvent.value > maxValue){
        this->axisComp[n].maxRead = hidEvent.value;
    }
Works fine here, if "Regular expression" is unchecked, otherwise I get the same message as you, what is absolutely correct in this case.

-Sometimes I can't edit a tab anymore. I need to change tab and then come back to my previous tab to be able to edit text once again.
As ollydbg wrote, how to reproduce ?
Does clicking into theeditor help, without the need to change the tab ?

Offline Alatar

  • Multiple posting newcomer
  • *
  • Posts: 59
Re: The 30 October 2011 build (7550) is out.
« Reply #28 on: November 11, 2011, 11:09:40 am »
Hello all!
There is regression in editor in this and previous builds: broken text editing in rectangular selection mode. When I mark multiple lines by Alt+Shift+[arrows] (or by Alt+MoveMouseVerticalWithLeftButtonPresed) and try to remove some charters with Backspace, I get unexpected behavior. CB deletes charters before cursors but cursors moves by some symbols forward and select block. In some cases cursors jumps in other directions. When I mark multiple lines by Ctrl+MouseLeftButtonClick deleting with Backspace works OK.
« Last Edit: November 11, 2011, 11:58:25 am by Alatar »

Offline Folco

  • Regular
  • ***
  • Posts: 343
    • Folco's blog (68k lover)
Re: The 30 October 2011 build (7550) is out.
« Reply #29 on: November 12, 2011, 11:57:38 am »
ollydbg -> "MAJ" means "Shift", the key that provides upper case characters.
Kernel Extremist - PedroM power ©