From d6710622adf83b9e71940207307225bf4791f17b Mon Sep 17 00:00:00 2001 From: Eric House Date: Fri, 5 Apr 2019 13:30:23 -0700 Subject: [PATCH] replace oft-firing assertion with logging It's crashing all the time and involves a system that only exists in debug builds. So I should understand the root cause, but other stuff needs to get done first. --- xwords4/android/jni/xwjni.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xwords4/android/jni/xwjni.c b/xwords4/android/jni/xwjni.c index 17213b630..84ea1ce71 100644 --- a/xwords4/android/jni/xwjni.c +++ b/xwords4/android/jni/xwjni.c @@ -95,7 +95,11 @@ getMPoolImpl( JNIGlobalState* globalState, const char* user ) static void releaseMPool( JNIGlobalState* globalState ) { - XP_ASSERT( globalState->mpoolInUse ); + // XP_ASSERT( globalState->mpoolInUse ); /* fired again!!! */ + if ( !globalState->mpoolInUse ) { + XP_LOGF( "%s() line %d; ERROR ERROR ERROR mpoolInUse not set", + __func__, __LINE__ ); + } globalState->mpoolInUse = XP_FALSE; } #else