Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: Fovu on April 15, 2021, 08:49:30 am

Title: Codeblocks crash on running please help!
Post by: Fovu 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!
Title: Re: Codeblocks crash on running please help!
Post by: Miguel Gimenez on April 15, 2021, 12:12:58 pm
Can you attach the crash report?
Title: Re: Codeblocks crash on running please help!
Post by: Fovu 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
Title: Re: Codeblocks crash on running please help!
Post by: Miguel Gimenez 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.
Title: Re: Codeblocks crash on running please help!
Post by: Fovu 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.
Title: Re: Codeblocks crash on running please help!
Post by: Commaster on April 15, 2021, 05:22:01 pm
We need the contents of the path displayed to you.
Title: Re: Codeblocks crash on running please help!
Post by: Fovu 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
Title: Re: Codeblocks crash on running please help!
Post by: Miguel Gimenez on April 15, 2021, 06:31:22 pm
Copy it before closing the dialog
Title: Re: Codeblocks crash on running please help!
Post by: Fovu 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.
Title: Re: Codeblocks crash on running please help!
Post by: Miguel Gimenez on April 15, 2021, 07:00:10 pm
I'm talking about the dialog seen in the images you are posting (Debug Report Codeblocks).
Title: Re: Codeblocks crash on running please help!
Post by: Fovu 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
Title: Re: Codeblocks crash on running please help!
Post by: Miguel Gimenez on April 15, 2021, 07:27:55 pm
It should not close until you press Ok or Cancel
Title: Re: Codeblocks crash on running please help!
Post by: Fovu 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
Title: Re: Codeblocks crash on running please help!
Post by: Commaster 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?
Title: Re: Codeblocks crash on running please help!
Post by: Fovu on April 16, 2021, 08:07:15 am
Here you have some screenshots running it in terminal, the final error maybe the problem?
Title: Re: Codeblocks crash on running please help!
Post by: BlueHazzard 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!
Title: Re: Codeblocks crash on running please help!
Post by: Fovu 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.
Title: Re: Codeblocks crash on running please help!
Post by: oBFusCATed 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
Title: Re: Codeblocks crash on running please help!
Post by: Fovu on April 16, 2021, 10:13:27 pm
It doesn't work to run gdb just says me where it is.
Title: Re: Codeblocks crash on running please help!
Post by: oBFusCATed on April 17, 2021, 12:59:11 am
Obviously you have to install it. It already told you the package you need to install.
Title: Re: Codeblocks crash on running please help!
Post by: Fovu 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.
Title: Re: Codeblocks crash on running please help!
Post by: oBFusCATed 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!