Bug 55734 - KAtomic: main window black, the left panel shows only some carbage
Summary: KAtomic: main window black, the left panel shows only some carbage
Status: RESOLVED FIXED
Alias: None
Product: katomic
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: RedHat Enterprise Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Stephan Kulow
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-09 11:31 UTC by Ville Aakko
Modified: 2003-08-30 23:55 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot showing the issue. (8.96 KB, image/png)
2003-03-10 23:20 UTC, Nathan Hollingsworth
Details
KAtomic binary that works (102.20 KB, application/octet-stream)
2003-05-22 18:56 UTC, BryanFRitt
Details
KAtomic upload try 2 (102.20 KB, application/x-executable)
2003-05-25 23:36 UTC, BryanFRitt
Details
A diff of Ivan's changes (see comment #24). (5.17 KB, patch)
2003-07-27 19:03 UTC, Dave Corrie
Details
A diff containing (what I believe to be) the pertinent sections of Ivan's changes. (1.32 KB, patch)
2003-07-27 19:05 UTC, Dave Corrie
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ville Aakko 2003-03-09 11:31:16 UTC
Version:            (using KDE KDE 3.1)
Installed from:    RedHat RPMs
OS:          Linux

Now, I jus like making all those wonderful compounds I'm studying every now and then...

But, recently, I noticed KAtomic has been broken, probably bacause all the new upgrades of KDE I have installed on my RedHat 8.0 recently. The main game windows is totally black, and the smaller one, wich should show the ready chemical compound, shows some of the atoms realllly small and wrongly aligned. (I don't have a magnifying glass so I can't say for sure, but there's (only) something there :(

So is it only my computer or is KAtomic broken on everybodys computer using KDE 3.1-9.3.8.0/KAtomic 2.0 ? (just run apt-get yesterday, but I have had this problem for a week now - so it's not just this version)

I did scramble around with the binaries I found on sourceforge.net before using apt-get to upgrade (because I didn't read the docs on RedHat release properly right away).  It is possible these packages somehow scrambled my installation, but I don't think it's propable because everything else works OK, and apt-get doesn't report any dependency errors.


If you need any extra information about my config or installed packages, I'll be happy to give it if it makes KAtomic work again ;). Want a screenshot? How to take a screenshot in KDE?
Comment 1 Nathan Hollingsworth 2003-03-10 23:16:35 UTC
I too am having the same problem on RedHat 8.0.94 beta with all the rawhide
packages installed.
Comment 2 Nathan Hollingsworth 2003-03-10 23:20:23 UTC
Created attachment 1141 [details]
Screenshot showing the issue.
Comment 3 Rex Dieter 2003-03-19 20:32:53 UTC
Get more people to vote on this... the bug gets un-unverified when/if votes > 100, and then 
hopefully the kde folks will be more likely to check into this. 
Comment 4 Rex Dieter 2003-03-19 20:36:33 UTC
FYI, recompiling with debugging, compiler optimization of -O0, and enabling kdegames 
kdebug info in kdebugrc yielded no output/errors reported, and still a blank window. 
Comment 5 Stephan Binner 2003-03-19 21:57:18 UTC
Works fine for me with KDE_3_1_BRANCH and non-RedHat. :-) 
Comment 6 Brian Krisler 2003-03-19 22:02:52 UTC
I had just switched from self compiled 3.1 to apt-get 3.1 and it stopped working. 
It was working great under the self-compiled code. 
Makes me think it is an issue with the rpm's, and not the source. 
 
Comment 7 Rex Dieter 2003-03-20 18:58:55 UTC
I tried uninstalling the kdegames RPM and installed from source by hand, and still had the 
problem.  Hmm... maybe the root cause lies elsewhere?  I'll have to do some more digging 
(and I'll have to check kde-3.1.1)... 
Comment 8 BryanFRitt 2003-05-18 00:30:28 UTC
 
Could this be a video card driver issue?  
I have an ATI 8500DV video card. 
 
I can't remember when this problem started on my computer. 
I'm sure it worked on Red Hat 8.0 at some point.  I can't remember, but I think I had this 
problem at some point on that system. 
Now I'm at Red Hat 9.0 and I have this problem. 
 
In the preview window I only see what looks to be the Horizontal bonds, no verticals.  Are all 
the images stored, and in the right place, or are they hidden?  Can you play this even though 
no images are shown? (The only way to tell may be to finish(win) a level without seeing what 
you are doing.) 
 
Heres where the source is located if you used konstruct 
kdenonbeta/konstruct/kde/kdegames/download/kdegames-3.1.1.tar.bz2/kdegames-3.1.1/katomic 
Its shows the pictures in abilder.png 
I search my kde-3.1.1 directory and find it here: 
file:/root/kde3.1.1/share/apps/katomic/pics 
If I can get kde-3.1.1 working I'll see if it works. 
 
While you're at it you can make somemore levels up, and post them::-) 
(real molecules please) 
:-) 
 
--KAtomic isn't much fun without atoms :-) 
 
Comment 9 BryanFRitt 2003-05-18 22:10:40 UTC
 
This is fixed with KDE 3.1.1a on my computer, but KDE 3.1.1a takes 5+ min. to start up vs. a 
few seconds on 3.1-10 (the one Red Hat 9.0 came with) (What's wrong, runs normal except 
when starting stuff up), so I commited out the export lines and now I'm back to RedHat's 
default kde, but... 
KAtomic will work (even if running 3.1-10) if I make a link to file:/root/kde3.1.1/bin/katomic , 
by draging the the file file:/root/kde3.1.1/bin/katomic from konqueror to the desktop with 
Control+Shift 
the file file:/root/kde3.1.1/bin/katomic was make when I tried to install kde3.1.1a 
 
Comment 10 Rex Dieter 2003-05-19 15:07:50 UTC
FYI, still a problem with kde(games)-3.1.2. 
Comment 11 BryanFRitt 2003-05-20 07:22:54 UTC
  
It's a problem with the shortcut and the program. make a shortcut to the program like  
above and that will fix the problem.  
If I run it though the default shortcut it will still have this problem, but going though the  
shortcut that I made (see above commit, pasted below) will fix the problem.  I make a link  
both the Atomics in KDE 3.1.1a and 3.1.2 this way and it works for both of them but the 
shortcuts in  
 
/root/KDE3.1.1/share/applink/Games/TacticStrategy/katomic.desktop and  
/root/KDE3.1.2/share/applink/Games/TacticStrategy/katomic.desktop  
and the ones in my KDE menu don't work. 
  
How to add this to the KDE menu?, or fix the shortcut there?  What exactly is wrong with  
those shortcuts?  
  
 make a link to file:/root/kde3.1.1/bin/katomic ,   
 by draging the the file file:/root/kde3.1.1/bin/katomic from konqueror to the desktop with   
 Control+Shift  
:-)  
  
Comment 12 BryanFRitt 2003-05-20 07:52:31 UTC
   
It's a problem with the shortcut and the program.  Make a shortcut to the program like   
above (see above commit, pasted below) and that will fix the problem. 
   
If I run it though the default shortcut it will still have this problem, but going though the  
shortcut that I made (see above commit, pasted below) will fix the problem. 
I make a link both the Atomics in KDE 3.1.1a and 3.1.2 this way and it works for both of 
them, but the shortcuts in 
/root/KDE3.1.1/share/applink/Games/TacticStrategy/katomic.desktop and   
/root/KDE3.1.2/share/applink/Games/TacticStrategy/katomic.desktop   
and the ones in my KDE menu don't work. 
 
If I check the About:KAtomic menu they all say KAtomic 2.0 (Using KDE 3.1.2-0.9x.2 Red 
Hat) execpt the shortcut I make on the desktop to the KAtomic is the 3.1.1a directory 
which says ...(Using KDE 3.1.1a) 
 
How to add this to the KDE menu?, or fix the shortcut there?  What exactly is wrong with   
those shortcuts?  or is it the program? 
 
paste 
 make a link to file:/root/kde3.1.1/bin/katomic ,    
 by draging the the file file:/root/kde3.1.1/bin/katomic from konqueror to the desktop with    
 Control+Shift   
endpaste 
Hopefully this helps :-)  
  
  by the way I think I got KDE-3.1.2 working on my system now. 
 
