Also I noticed, if I just require the plugin, and not call the init function, the app crashes when I suspend and resume it on my samsung galaxy S7. Here is the crash report:
05-12 01:23:30.745 4821 4821 E AndroidRuntime: FATAL EXCEPTION: main
05-12 01:23:30.745 4821 4821 E AndroidRuntime: Process: com.gmail.honeyponeygames.squarekittenjump, PID: 4821
05-12 01:23:30.745 4821 4821 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method ‘void com.tenjin.android.TenjinSDK.connect()’ on a null object reference
05-12 01:23:30.745 4821 4821 E AndroidRuntime: at plugin.tenjin.LuaLoader$1.run(LuaLoader.java:186)
05-12 01:23:30.745 4821 4821 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:739)
05-12 01:23:30.745 4821 4821 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95)
05-12 01:23:30.745 4821 4821 E AndroidRuntime: at android.os.Looper.loop(Looper.java:158)
05-12 01:23:30.745 4821 4821 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7224)
05-12 01:23:30.745 4821 4821 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
05-12 01:23:30.745 4821 4821 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
05-12 01:23:30.745 4821 4821 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
I hope this gonna be fixed, I really need this plugin.
Can you check it on your machine? There was an update with init code refactoring on Tenjin SDK side, so your issue should be fixed. If not, then you’ll need to prepare a sample to reproduce an issue and send it to us @ https://portal.coronalabs.com/bug-submission. We’ll check it and tell you what should be fixed.
I’ll check it out as soon as I’m back from my vacations. By the way, the sample which was crashing is a simple blank project with require tengin and a build setting with the plugin included.
Hello, I’ve tried with the latest daily build and the problem is still there:
-crash on init function
-crash on resume (if init is commented and there is the require line)
I’ve submitted an apk to the debug portal but, as I said, it’s a simple blank project, with this piece of code:
local tenjin = require "plugin.tenjin" local TENJIN\_KEY = "TVJCWXABBTLUSV45END9WT\*\*\*\*\*\*\*\*" local tenjinListener = function(e) print("tenjin listener") for u,v in pairs(e) do print(u,v) end end tenjin.init(tenjinListener, {apiKey = TENJIN\_KEY})
Also I noticed, if I just require the plugin, and not call the init function, the app crashes when I suspend and resume it on my samsung galaxy S7. Here is the crash report:
05-12 01:23:30.745 4821 4821 E AndroidRuntime: FATAL EXCEPTION: main
05-12 01:23:30.745 4821 4821 E AndroidRuntime: Process: com.gmail.honeyponeygames.squarekittenjump, PID: 4821
05-12 01:23:30.745 4821 4821 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method ‘void com.tenjin.android.TenjinSDK.connect()’ on a null object reference
05-12 01:23:30.745 4821 4821 E AndroidRuntime: at plugin.tenjin.LuaLoader$1.run(LuaLoader.java:186)
05-12 01:23:30.745 4821 4821 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:739)
05-12 01:23:30.745 4821 4821 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95)
05-12 01:23:30.745 4821 4821 E AndroidRuntime: at android.os.Looper.loop(Looper.java:158)
05-12 01:23:30.745 4821 4821 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7224)
05-12 01:23:30.745 4821 4821 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
05-12 01:23:30.745 4821 4821 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
05-12 01:23:30.745 4821 4821 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
I hope this gonna be fixed, I really need this plugin.
Can you check it on your machine? There was an update with init code refactoring on Tenjin SDK side, so your issue should be fixed. If not, then you’ll need to prepare a sample to reproduce an issue and send it to us @ https://portal.coronalabs.com/bug-submission. We’ll check it and tell you what should be fixed.
I’ll check it out as soon as I’m back from my vacations. By the way, the sample which was crashing is a simple blank project with require tengin and a build setting with the plugin included.
Hello, I’ve tried with the latest daily build and the problem is still there:
-crash on init function
-crash on resume (if init is commented and there is the require line)
I’ve submitted an apk to the debug portal but, as I said, it’s a simple blank project, with this piece of code:
local tenjin = require "plugin.tenjin" local TENJIN\_KEY = "TVJCWXABBTLUSV45END9WT\*\*\*\*\*\*\*\*" local tenjinListener = function(e) print("tenjin listener") for u,v in pairs(e) do print(u,v) end end tenjin.init(tenjinListener, {apiKey = TENJIN\_KEY})