From f0113d49167bdbb8eeacbe2af2d1093da6127111 Mon Sep 17 00:00:00 2001 From: Walter Korman Date: Thu, 15 Aug 2002 20:53:24 +0000 Subject: [PATCH] Catch exceptions while rendering animations so that we can report the animation at fault. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1644 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../threerings/media/animation/AnimationManager.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/java/com/threerings/media/animation/AnimationManager.java b/src/java/com/threerings/media/animation/AnimationManager.java index b758b6494..e76145a38 100644 --- a/src/java/com/threerings/media/animation/AnimationManager.java +++ b/src/java/com/threerings/media/animation/AnimationManager.java @@ -1,5 +1,5 @@ // -// $Id: AnimationManager.java,v 1.10 2002/04/25 16:23:30 mdb Exp $ +// $Id: AnimationManager.java,v 1.11 2002/08/15 20:53:24 shaper Exp $ package com.threerings.media.animation; @@ -136,8 +136,14 @@ public class AnimationManager if (((layer == ALL) || (layer == FRONT && order >= 0) || (layer == BACK && order < 0)) && - clip.intersects(anim.getBounds())) { - anim.paint(gfx); + try { + clip.intersects(anim.getBounds())) { + anim.paint(gfx); + } catch (Exception e) { + Log.warning("Failed to render animation " + + "[anim=" + anim + ", e=" + e + "]."); + Log.logStackTrace(e); + } } } }