Comment 13 BryanFRitt 2003-05-20 08:11:26 UTC
 
Another stange thing: 
I can click on the icon in 
file:/root/kde3.1.x/bin/katomic 
from konquer and KAtomic will start up fine, 
but if I type in katmic from a konsole window 
(even in the same directory as file:/root/kde3.1.x/bin/katomic) 
It will come up with this problem. 
 
Comment 14 Rex Dieter 2003-05-20 17:12:01 UTC
Re: comment #8, it's not a video driver issue, I've seen this on *many* boxes with various 
video cards (ATI, Matrox). 
 
Re: comment #9, comment #10, comment #11: I've tried launching katomic in every 
conceivable way, and it never works. 
Comment 15 BryanFRitt 2003-05-20 18:43:33 UTC
   
Looks like Red Hat RPM stores its K-Menu (or Red Hat, or Start menu or whatever you 
want to call it) in  
file:/usr/share/applnk-redhat  
and KAtomic in  
file:/usr/bin/katomic  
 
but from sources using konstruct the k menu is in 
file:/root/kde3.1.x/share/applnk 
with KAtomic being in  
file:/root/kde3.1.x/bin/katomic  
  
replace the KAtomic from /usr/bin with /root/KDE3.1.x/bin/katomic and all the problems  
will go away  
  
