Bug 302506 - Shisen-Sho selects tile pairs slowly and crashes
Summary: Shisen-Sho selects tile pairs slowly and crashes
Status: RESOLVED FIXED
Alias: None
Product: kshisen
Classification: Applications
Component: general (show other bugs)
Version: 1.8.4
Platform: Ubuntu Linux
: NOR critical
Target Milestone: ---
Assignee: Frederik Schwarzer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-25 13:21 UTC by mike
Modified: 2012-10-17 07:59 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mike 2012-06-25 13:21:55 UTC
Program opens fine, but selecting tiles is slow and after one or two pairs of tiles cleared the program crashes. Backtrace didn't go through to your site but I saved it.

Reproducible: Always

Steps to Reproduce:
1. Click on applications-games-Shisen-Sho.
2. Select tiles (slowly red connector appears to connect tiles.
3. Repeat step two for another set of tile pairs
4. Program crashes and automated troubleshooting kicks in.
Actual Results:  
Program crashes and KDE automated troubleshooting screens appear.

Expected Results:  
I expect the red connector to appear fairly rapidly and that I can keep connecting and removing tile pairs until I win or run out of moves.

I am running ubuntu 12.4 installed through wubi on a triple boot machine (win7 pro/win 7 premium/ ubuntu) running on a Classic gnome desktop manager.

hardware is a G62-227CL HP laptop

Note: automated KDE troubleshooting proceeded to completion including a backtrace. The login to KDE site (bug tracking system) failed for some reason, but I have saved the backtrace file if you want me to email it to you.

Final error message: Executable: kshisen PID: 4638 Signal: Aborted (6)
Comment 1 Frederik Schwarzer 2012-06-25 14:58:17 UTC
You can also attack the backtrace here on the website.

Can you disable sounds in KShisen (Settings menu) and try again?
Comment 2 mike 2012-06-28 08:54:18 UTC
Hi,
I got your email. I turned off the sound and the program elicits these changes:

The tile selection and the drawing of the line that connects them forms more quickly.
The application doesn't crash as well.

I took the liberty to run several scenarios. It seems that if the sound is set to play and the user clicks and then clicks again quickly to select the tiles again because the feedback is slow (the line and shading of the selected tiles is slow) the program crashes and triggers the debug and error messages.

I also set the sound for the system on and off and the sound in the program both on and off checking all combinations of both settings on, off and either setting on or off. The issue seems to center on the program sound being set on and setting the sound in the program to off fixes the issue.

I hope this helps
Comment 3 Frederik Schwarzer 2012-06-28 12:56:04 UTC
Ah, sorry for holding back info in my last answer.

It is most likely an issue with the Phonon GStreamer back-end. The issue is now fixed:
- by using Phonon only as a fallback in KShisen in KDE 4.9 (sndfile and openal are preferred now) and
- in some recent commit in the GStreamer back-end itself.

I just asked you for the backtrace to be certain that this is the same issue.
Can you still attach the backtrace here?
Comment 4 Thomas Taylor 2012-08-06 08:07:08 UTC
The VERY slow red connector is also present in kshisen 1.8.4 on a kde desktop 4.8.4 (release 2) running under openSuSE 12.2-RC2.  Under previous openSuSE version (12.2-ß2) that did not occur, the speed was fast as expected.  However I have not had the game crash, just slow.

Hardware:  ASUS M4N98TD EVO
CPU:  Athlon Phenom II x4
video:   EVGA GTX 550 Ti (Nvidia 550 Ti) w/Nvidia linux driver 295.53

Running kshisen in root mode with a nice of -19 made no difference in game performance.  A copy of the konsole session and /var/log/messages is on pastebin.com as "kshisen-slowness".
Comment 5 Julian Borrero 2012-10-16 14:13:55 UTC
Hi
I just noted the Shisen-sho also reacts slowly to a selection of 2 tiles, the red connectors are draw slowly, i just tried the game for 2 or maybe 3 pairs selection and give up, for me the game never  crashed. To make the game respond quickly i just change the background and tiles design to the "default" set and the performance was improved. this way the game responds as expected.

I'm Running LinuxMint 13 (maya) using kernel 3.2.0-32-generic, xorg 1.11.3, processor Intel(R) Core(TM) i3 CPU M 370  @ 2.40GHz, 3GB Ram.
Comment 6 Frederik Schwarzer 2012-10-17 07:59:42 UTC
The problem is the audio output.When KShisen tries to play a sound, it load Phonon to do the actual playing. Phonon uses some backend, e.g. GStreamer. Now GStreamer has a bug in some version that makes it load for ages. This delay hits games a lot since games often play many short sounds.

In KDE 4.9 this is worked around by not using Phonon any longer but instead some audio framework developed specially for games.

There is also a fix in GStreamer but I do not know in what version.

Thanks for the reports.