User forums > Nightly builds

The 13 April 2009 build (5535) is out.

<< < (8/11) > >>

critic:
Jens will kill me because of previous message. That's why link is http://forums.codeblocks.org/index.php/topic,10453.msg71877.html#msg71877

dk:
I've made a lot of investigation of crash when moving toolbar on my system.

There are two necessary conditions to reproduce the problem:

1. nvidia driver for xorg (when using other driver - vesa, nv or vboxvideo - there are no crashes).
2. using KDE4 as a desktop environment (when using KDE3 or Gnome there are also no crashes).

I've attached three screenshots of my desktop:
1. codeblocks-KDE4-nvidia.gif - before crash, using KDE4 and nvidia driver (it wasn't too ease to make such screenshot!)
2. codeblocks-KDE4-nv.gif - no crash, using KDE4 and nv driver
3. codeblocks-KDE3-nvidia.gif - no crash, using KDE3 and nvidia driver.

On the first picture you can see blue solid rectangle - it is the final position for toolbar, when moving it. On the other pictures this rectangle isn't solid, it is the shaded blue-white rectangle.

So, when I see the shaded rectangle, there is no crash, when I see solid blue rectangle, there will be crash.

Can anybody reproduce the bug?


[attachment deleted by admin]

stahta01:
Patch needed for NON-PCH Windows Build.
Tim S


--- Code: ---Index: src/plugins/contrib/codesnippets/codesnippets.cpp
===================================================================
--- src/plugins/contrib/codesnippets/codesnippets.cpp (revision 5562)
+++ src/plugins/contrib/codesnippets/codesnippets.cpp (working copy)
@@ -30,6 +30,7 @@
  #include <wx/string.h>
  #include "sdk_events.h"
  #include "manager.h"
+ #include "configmanager.h"
  #include "projectmanager.h"
  #include "personalitymanager.h"
  #include "cbworkspace.h"

--- End code ---

killerbot:
done

dk:
I can't compile SVN5535 by gcc4.4 because of the error in src/src/prefix.cpp:


--- Code: ---prefix.cpp: In function 'char* br_extract_dir(const char*)':
prefix.cpp:396: error: invalid conversion from 'const char*' to 'char*'
prefix.cpp: In function 'char* br_extract_prefix(const char*)':
prefix.cpp:432: error: invalid conversion from 'const char*' to 'char*'
make[3]: *** [prefix.o] Error 1

--- End code ---

suggested patch:

--- Code: ------ codeblocks-8.02/src/src/prefix.cpp.orig 2008-02-27 16:15:26 +0300
+++ codeblocks-8.02/src/src/prefix.cpp 2009-05-08 01:30:03 +0400
@@ -393,7 +393,7 @@ br_extract_dir (const char *path)
 
  br_return_val_if_fail (path != (char *) NULL, (char *) NULL);
 
- end = strrchr (path, '/');
+ end = (char*) strrchr (path, '/');
  if (!end) return strdup (".");
 
  while (end > path && *end == '/')
@@ -429,7 +429,7 @@ br_extract_prefix (const char *path)
  br_return_val_if_fail (path != (char *) NULL, (char *) NULL);
 
  if (!*path) return strdup ("/");
- end = strrchr (path, '/');
+ end = (char*) strrchr (path, '/');
  if (!end) return strdup (path);
 
  tmp = br_strndup ((char *) path, end - path);

--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version