if I click on that katomic from /usr/bin/ I get the blank window in the game area and dots  
on the right hand side, but not from /root/kde3.1.x/bin which gives me the right katomic.  
When I installed KDE3.1.2 I did it first using konstruct from sources then I did it via rpm   
-Uhv * . I had to install some packages using redhat-config-packages to get it to work.   
The rpm method is massively faster, a few minutes vs like a day (If a download isn't  
working when using konstruct use ctrl+c up arrow enter, or download it yourself first and  
put it in the right directory /download or the gar directory that you told it)   
  
You can add the shortcuts in  /root/KDE3.1.x/share/applink to your start menu using    
drag+shift+control from /root/KDE3.1.x/share/applink to /usr/share/applnk-redhat , which  
by the way still don't go to the right KAtomic unless you replace the KAtomic from  
/usr/bin with /root/KDE3.1.x/bin/katomic which will fix the problem  
  
I guess the only thing I proved was that it is the Red Hat rpms, and that you can compile   
from sources using konstruct and replace the RPM Red Hat KAtomic with the compiled  
one to fix the problem.  
  
Comment 16 BryanFRitt 2003-05-20 23:41:12 UTC
 
Somethings not right with this, but that's another topic/bug. 
paste 
 You can add the shortcuts in /root/KDE3.1.x/share/applink to your start menu using  
 drag+shift+control from /root/KDE3.1.x/share/applink to /usr/share/applnk-redhat 
