Bug 328501 - New game; no tiles visible, only background
Summary: New game; no tiles visible, only background
Status: RESOLVED WORKSFORME
Alias: None
Product: kmahjongg
Classification: Applications
Component: general (show other bugs)
Version: 0.9
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Christian Krippendorf
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-07 04:29 UTC by Rob Watson
Modified: 2022-07-19 04:36 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Atlantis Layout and specific game number (2.79 MB, image/png)
2022-06-19 14:31 UTC, Christian Krippendorf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rob Watson 2013-12-07 04:29:51 UTC
Sometimes when starting a new game, no tiles (none of them) appear; there is just the background image. For example: game 894,319,287 in layout "Atlantis" (and, by the way, it would be handy if the status bar told me the layout).

The timer in the status bar starts counting, so the game thinks it has started.

But the status bar also says "Error generating new game!" and also "Removed: -42,826/132" which doesn't look right, either.

Re-sizing the window forces a re-draw and all the tiles appear, so it looks normal. But then some tile pairs are ignored when matched (e.g. the 7-of-characters pair in the example given above).
Comment 1 Daniel Pastushchak 2014-12-23 19:55:15 UTC
Comment from GCI student:
Quite similar bug: https://bugs.kde.org/show_bug.cgi?id=273971
Comment 2 Rob Watson 2014-12-25 00:28:49 UTC
Yes. I realised later that the actual bug is the failure to generate the board. I hadn't noticed the message "Error generating new game!" on the status line, and I was just reporting symptoms.

That bug seems to have been around for some tme.

Just adding tiles in matching pairs (randomly placed) would guarantee a successful generation and a solveable game every time, I thought?
Comment 3 Wolfgang Bauer 2020-05-26 07:12:42 UTC
Still reproducable with the latest 20.04.1.
Comment 4 Christian Krippendorf 2022-06-19 14:29:35 UTC
Hello to everyone,

that is a really old bug, which is surely not a compliment to myself. :-)

Unfortunately, I cannot reproduce the problem with the given game number and layout (see attachment) on Tumbleweed. Is anyone able to reproduce this bug and has more information?

@Rob Watson: You are right with the information of the algorithm. But this has also other drawbacks, so you need to get a way of unique numbering. I got an algorithm already implemented in JMahjongg, but it does not have the possibilities to choose a specific number.

A short look into the source code show, that there are still a maximum number of tries to create a new game. So if the problem is, that the game number is not solvable in general, all 64 tries should fail everytime the game will be created. And therefore I should still be able to reproduce it.

Thank you all in advance for investing your time and for your help in making KDE applications even better.

Greetings from Christian
Comment 5 Christian Krippendorf 2022-06-19 14:31:17 UTC
Created attachment 149927 [details]
Atlantis Layout and specific game number
Comment 6 Bug Janitor Service 2022-07-04 04:36:48 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Bug Janitor Service 2022-07-19 04:36:35 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!