Author Topic: Codeblocks crash on running please help!  (Read 2138 times)

Offline Fovu

  • Multiple posting newcomer
  • *
  • Posts: 12
Codeblocks crash on running please help!
« on: April 15, 2021, 08:49:30 am »
Hello, I am not new to codeblocks, previously used it in windows, and now i wanted to try it in linux, and i downloaded it correctly but when i launch it i keep getting a crash saying "a debug report has been generated to directory", I am using arch linux and used the following command to install
"sudo pacman -Syu codeblocks", please help!
« Last Edit: April 15, 2021, 03:21:38 pm by Fovu »

Offline Miguel Gimenez

  • Lives here!
  • ****
  • Posts: 711
Re: Codeblocks crash on running please help!
« Reply #1 on: April 15, 2021, 12:12:58 pm »
Can you attach the crash report?

Offline Fovu

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Codeblocks crash on running please help!
« Reply #2 on: April 15, 2021, 03:22:13 pm »
Here you have, I attached the error it was difficult to get the other window because it closes really fast and cnat do nothing

Offline Miguel Gimenez

  • Lives here!
  • ****
  • Posts: 711
Re: Codeblocks crash on running please help!
« Reply #3 on: April 15, 2021, 04:25:47 pm »
The crash report is the file shown in that window, in that image is /tmp/codeblocks_dbgrpt-49830-20210415T152059 (the last numbers are the date and time in ISO format, so they will change between runs). You can attach a previous one, if it is still there.

Offline Fovu

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Codeblocks crash on running please help!
« Reply #4 on: April 15, 2021, 05:03:59 pm »
I rerun the program and the file changed, I dont really understand what did you said there besided this file changed based the time, how can I solve it? If ti haves a solution.

Online Commaster

  • Multiple posting newcomer
  • *
  • Posts: 113
Re: Codeblocks crash on running please help!
« Reply #5 on: April 15, 2021, 05:22:01 pm »
We need the contents of the path displayed to you.

Offline Fovu

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Codeblocks crash on running please help!
« Reply #6 on: April 15, 2021, 05:35:01 pm »
That's the problem, I cant find it, when i put tmp get me to the files but I don't find the file, when i try to search it shows me doesn't find it

Offline Miguel Gimenez

  • Lives here!
  • ****
  • Posts: 711
Re: Codeblocks crash on running please help!
« Reply #7 on: April 15, 2021, 06:31:22 pm »
Copy it before closing the dialog

Offline Fovu

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Codeblocks crash on running please help!
« Reply #8 on: April 15, 2021, 06:50:45 pm »
Yeah, this is the problem the program crashes immediately after 2 or 3 secs after launching so I cant click nothing or copy nothing. And that's my problem I cant do nothing in this error because as it starts crashed and quits.

Offline Miguel Gimenez

  • Lives here!
  • ****
  • Posts: 711
Re: Codeblocks crash on running please help!
« Reply #9 on: April 15, 2021, 07:00:10 pm »
I'm talking about the dialog seen in the images you are posting (Debug Report Codeblocks).

Offline Fovu

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Codeblocks crash on running please help!
« Reply #10 on: April 15, 2021, 07:05:29 pm »
Yeah this sides along with codeblocks so I can't acces it for more than 2 second and that isn't enough time to open it in folder

Offline Miguel Gimenez

  • Lives here!
  • ****
  • Posts: 711
Re: Codeblocks crash on running please help!
« Reply #11 on: April 15, 2021, 07:27:55 pm »
It should not close until you press Ok or Cancel

Offline Fovu

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Codeblocks crash on running please help!
« Reply #12 on: April 15, 2021, 08:05:50 pm »
Yeah i know but that is the problem that is close that's why i started this topic to see wihy it closes so fast and why i have this problem

Online Commaster

  • Multiple posting newcomer
  • *
  • Posts: 113
Re: Codeblocks crash on running please help!
« Reply #13 on: April 16, 2021, 04:35:29 am »
Could you run codeblocks from a terminal? Maybe some useful text will stay behind in the terminal after the window vanishes?

Offline Fovu

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Codeblocks crash on running please help!
« Reply #14 on: April 16, 2021, 08:07:15 am »
Here you have some screenshots running it in terminal, the final error maybe the problem?

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 2974
Re: Codeblocks crash on running please help!
« Reply #15 on: April 16, 2021, 08:31:12 am »
Can you give us the default.conf file from /home/USERNAME/.config/codeblocks or /home/USERNAME/.codeblocks ?
And also if it exists every file from /home/USERNAME/.config/codeblocks/share/codeblocks/compilers or /home/USERNAME/.codeblocks/share/codeblocks/compilers

Thank you for your work!

Offline Fovu

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Codeblocks crash on running please help!
« Reply #16 on: April 16, 2021, 08:57:51 am »
Ok I opened the file "/home/fovu/.config/codeblocks/" and it opened me a folder with no files, altrough I have installed it, maybe this is the problem? I don't have that files I dont know.
« Last Edit: April 16, 2021, 09:07:55 am by Fovu »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13309
    • Travis build status
Re: Codeblocks crash on running please help!
« Reply #17 on: April 16, 2021, 08:56:06 pm »
Can you please start cb under gdb and print the backtrace?

These are the commands you need to run:
Code
gdb /usr/bin/codeblocks
run
thread apply all bt
(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 Fovu

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Codeblocks crash on running please help!
« Reply #18 on: April 16, 2021, 10:13:27 pm »
It doesn't work to run gdb just says me where it is.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13309
    • Travis build status
Re: Codeblocks crash on running please help!
« Reply #19 on: April 17, 2021, 12:59:11 am »
Obviously you have to install it. It already told you the package you need to install.
(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 Fovu

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Codeblocks crash on running please help!
« Reply #20 on: April 17, 2021, 11:30:20 am »
Ok I installed it and It runs me the codeblocks selestion compiler whick crashed on run and i can't slect nothing and after some secs the compiler selection screen  freezes as you will see in the photo.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13309
    • Travis build status
Re: Codeblocks crash on running please help!
« Reply #21 on: April 17, 2021, 04:41:53 pm »
You can use copy paste in your terminal.
These images are almost useless.
Also this is not the full output please post the full output!
(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!]