endpaste 
try copying instead?  k-menu update times? reboot? etc... 
Comment 17 Rex Dieter 2003-05-20 23:49:14 UTC
1.  I'm not going to rebuild *all* of kde using konstruct just so that I can get katomic 
working... (-: 
2.  Manually building/installing kdegames using various options: --enable-final, 
--enable-debug, -O0, -O1 yields the same non-functional katomic. 
 
Again, is there *any* advice about how I can debug this further? 
Comment 18 Stephan Kulow 2003-05-21 13:23:50 UTC
Hmm, Option "noaccel" somewhere in your graphic card section of XF86Config might be 
worthwhile. 
 
Do you use some unusual color depth or some binary graphics driver? 
If you recompiled kdegames with --enable-debug=full, try valgrind katomic 
(try fm:valgrind if you don't know where to get it from) 
 
Comment 19 Rex Dieter 2003-05-21 20:40:33 UTC
Option "noaccel" made no difference, and running an --enable-debug=full version of katomic 
under valgrind yielded nothing useful (just a few warnings about use of few uninitialized 
variables in QT). 
Comment 20 BryanFRitt 2003-05-22 18:56:44 UTC
Created attachment 1632 [details]
KAtomic binary that works


This is the KAtomic from my /root/kde3.1.2/bin/katomic file.
Put this in your /usr/bin/ directory to fix KAtomic.
You might want to back up your old KAtomic first by renaming or moving it.
Tell me if this works.	(via message board)
I wonder if you need to have the same cpu type as I do, a P4.
I didn't set any special options like that when I ran konstruct.
Comment 21 Rex Dieter 2003-05-22 19:09:02 UTC
Your binary doesn't work either.  I suspect the real problem lies inside a shared library 
somewhere. 
Comment 22 BryanFRitt 2003-05-25 23:36:26 UTC
Created attachment 1649 [details]
KAtomic upload try 2


I tried the one I uploaded and it didn't work. (nothing happened)
Could I have done something wrong when uploading it?
This time I'm trying auto-detect instead of binary file content type.

The one I uploaded before somehow got renamed from katomic to attachment.cgi,
so I renamed it and put it in the right folder.  It didn't work, but the one I
copied from file://root/kde3.1.2/bin still worked.  That's the one I'm trying
to upload again.
Comment 23 BryanFRitt 2003-05-26 02:14:05 UTC
 
Looks like my new upload dosn't work either.  Am I doing this wrong or is this another bug. 
 
Comment 24 Ivan Pomidorov 2003-07-06 18:51:51 UTC
This is, imho, due to BarIcon function in files feld.cpp and molek.cpp.
I have replaced it by QPixmap function and got Katomic worked.
Binary Katomic and changed source files you can download here:
http://index.msk.ru/tmp/kdegames-3.1.2-katomic-hack.tar.gz
Comment 25 Rex Dieter 2003-07-07 16:04:11 UTC
Yay!  katomic BarIcon->QPixmap hack works as advertised.  Thank you very much. 
Comment 26 Dave Corrie 2003-07-27 19:03:16 UTC
Created attachment 2082 [details]
A diff of Ivan's changes (see comment #24).
Comment 27 Dave Corrie 2003-07-27 19:05:53 UTC
Created attachment 2083 [details]
A diff containing (what I believe to be) the pertinent sections of Ivan's changes.

Whilst useful, I do not believe the other changes Ivan made are relevant to
this bug report.

Can someone (Rex?) please test this patch to check that it fixes this bug? I
will wait until I get an 'ok' from someone before committing because I'm not a
Redhat user and can't reproduce the problem.
Comment 28 Ivan Pomidorov 2003-07-27 19:27:59 UTC
To Dave Corrie (comment #27)

>I do not believe

1)I have made changes for those who believes;
2)That is source C code, not religion;
3)Katomic bug seems already fixed in new kdelibs version;
Comment 29 Dave Corrie 2003-07-27 19:41:40 UTC
> 1)I have made changes for those who believes;

I'm not sure I understand you fully. What I meant was that your extra changes
should go into HEAD, instead of KDE_3_1_BRANCH because they are not required to
fix this bug. I would not like to see these changes get lost and I would like to
thank you for the work you have done.

> 2)That is source C code, not religion;

I think maybe my use of the word 'believe' did not translate well to Russian :-)
I was not using it in a religious sense. Let's stick to source code :-)

> 3)Katomic bug seems already fixed in new kdelibs version;

Questions:
a) Is this bug now fixed in both HEAD and KDE_3_1_BRANCH?
b) Does this remove the need for any of the attached patches?
Comment 30 Rex Dieter 2003-07-27 21:40:28 UTC
I'll verify whether the new patch is/is-not required vs kdelibs-3.1.3 (on 
redhat) tomorrow.  I can tell you that the original patch/hack did fix things 
against kdelibs-3.1.2.
Comment 31 Rex Dieter 2003-07-28 18:24:16 UTC
Verified.  New patch works and is required for proper functioning with 
kdelibs-3.1.3 so is apparently only fixed in HEAD, not KDE_3_1_BRANCH. 
Comment 32 Dave Corrie 2003-07-28 21:36:06 UTC
In an attempt to figure out why HEAD works but KDE_3_1_BRANCH does not, I had a
brief look in kdelibs to see if any relevant code was different between 3.1.3
and HEAD, but I did not spot anything. I guess something could have changed in
QT (I'm assuming Rex runs HEAD against a different version of QT than when he
runs 3.1.3).

IMO the use of BarIcon in katomic is semantically wrong, so even if the cause of
the problem is not in katomic itself, the patch in attachment #2083 [details] is still valid.

The patch applies cleanly to KDE_3_1_BRANCH and applies with offsets to HEAD. I
leave the final decision of whether to commit to the maintainer, but IMO it
should be committed to both branches. Credit should be attributed to Ivan.
Comment 33 Albert Astals Cid 2003-08-30 23:55:43 UTC
I've commited the fix of Ivan to both KDE_3_1_BRANCH and HEAD.