Author Topic: All of a sudden... Codeblocks won't run  (Read 6304 times)

Offline bangorme

  • Multiple posting newcomer
  • *
  • Posts: 28
All of a sudden... Codeblocks won't run
« on: May 08, 2016, 04:25:15 am »
I'm running Fedora 4.4.8-300.fc23.x86_64  and Codeblocks 16.01.svn.10837.fc25.86.64. 

All of a sudden, Codeblocks won't run.  If I click the icon, a white box opens for about 5 seconds, then closes.  I check the process list it Codeblocks isn't there.  I've tried reinstalling Codeblocks (from Jenslody repos) and the same thing happens.  Is there an error log anywhere?  Any ideas?  It's been working up until about a week ago.

Thanks.
« Last Edit: May 08, 2016, 04:34:30 am by bangorme »

Offline bangorme

  • Multiple posting newcomer
  • *
  • Posts: 28
Re: All of a sudden...
« Reply #1 on: May 08, 2016, 04:26:54 am »
Just tried running it from command line and got this:

[root@cpe-xxxxxxxxxxxxx scott]# codeblocks
Warning: Mismatch between the program and library build versions detected.
The library used 2.8 (no debug,Unicode,compiler with C++ ABI 1008,wx containers,compatible with 2.4,compatible with 2.6),
and your program used 2.8 (no debug,Unicode,compiler with C++ ABI 1010,wx containers,compatible with 2.4,compatible with 2.6).
Starting Code::Blocks svn build  rev 10837 May  3 2016, 08:24:21 - wx2.8.12 (Linux, unicode) - 64 bit
Initialize EditColourSet .....
Initialize EditColourSet: done.
Segmentation fault (core dumped)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: All of a sudden... Codeblocks won't run
« Reply #2 on: May 08, 2016, 04:36:15 am »
So you're using a package for fedora 25 on fedora 23, right? And expect it to work without problems?
(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 bangorme

  • Multiple posting newcomer
  • *
  • Posts: 28
Re: All of a sudden... Codeblocks won't run
« Reply #3 on: May 08, 2016, 04:41:43 am »
Fedora 24 or 25 haven't been released yet. I haven't changed repositories, so why would I be downloading a version of Codeblocks two versions in the future?



[root@cpe-XXXXXXXXXXXXXXXX scott]# dnf install codeblocks
Last metadata expiration check: 2:20:20 ago on Sat May  7 20:24:37 2016.
Dependencies resolved.
================================================================================
 Package          Arch    Version                    Repository            Size
================================================================================
Installing:
 codeblocks       x86_64  16.01.svn.10837-1.fc25     jenslody-codeblocks  4.9 M
 codeblocks-libs  x86_64  16.01.svn.10837-1.fc25     jenslody-codeblocks  2.2 M

Transaction Summary
================================================================================
Install  2 Packages
« Last Edit: May 08, 2016, 04:53:55 am by bangorme »

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: All of a sudden... Codeblocks won't run
« Reply #4 on: May 08, 2016, 10:52:22 am »
Fedora 24 or 25 haven't been released yet. I haven't changed repositories, so why would I be downloading a version of Codeblocks two versions in the future?



[root@cpe-XXXXXXXXXXXXXXXX scott]# dnf install codeblocks
Last metadata expiration check: 2:20:20 ago on Sat May  7 20:24:37 2016.
Dependencies resolved.
================================================================================
 Package          Arch    Version                    Repository            Size
================================================================================
Installing:
 codeblocks       x86_64  16.01.svn.10837-1.fc25     jenslody-codeblocks  4.9 M
 codeblocks-libs  x86_64  16.01.svn.10837-1.fc25     jenslody-codeblocks  2.2 M

Transaction Summary
================================================================================
Install  2 Packages

Do you have rawhide repos enabled ?
If yes, disable them, remove codeblocks (the settings will not be touched) and reinstall it from f23 repos.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: All of a sudden... Codeblocks won't run
« Reply #5 on: May 08, 2016, 10:58:07 am »
Here's what I see on my system:
Code
[root@laptop ~]# dnf list codeblocks*
Letzte Prüfung auf abgelaufene Metadaten: vor 12:34:20 am Sat May  7 22:22:05 2016.
Installierte Pakete
codeblocks.x86_64                                                                        16.01.svn.10837-1.fc23                                                           @jenslody-codeblocks
codeblocks-contrib.x86_64                                                                16.01.svn.10837-1.fc23                                                           @jenslody-codeblocks
codeblocks-contrib-libs.x86_64                                                           16.01.svn.10837-1.fc23                                                           @jenslody-codeblocks
codeblocks-debuginfo.x86_64                                                              16.01.svn.10837-1.fc23                                                           @jenslody-codeblocks
codeblocks-libs.x86_64                                                                   16.01.svn.10837-1.fc23                                                           @jenslody-codeblocks
Verfügbare Pakete
codeblocks.src                                                                           16.01.svn.10837-1.fc23                                                           jenslody-codeblocks
codeblocks-contrib-devel.i686                                                            13.12-19.fc23                                                                    fedora             
codeblocks-contrib-devel.x86_64                                                          16.01.svn.10837-1.fc23                                                           jenslody-codeblocks
codeblocks-contrib-libs.i686                                                             13.12-19.fc23                                                                    fedora             
codeblocks-devel.i686                                                                    13.12-19.fc23                                                                    fedora             
codeblocks-devel.x86_64                                                                  16.01.svn.10837-1.fc23                                                           jenslody-codeblocks
codeblocks-libs.i686                                                                     13.12-19.fc23                                                                    fedora             
[root@laptop ~]#

Offline bangorme

  • Multiple posting newcomer
  • *
  • Posts: 28
Re: All of a sudden... Codeblocks won't run
« Reply #6 on: May 08, 2016, 04:43:45 pm »
Thanks for the ideas, but I'm stumped.  Here is my repo list, which hasn't changed since Fedora 23 came out, and my Codeblocks repos's haven't changed since I began using it, about two years ago!  See anything suspicious?


[root@xxxxxxxxxxxxxxxxxxx scott]# dnf repolist
Last metadata expiration check: 10:59:32 ago on Sat May  7 23:36:20 2016.
repo id                           repo name                               status
*fedora                           Fedora 23 - x86_64                      46,074
jenslody-codeblocks               Copr repo for codeblocks owned by jensl     88
jenslody-gnome-shell-extensions   Copr repo for gnome-shell-extensions ow      4
jenslody.de                       Fedora 23 - x86_64 - jenslody.de            12
rpmfusion-free                    RPM Fusion for Fedora 23 - Free            692
rpmfusion-free-updates-testing    RPM Fusion for Fedora 23 - Free - Test     268
rpmfusion-nonfree-updates-testing RPM Fusion for Fedora 23 - Nonfree - Te    103
*updates                          Fedora 23 - x86_64 - Updates            18,720


Then, this returns (from your listing Jens):

[root@xxxxxxxxxxxxxxxxxxxxxxx scott]# dnf install codeblocks  16.01.svn.10837-1.fc23         
No package 16.01.svn.10837-1.fc23 available.
Error: Unable to find a match.
« Last Edit: May 08, 2016, 04:59:28 pm by bangorme »

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: All of a sudden... Codeblocks won't run
« Reply #7 on: May 08, 2016, 04:56:48 pm »
Looks fine for me.
Nevertheless, you can remove the jenslody.de-repo, because Code::Blocks is now only on copr and the gnome-shell-extension-repo, because the extensions are in Fedora official repos now.

What does "dnf list coodeblocks*" say ?

Offline bangorme

  • Multiple posting newcomer
  • *
  • Posts: 28
Re: All of a sudden... Codeblocks won't run
« Reply #8 on: May 08, 2016, 08:08:08 pm »
I removed jenslody.de-repo as suggested.  As you will see below,  I'm seeing fc25  and some fc 23 versions of Codeblocks.  It appears that the fc25 stuff is coming from jenslody, and the fc23 on the Fedora repos.

Code
[root@xxxxxxxxxxxxxxxx scott]# dnf repolist
Last metadata expiration check: 2:37:36 ago on Sun May  8 10:57:43 2016.
repo id                           repo name                               status
*fedora                           Fedora 23 - x86_64                      46,074
jenslody-codeblocks               Copr repo for codeblocks owned by jensl     88
jenslody-gnome-shell-extensions   Copr repo for gnome-shell-extensions ow      4
rpmfusion-free                    RPM Fusion for Fedora 23 - Free            692
rpmfusion-free-updates-testing    RPM Fusion for Fedora 23 - Free - Test     268
rpmfusion-nonfree-updates-testing RPM Fusion for Fedora 23 - Nonfree - Te    103
*updates                          Fedora 23 - x86_64 - Updates            18,720

[root@xxxxxxxxxxxxxxx scott]# dnf list codeblocks*
Last metadata expiration check: 2:37:54 ago on Sun May  8 10:57:43 2016.
Installed Packages
codeblocks-debuginfo.x86_64       16.01.svn.10837-1.fc25    @jenslody-codeblocks
Available Packages
codeblocks.src                    16.01.svn.10837-1.fc25    jenslody-codeblocks
codeblocks.x86_64                 16.01.svn.10837-1.fc25    jenslody-codeblocks
codeblocks-contrib.x86_64         16.01.svn.10837-1.fc25    jenslody-codeblocks
codeblocks-contrib-devel.i686     13.12-19.fc23             fedora             
codeblocks-contrib-devel.x86_64   16.01.svn.10837-1.fc25    jenslody-codeblocks
codeblocks-contrib-libs.i686      13.12-19.fc23             fedora             
codeblocks-contrib-libs.x86_64    16.01.svn.10837-1.fc25    jenslody-codeblocks
codeblocks-devel.i686             13.12-19.fc23             fedora             
codeblocks-devel.x86_64           16.01.svn.10837-1.fc25    jenslody-codeblocks
codeblocks-libs.i686              13.12-19.fc23             fedora             
codeblocks-libs.x86_64            16.01.svn.10837-1.fc25    jenslody-codeblocks


Interesting return for searching for "codeblocks"

Code
[root@xxxxxxxxxxxxxxxxxxxxxxxxxxx scott]# dnf search codeblocks
Copr repo for gnome-shell-extensions owned by jenslody                                                                        4.5 kB/s | 2.4 kB     00:00   
RPM Fusion for Fedora 23 - Nonfree - Test Updates                                                                             372 kB/s | 104 kB     00:00   
Fedora 23 - x86_64                                                                                                            1.7 MB/s |  43 MB     00:25   
RPM Fusion for Fedora 23 - Free                                                                                               1.0 MB/s | 738 kB     00:00   
Copr repo for codeblocks owned by jenslody                                                                                    281 kB/s | 287 kB     00:01   
Fedora 23 - x86_64 - Updates                                                                                                  1.7 MB/s |  22 MB     00:13   
RPM Fusion for Fedora 23 - Free - Test Updates                                                                                883 kB/s | 334 kB     00:00   
================================================================== N/S Matched: codeblocks ===================================================================
codeblocks.src : OpenSource Cross Platform Free C++ IDE
codeblocks.x86_64 : OpenSource Cross Platform Free C++ IDE
codeblocks-debuginfo.x86_64 : Debug information for package codeblocks
codeblocks-libs.i686 : Libraries needed to run Code::Blocks and its plug-ins
codeblocks-libs.x86_64 : Libraries needed to run Code::Blocks
codeblocks-devel.i686 : Files needed to build Code::Blocks plug-ins
codeblocks-devel.x86_64 : Code::Blocks development libraries and headers (SDK)
codeblocks-contrib.x86_64 : Code::Blocks contrib plugins
codeblocks-contrib-libs.i686 : Libraries needed to run Code::Blocks contrib plug-ins
codeblocks-contrib-libs.x86_64 : Libraries needed to run Code::Blocks contrib-plugins
codeblocks-contrib-devel.i686 : Files needed to build Code::Blocks contrib plug-ins
codeblocks-contrib-devel.x86_64 : Code::Blocks development libraries and headers for wxSmith and wxContribItems
fedora-rawhide-jenslody.de.noarch : RPM Package to install repo-file for codeblocks
[root@cpe-76-178-212-156 scott]# dnf repolist
Last metadata expiration check: 0:04:36 ago on Sun May  8 19:59:20 2016.
repo id                                                          repo name                                                                              status
*fedora                                                          Fedora 23 - x86_64                                                                     46,074
jenslody-codeblocks                                              Copr repo for codeblocks owned by jenslody                                                 88
jenslody-gnome-shell-extensions                                  Copr repo for gnome-shell-extensions owned by jenslody                                      4
rpmfusion-free                                                   RPM Fusion for Fedora 23 - Free                                                           692
rpmfusion-free-updates-testing                                   RPM Fusion for Fedora 23 - Free - Test Updates                                            268
rpmfusion-nonfree-updates-testing                                RPM Fusion for Fedora 23 - Nonfree - Test Updates                                         103
*updates                                                         Fedora 23 - x86_64 - Updates                   

EDIT:
added code-tags to enhance readability.
Jens
« Last Edit: May 09, 2016, 06:06:45 am by jens »

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: All of a sudden... Codeblocks won't run
« Reply #9 on: May 09, 2016, 07:34:41 pm »
I added code-tags to your previous post, to enhance readability.
Please do this also (in the future). Code-tags use monospace fonts and this is much better to read if you have (e.g.) console output, besides the better distinction between normal text and code.

Back to the real problem:

What is in your repo-file ?

It should look like this:
Code
[jenslody-codeblocks]
name=Copr repo for codeblocks owned by jenslody
baseurl=https://copr-be.cloud.fedoraproject.org/results/jenslody/codeblocks/fedora-$releasever-$basearch/
skip_if_unavailable=True
gpgcheck=1
gpgkey=https://copr-be.cloud.fedoraproject.org/results/jenslody/codeblocks/pubkey.gpg
enabled=1
enabled_metadata=1
The usage of the releasevar-variable makes sure, that you always use the correct repo.

How did you install the debuginfo-package ?

Offline bangorme

  • Multiple posting newcomer
  • *
  • Posts: 28
Re: All of a sudden... Codeblocks won't run
« Reply #10 on: May 09, 2016, 07:59:46 pm »
Sorry about the formatting issue.

Here is my current repo file:
Code
[jenslody-codeblocks]
name=Copr repo for codeblocks owned by jenslody
baseurl=https://copr-be.cloud.fedoraproject.org/results/jenslody/codeblocks/fedora-rawhide-$basearch/
skip_if_unavailable=True
gpgcheck=0
enabled=1

[jenslody-gnome-shell-extensions]
name=Copr repo for gnome-shell-extensions owned by jenslody
baseurl=https://copr-be.cloud.fedoraproject.org/results/jenslody/gnome-shell-extensions/fedora-rawhide-$basearch/
skip_if_unavailable=True
gpgcheck=0
enabled=1

[jenslody.de]
name=Fedora $releasever - $basearch - jenslody.de
baseurl=http://rpm.jenslody.de/rawhide/$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-jenslody.de
skip_if_unavailable=True

[jenslody.de-release]
name=Fedora $releasever - $basearch - jenslody.de - release
baseurl=http://rpm.jenslody.de/release/rawhide/$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-jenslody.de
skip_if_unavailable=True


I'm seeing lots of reference to "rawhide" in here.  I'm suspecting that is your alpha and beta repository, which may explain why I'm getting FC25 stuff.  I will go in and add the language as suggested.  Maybe I should just delete all the entries that mention rawhide?  I've got no idea how it got in there, since I've had no trouble with Code::Blocks and dnf until last week????

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: All of a sudden... Codeblocks won't run
« Reply #11 on: May 09, 2016, 10:10:25 pm »
Sorry about the formatting issue.

Here is my current repo file:
Code
[jenslody-codeblocks]
name=Copr repo for codeblocks owned by jenslody
baseurl=https://copr-be.cloud.fedoraproject.org/results/jenslody/codeblocks/fedora-rawhide-$basearch/
skip_if_unavailable=True
gpgcheck=0
enabled=1

[jenslody-gnome-shell-extensions]
name=Copr repo for gnome-shell-extensions owned by jenslody
baseurl=https://copr-be.cloud.fedoraproject.org/results/jenslody/gnome-shell-extensions/fedora-rawhide-$basearch/
skip_if_unavailable=True
gpgcheck=0
enabled=1

[jenslody.de]
name=Fedora $releasever - $basearch - jenslody.de
baseurl=http://rpm.jenslody.de/rawhide/$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-jenslody.de
skip_if_unavailable=True

[jenslody.de-release]
name=Fedora $releasever - $basearch - jenslody.de - release
baseurl=http://rpm.jenslody.de/release/rawhide/$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-jenslody.de
skip_if_unavailable=True


I'm seeing lots of reference to "rawhide" in here.  I'm suspecting that is your alpha and beta repository, which may explain why I'm getting FC25 stuff.  I will go in and add the language as suggested.  Maybe I should just delete all the entries that mention rawhide?  I've got no idea how it got in there, since I've had no trouble with Code::Blocks and dnf until last week????
It looks like the repo file for rawhide from my server.
It should be used with rawhide only.
There is also a repo-file for stable releases.

Remove codeblocks and the repo-file and readd the cop-repo with
Code
dnf copr enable jenslody/codeblocks 
as root or via sudo.

Offline bangorme

  • Multiple posting newcomer
  • *
  • Posts: 28
Re: All of a sudden... Codeblocks won't run
« Reply #12 on: May 10, 2016, 01:45:37 am »
Thanks Jens.  I did as suggested, but I still got fc25 stuff.   dnf shows I've got nothing to be removed involving codeblocks, however, take a look at this:

Code

[root@cpe-xxxxxxxxxxxxxxx yum.repos.d]# codeblocks
bash: codeblocks: command not found...
Install package 'codeblocks' to provide command 'codeblocks'? [N/y] y


 * Waiting in queue...
 * Loading list of packages....
The following packages have to be installed:
 codeblocks-libs-16.01.svn.10850-1.fc25.x86_64 Libraries needed to run Code::Blocks
Proceed with changes? [N/y] n


Even with nothing (codeblocks related) in my dnf.repos files except for the repo you provided, it STILL was finding fc25 stuff to download.  So I removed ALL rawhide repos in my repolist which made it:

Code
[root@cpe-76-178-xxxxxxxxxxxxxxxxxxxx  yum.repos.d]# dnf repolist
Last metadata expiration check: 2:15:21 ago on Mon May  9 17:12:12 2016.
repo id                                                             repo name                                                                           status
*fedora                                                             Fedora 23 - x86_64                                                                  46,074
jenslody-codeblocks                                                 Copr repo for codeblocks owned by jenslody                                             108
rpmfusion-free                                                      RPM Fusion for Fedora 23 - Free                                                        692
rpmfusion-free-updates-testing                                      RPM Fusion for Fedora 23 - Free - Test Updates                                         268
rpmfusion-nonfree-updates-testing                                   RPM Fusion for Fedora 23 - Nonfree - Test Updates                                      103
*updates                                                            Fedora 23 - x86_64 - Updates 

I was then able to install svn build ver 10850 (2016-05-05), which did run.  However, I did lose all my settings.  I had to manually add the debugging piece.  But I was able to compile and run a test project.

Thanks for your help.  I consider the issue resolved.
« Last Edit: May 10, 2016, 02:07:47 am by bangorme »