Author Topic: Couln't start because of a 'Memory access violation'....  (Read 2827 times)

Offline Flesym

  • Multiple posting newcomer
  • *
  • Posts: 11
Couln't start because of a 'Memory access violation'....
« on: September 24, 2005, 11:51:02 pm »
Hi,

after reading lots of tips and instructions, I was quite happy when I finially made a successful compilation, but now I have the problem that I'm not able to run C::B. When I try, I always get a "Speicherzugriffsfehler" (and nothing else!) /* this is german; in english it would be somthing like "Memory access violation" */

So here are my used components:
-Ubuntu 5.04 (Hoary Hedgehog)
-wxWidgets-2.6.0
-Code::Blocks-1.0-RC1-1

What I basically did was following this Wiki: http://wiki.codeblocks.org/index.php/Compiling_Code::Blocks_in_Linux_%28applies_to_all_distros%29
and the error appears when running the scipt ../output/run.sh as well as ../devel/run.sh (the same when starting the codeblocks.exe manually)

Here is the debug output that I get:

(gdb) r
Starting program: /home/myself/src/codeblocks-1.0-RC1-1/src/devel/codeblocks.exe
[Thread debugging using libthread_db enabled]
[New Thread -1226612064 (LWP 13707)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1226612064 (LWP 13707)]
0xb7ce2132 in wxWindowBase::GetClientSize () from /usr/local/lib/libwx_gtk2_core-2.6.so.0
(gdb) bt
#0  0xb7ce2132 in wxWindowBase::GetClientSize () from /usr/local/lib/libwx_gtk2_core-2.6.so.0
#1  0x0805fa54 in MainFrame::CreateIDE (this=0x881ffb8) at src/main.cpp:434
#2  0x0805ed66 in MainFrame (this=0x881ffb8, parent=0x0) at src/main.cpp:366
#3  0x08058b67 in CodeBlocksApp::InitFrame (this=0x808eca0) at src/app.cpp:176
#4  0x08058fd4 in CodeBlocksApp::OnInit (this=0x808eca0) at src/app.cpp:249
#5  0x0805a340 in wxAppConsole::CallOnInit (this=0x808eca0) at app.h:87
#6  0xb79953ea in wxEntry () from /usr/local/lib/libwx_base-2.6.so.0
#7  0x08058264 in main (argc=1, argv=0xbffff814) at src/app.cpp:79
(gdb) q


Any help or advice is really welcome; thanks!
    -flesym

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4291
    • Code::Blocks IDE
Re: Couln't start because of a 'Memory access violation'....
« Reply #1 on: September 25, 2005, 12:31:39 am »
Quote
Any help or advice is really welcome; thanks!
    -flesym

You 'll be better off downloading and building the CVS version. It's pretty stable and will become RC2 as it is now. Also the build system has changed, so all you have to do is:

Code: [Select]
./bootstrap
./configure --prefix=/usr
make
sudo make install

Note that the --prefix argument is not really needed, but if you add it like above, you 'll find a nice menu entry in Applications/Programming after installation (might need a log-off/log-on) ;)
« Last Edit: September 25, 2005, 12:34:41 am by mandrav »
Be patient!
This bug will be fixed soon...

Offline Flesym

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: Couln't start because of a 'Memory access violation'....
« Reply #2 on: September 25, 2005, 01:17:29 am »
Success! :-)

Much thanks for your quick reply -- it works! Now let's see, if this IDE is as good as all the rumours I heard about it ;-)

Bye
    -flesym