[libbluray-devel] BDJ: uncaught exception during initialization is fatal

hpi1 git at videolan.org
Wed Feb 25 14:33:14 CET 2015


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Feb 23 13:56:25 2015 +0200| [b914b064f23dede0ffc6e81bace64b43bb4ce8ec] | committer: hpi1

BDJ: uncaught exception during initialization is fatal

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=b914b064f23dede0ffc6e81bace64b43bb4ce8ec
---

 src/libbluray/bdj/bdj.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/libbluray/bdj/bdj.c b/src/libbluray/bdj/bdj.c
index e8b392a..f016a8c 100644
--- a/src/libbluray/bdj/bdj.c
+++ b/src/libbluray/bdj/bdj.c
@@ -392,7 +392,9 @@ static int _bdj_init(JNIEnv *env, struct bluray *bd, const char *disc_root, cons
 
     if ((*env)->ExceptionOccurred(env)) {
         (*env)->ExceptionDescribe(env);
+        BD_DEBUG(DBG_BDJ | DBG_CRIT, "Failed to initialize BD-J (uncaught exception)\n");
         (*env)->ExceptionClear(env);
+        return 0;
     }
 
     (*env)->DeleteLocalRef(env, init_class);
@@ -583,6 +585,7 @@ void bdj_close(BDJAVA *bdjava)
 
             if ((*env)->ExceptionOccurred(env)) {
                 (*env)->ExceptionDescribe(env);
+                BD_DEBUG(DBG_BDJ | DBG_CRIT, "Failed to shutdown BD-J (uncaught exception)\n");
                 (*env)->ExceptionClear(env);
             }
 
@@ -653,6 +656,7 @@ int bdj_process_event(BDJAVA *bdjava, unsigned ev, unsigned param)
 
         if ((*env)->ExceptionOccurred(env)) {
             (*env)->ExceptionDescribe(env);
+            BD_DEBUG(DBG_BDJ | DBG_CRIT, "bdj_process_event(%u,%u) failed (uncaught exception)\n", ev, param);
             (*env)->ExceptionClear(env);
         }
 



More information about the libbluray-devel mailing list