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?
I too am having the same problem on RedHat 8.0.94 beta with all the rawhide packages installed.
Created attachment 1141 [details] Screenshot showing the issue.
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.
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.
Works fine for me with KDE_3_1_BRANCH and non-RedHat. :-)
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.
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)...
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 :-)
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
FYI, still a problem with kde(games)-3.1.2.
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 :-)
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.
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.
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.
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.
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...
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?
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)
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).
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.
Your binary doesn't work either. I suspect the real problem lies inside a shared library somewhere.
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.
Looks like my new upload dosn't work either. Am I doing this wrong or is this another bug.
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
Yay! katomic BarIcon->QPixmap hack works as advertised. Thank you very much.
Created attachment 2082 [details] A diff of Ivan's changes (see comment #24).
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.
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;
> 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?
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.
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.
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.
I've commited the fix of Ivan to both KDE_3_1_BRANCH and HEAD.