Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Building with wxWidgets 2.9

<< < (8/10) > >>

MortenMacFly:

--- Quote from: oBFusCATed on February 17, 2012, 09:25:43 pm ---Is C::B working on your linux when using wx2.9?

--- End quote ---
Its working fine here on Windows meanwhile, at least the core. However - I have a few patches pending where I am unsure if they are needed for wx29 (for 64bit they are).


--- Quote from: oBFusCATed on February 17, 2012, 09:25:43 pm ---I'm trying to see what is going on with wx2.9 and I get a crash in CC :(

--- End quote ---
Make sure you compile CC with -DCC_NO_COLLAPSE_ITEM, this solved it for me, at least in 64bit build (with wx29, of course).

oBFusCATed:

--- Code: ---#0 0x7ffff1552629 free() (/lib64/libc.so.6:??)
#1 0x45d44d wxString::ConvertedBuffer<wchar_t>::~ConvertedBuffer(this=0x7fffffffada8, __in_chrg=<optimized out>) (/usr/include/wx-2.9/wx/string.h:3518)
#2 0x45a7e9 wxString::~wxString(this=0x7fffffffad90, __in_chrg=<optimized out>) (/usr/include/wx-2.9/wx/string.h:1340)
#3 0x7fffd488ab95 ParserCommon::FileType(filename=..., force_refresh=true) (/home/obfuscated/projects/codeblocks/dev/trunk_clean/src/plugins/codecompletion/parser/parser.cpp:101)
#4 0x7fffd488be2e ParserBase::ReadOptions(this=0x15c5a70) (/home/obfuscated/projects/codeblocks/dev/trunk_clean/src/plugins/codecompletion/parser/parser.cpp:203)
#5 0x7fffd488b1e7 ParserBase::ParserBase(this=0x15c5a70) (/home/obfuscated/projects/codeblocks/dev/trunk_clean/src/plugins/codecompletion/parser/parser.cpp:143)
#6 0x7fffd48b44f4 NativeParser::NativeParser(this=0x15f9ff8) (/home/obfuscated/projects/codeblocks/dev/trunk_clean/src/plugins/codecompletion/nativeparser.cpp:288)
#7 0x7fffd482cd17 CodeCompletion::CodeCompletion(this=0x15f9f70) (/home/obfuscated/projects/codeblocks/dev/trunk_clean/src/plugins/codecompletion/codecompletion.cpp:486)
#8 0x7fffd48504bf PluginRegistrant<CodeCompletion>::CreatePlugin() (/home/obfuscated/projects/codeblocks/dev/trunk_clean/src/include/cbplugin.h:613)
#9 0x7ffff2646ac9 PluginManager::LoadPlugin(this=0x11c41b0, pluginName=...) (/home/obfuscated/projects/codeblocks/dev/trunk_clean/src/sdk/pluginmanager.cpp:1044)
#10 0x7ffff2646479 PluginManager::ScanForPlugins(this=0x11c41b0, path=...) (/home/obfuscated/projects/codeblocks/dev/trunk_clean/src/sdk/pluginmanager.cpp:985)
#11 0x48bac8 MainFrame::ScanForPlugins(this=0xcab870) (/home/obfuscated/projects/codeblocks/dev/trunk_clean/src/src/main.cpp:1061)
#12 0x486e2d MainFrame::MainFrame(this=0xcab870, parent=0x0) (/home/obfuscated/projects/codeblocks/dev/trunk_clean/src/src/main.cpp:571)
#13 0x47a3b8 CodeBlocksApp::InitFrame(this=0x7799e0) (/home/obfuscated/projects/codeblocks/dev/trunk_clean/src/src/app.cpp:417)
#14 0x47bc4d CodeBlocksApp::OnInit(this=0x7799e0) (/home/obfuscated/projects/codeblocks/dev/trunk_clean/src/src/app.cpp:642)
#15 0x480889 wxAppConsoleBase::CallOnInit(this=0x7799e0) (/usr/include/wx-2.9/wx/app.h:94)
#16 0x7ffff323fb34 wxEntry(int&, wchar_t**) () (/usr/lib64/libwx_baseu-2.9.so.3:??)
#17 0x479d3e main(argc=6, argv=0x7fffffffdaf8) (/home/obfuscated/projects/codeblocks/dev/trunk_clean/src/src/app.cpp:261)

--- End code ---

Here is the crash log, I'm using the -DCC_NO_COLLAPSE_ITEM option. wxGTK 2.9.3.1 on gentoo linux 64bit.

Jenna:
It seems to work here with gcc 4.6.2, wx 2.9 from their trunk (I'm nit sure about the minor revision) on debian 64-bit.
But it is very, very slow.
Here is a snippet from debug log for simple hello-world project:

--- Quote ---Create new parser for project 'test'
Updating class browser...
Class browser updated.
Starting batch parsing for project 'test'...
Project 'test' parsing stage done!
Project 'test' parsing stage done (110 total parsed files, 4482 tokens in 0 minute(s), 16.617 seconds).
Updating class browser...
Class browser updated.
--- End quote ---
here is the same for debugger-branch 7790 (wx2.8):

--- Quote ---Create new parser for project 'test'
Updating class browser...
Class browser updated.
Starting batch parsing for project 'test'...
Project 'test' parsing stage done!
Project 'test' parsing stage done (108 total parsed files, 4313 tokens in 0 minute(s), 0.262 seconds).
Updating class browser...
Class browser updated.
--- End quote ---

ollydbg:
yesterday, i successful build CB against wx2.9.3 under windows XP, i also notice CC's parser is much much slower than the wx2.8.12.

MortenMacFly:

--- Quote from: ollydbg on February 18, 2012, 08:31:01 am ---yesterday, i successful build CB against wx2.9.3 under windows XP, i also notice CC's parser is much much slower than the wx2.8.12.

--- End quote ---
Oh dear... I have this feeling that its due to the whole wxString ANSI/Unicode abstraction stuff introduced in wx29... :-\ I guess we need to instrument some time measuring to find out... :(

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version