Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 459742 - games-misc/katawa-shoujo-1.0: Python exception AttributeError occurs during game
Summary: games-misc/katawa-shoujo-1.0: Python exception AttributeError occurs during game
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Julian Ospald
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-28 16:10 UTC by Pavel Volkov
Modified: 2013-02-28 21:39 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
saved games (renpy.tar.bz2,479.37 KB, application/octet-stream)
2013-02-28 17:34 UTC, Pavel Volkov
Details
saved games (bundled version) (renpy_bundled.tar.bz2,346.20 KB, application/x-bzip)
2013-02-28 20:02 UTC, Pavel Volkov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Volkov 2013-02-28 16:10:37 UTC
When Hisao is falling from the roof, right after the screen turns red, AttributeError occurs. I see the details about it in both terminal from which the game is launched and in game window. Renpy implementation is set to 6.14. 
This is the output from terminal:

Full traceback:
  File "/usr/lib64/python2.7/site-packages/renpy614/renpy/execution.py", line 266, in run
    node.execute()
  File "/usr/lib64/python2.7/site-packages/renpy614/renpy/ast.py", line 646, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "/usr/lib64/python2.7/site-packages/renpy614/renpy/python.py", line 1172, in py_exec_bytecode
    exec bytecode in globals, locals
  File "/Developer/Projects/ks_svn/Katawa Shoujo/game/ui_labels.rpy", line 1055, in <module>
AttributeError: 'Text' object has no attribute 'laidout_height'

While running game code:
  File "/Developer/Projects/ks_svn/Katawa Shoujo/game/imachine.rpy", line 539, in script call
  File "/Developer/Projects/ks_svn/Katawa Shoujo/game/ui_labels.rpy", line 1228, in script call
  File "/Developer/Projects/ks_svn/Katawa Shoujo/game/ui_labels.rpy", line 1055, in script
  File "/Developer/Projects/ks_svn/Katawa Shoujo/game/ui_labels.rpy", line 1055, in python
AttributeError: 'Text' object has no attribute 'laidout_height'


Reproducible: Always

Steps to Reproduce:
1. Load a saved game.
2. Skip a few lines.



Portage 2.2.0_alpha163 (default/linux/amd64/13.0/desktop/kde, gcc-4.6.3, glibc-2.16.0, 3.7.7-gentoomelf x86_64)
=================================================================
System uname: Linux-3.7.7-gentoomelf-x86_64-Intel-R-_Core-TM-_i5-2400_CPU_@_3.10GHz-with-gentoo-2.2
KiB Mem:    16415008 total,   8656992 free
KiB Swap:    5242876 total,   5242876 free
Timestamp of tree: Thu, 28 Feb 2013 15:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p42
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo systemd floppym custom
Installed sets: @fonts, @kde, @vim
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE NVIDIA skype-4.0.0.7-copyright AdobeFlash-11.x MPEG-4 myspell-ru_RU-ALexanderLebedev grass-ipafonts BitstreamCyberbit freedist fairuse free-noncomm MSttfEULA vim.org as-is IUPAC-InChi CC-BY-NC-ND-3.0 NEWLIB LIBGLOSS"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -mtune=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/ibus/component/simple.xml /usr/share/polkit-1/actions"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native -mtune=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/ http://trumpetti.atm.tut.fi/gentoo/"
LANG="ru_RU.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--ipv4"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/systemd /var/lib/layman/floppym /usr/local/portage"
SYNC="rsync://mirror.yandex.ru/gentoo-portage/"
USE="X a52 aac acl acpi alsa amd64 anthy bash-completion bluetooth branding bzip2 cairo cdda cdr cjk cli consolekit cracklib crypt cups cxx dbus declarative directfb djvu dri dts dvd dvdr emboss encode exif fam fbcon ffmpeg firefox flac fortran gdbm gif gpm gstreamer gtk iconv icu idn ipv6 jpeg kde kipi lame lcms libcaca libnotify lm_sensors mad matroska mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf perl phonon plasma png policykit ppds python qt3support qt4 raw readline samba sdl semantic-desktop session spell sse sse2 ssl startup-notification svg systemd tcpd tiff truetype udev udisks unicode upower usb vdpau vorbis wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid zlib zsh-completion" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB ru ja" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="genesys" USERLAND="GNU" VIDEO_CARDS="nvidia nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON
Comment 1 Julian Ospald 2013-02-28 16:14:35 UTC
Please test the bundled version of katawa-shoujo, so we can figure out if this is related to the ebuild or to our renpy version.
Comment 2 Julian Ospald 2013-02-28 16:38:42 UTC
maybe even attach the savegame
Comment 3 Pavel Volkov 2013-02-28 17:33:40 UTC
There are 2 things I found out about the bundle:

1. It could not load my save from tree's version. I started a new game.
2. The exception did not occur at the mentioned moment in the game. And it was actually game over.

I will attach .renpy directory (created by tree's Katawa Shoujo) which I backup up.
Comment 4 Pavel Volkov 2013-02-28 17:34:14 UTC
Created attachment 340526 [details]
saved games
Comment 5 Julian Ospald 2013-02-28 18:39:18 UTC
I don't have the source and upstream seems not interested in fixing, so this looks like an incompatibility with 6.14

is this an actual gamebraker?

The only solution seems to be to re-bundle it or try to package 6.10, but afair that has problems with ffmpeg.
Comment 6 Pavel Volkov 2013-02-28 19:45:07 UTC
This doesn't break the game.
Even though you can't proceed past this scene, the only thing that's left are the closing credits followed by main menu.
But I played only one route, maybe there's something else broken elsewhere.
Comment 7 Julian Ospald 2013-02-28 19:51:45 UTC
can you attach the savegame from the bundled playthrough? I think I will add a system-renpy useflag
Comment 8 Pavel Volkov 2013-02-28 20:02:15 UTC
Created attachment 340558 [details]
saved games (bundled version)

The last save is close to the ending.
Comment 9 Julian Ospald 2013-02-28 21:39:52 UTC
unfortunate, but currently no other solution:

+*katawa-shoujo-1.0-r1 (28 Feb 2013)
+
+  28 Feb 2013; Julian Ospald <hasufell@gentoo.org> -katawa-shoujo-1.0.ebuild,
+  +katawa-shoujo-1.0-r1.ebuild:
+  add system-renpy useflag and fix bug #459742


by default it will now use the bundled ancient renpy version, enable system renpy via "system-renpy" useflag.

packaging renpy-6.10 seems difficult, because of the massive amount of ffmpeg changes