WARNING: Could not load 'plugin.cc.LuaLoader'

Hi,

When I enable Live Server when building the app I get the following warning in the log (when I run it) and then just a black screen.  It displays the splash screen and then just goes black and doesn’t respond.

Corona Version : 2997

Mac Sierra: 10.12.1

Samsung S7

Android: 6.0.1

Copied to device using “Copy to device and launch”

Thanks,

Craig

What plugins are you using?

Hi,

Here is a copy of my build.setting

[lua]

– For more details on this file and what you can do with it, look here:

https://docs.coronalabs.com/guide/distribution/buildSettings/index.html

settings = {

    orientation = 

    {

default = “landscapeLeft”,

supported = { “landscapeRight”, “landscapeLeft” },

},

   plugins = {  

      [‘plugin.cc’] = {publisherId = ‘com.roaminggamer’},

      --[‘plugin.math2d’] = {publisherId = ‘com.roaminggamer’},

      [‘plugin.vibrator’] = {publisherId = ‘com.spiralcodestudio’, 

      supportedPlatforms = { iphone=false, android=true }},

      [“plugin.hockey”] =

        {

            publisherId = “com.coronalabs”,

            supportedPlatforms = { iphone=true, android=true }

        },

    [“plugin.google.play.services”] =

    {

        publisherId = “com.coronalabs”,

        supportedPlatforms = { android=true }

    },

   },

iphone = 

{

plist = 

{

            NSAppTransportSecurity = { NSAllowsArbitraryLoads=true },

            NSLocationAlwaysUsageDescription = { “” },

            NSLocationWhenInUseUsageDescription = { “” },

UIAppFonts = 

“Harrrowprint.ttf”,

},

UIStatusBarHidden = true,

UIPrerenderedIcon = true,

UIApplicationExitsOnSuspend = false,

MinimumOSVersion = “6.0.0”,

UILaunchImages = {

                {  – iPhone 4 LandscapeLeft

                    [“UILaunchImageMinimumOSVersion”] = “7.0”,

                    [“UILaunchImageName”] = “Default”,

                    [“UILaunchImageOrientation”] = “LandscapeLeft”,

                    [“UILaunchImageSize”] = “{320, 480}”

                },

                {  – iPhone 4 LandscapeRight

                    [“UILaunchImageMinimumOSVersion”] = “7.0”,

                    [“UILaunchImageName”] = “Default”,

                    [“UILaunchImageOrientation”] = “LandscapeRight”,

                    [“UILaunchImageSize”] = “{320, 480}”

                },

                {  – iPhone 5 LandscapeLeft

                    [“UILaunchImageMinimumOSVersion”] = “7.0”,

                    [“UILaunchImageName”] = “Default-568h”,

                    [“UILaunchImageOrientation”] = “LandscapeLeft”,

                    [“UILaunchImageSize”] = “{320, 568}”

                },

                {  – iPhone 5 LandscapeRight

                    [“UILaunchImageMinimumOSVersion”] = “7.0”,

                    [“UILaunchImageName”] = “Default-568h”,

                    [“UILaunchImageOrientation”] = “LandscapeRight”,

                    [“UILaunchImageSize”] = “{320, 568}”

                },

                {  – iPad LandscapeLeft

                    [“UILaunchImageMinimumOSVersion”] = “7.0”,

                    [“UILaunchImageName”] = “Default-Landscape”,

                    [“UILaunchImageOrientation”] = “LandscapeLeft”,

                    [“UILaunchImageSize”] = “{768, 1024}”

                },

                {  – iPad LandscapeRight

                    [“UILaunchImageMinimumOSVersion”] = “7.0”,

                    [“UILaunchImageName”] = “Default-Landscape”,

                    [“UILaunchImageOrientation”] = “LandscapeRight”,

                    [“UILaunchImageSize”] = “{768, 1024}”

                },

                {  – iPhone 6 LandscapeLeft

                    [“UILaunchImageMinimumOSVersion”] = “8.0”,

                    [“UILaunchImageName”] = “Default-667h”,

                    [“UILaunchImageOrientation”] = “LandscapeLeft”,

                    [“UILaunchImageSize”] = “{375, 667}”

                },

                {  – iPhone 6 LandscapeRight

                    [“UILaunchImageMinimumOSVersion”] = “8.0”,

                    [“UILaunchImageName”] = “Default-667h”,

                    [“UILaunchImageOrientation”] = “LandscapeRight”,

                    [“UILaunchImageSize”] = “{375, 667}”

                },

                {  – iPhone 6 Plus LandscapeLeft

                    [“UILaunchImageMinimumOSVersion”] = “8.0”,

                    [“UILaunchImageName”] = “Default-Landscape-736h”,

                    [“UILaunchImageOrientation”] = “LandscapeLeft”,

                    [“UILaunchImageSize”] = “{414, 736}”

                },

                {  – iPhone 6 Plus LandscapeRight

                    [“UILaunchImageMinimumOSVersion”] = “8.0”,

                    [“UILaunchImageName”] = “Default-Landscape-736h”,

                    [“UILaunchImageOrientation”] = “LandscapeRight”,

                    [“UILaunchImageSize”] = “{414, 736}”

                },

                {  – iPad Pro Landscape Right

                    [“UILaunchImageMinimumOSVersion”] = “9.0”,

                    [“UILaunchImageName”] = “Default-Landscape-1366”,

                    [“UILaunchImageOrientation”] = “LandscapeRight”,

                    [“UILaunchImageSize”] = “{1024, 1366}”

                },

                {  – iPad Pro Landscape Left

                    [“UILaunchImageMinimumOSVersion”] = “9.0”,

                    [“UILaunchImageName”] = “Default-Landscape-1366”,

                    [“UILaunchImageOrientation”] = “LandscapeLeft”,

                    [“UILaunchImageSize”] = “{1024, 1366}”

                },

            },

}, 

},

}

[/lua]

When I exit the app I get the following in the syslog…

[lua]

SM-G930F: Platform: SM-G930F / ARM Neon / 6.0.1 / Mali-T880 / OpenGL ES 3.2 v1.r12p1-00dev0.60546d7cd0bfd82d0ba92ca3bb825c75 / 2016.2997 / English | NZ | en_NZ | en

SM-G930F: FATAL EXCEPTION: main

SM-G930F: Process: com.gmail.cbriggsnz.game_trials, PID: 30067

SM-G930F: java.lang.RuntimeException: Unable to destroy activity {com.gmail.cbriggsnz.game_trials/com.ansca.corona.CoronaActivity}: java.lang.NullPointerException: Attempt to invoke virtual method ‘void plugin.liveBuild.SyncTask.StopSyncTask()’ on a null object reference

SM-G930F: at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:5066)

SM-G930F: at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:5089)

SM-G930F: at android.app.ActivityThread.access$1700(ActivityThread.java:222)

SM-G930F: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1854)

SM-G930F: at android.os.Handler.dispatchMessage(Handler.java:102)

SM-G930F: at android.os.Looper.loop(Looper.java:158)

SM-G930F: at android.app.ActivityThread.main(ActivityThread.java:7229)

SM-G930F: at java.lang.reflect.Method.invoke(Native Method)

SM-G930F: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)

SM-G930F: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

SM-G930F: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method ‘void plugin.liveBuild.SyncTask.StopSyncTask()’ on a null object reference

SM-G930F: at plugin.liveBuild.CoronaLiveSync$CoronaRuntimeEventHandler.onExiting(CoronaLiveSync.java:84)

SM-G930F: at com.ansca.corona.CoronaEnvironment$RuntimeEventHandler.onExiting(CoronaEnvironment.java:521)

SM-G930F: at com.ansca.corona.CoronaRuntime.onExiting(CoronaRuntime.java:428)

SM-G930F: at com.ansca.corona.CoronaRuntime.dispose(CoronaRuntime.java:76)

SM-G930F: at com.ansca.corona.CoronaActivity.onDestroy(CoronaActivity.java:1580)

SM-G930F: at android.app.Activity.performDestroy(Activity.java:7102)

SM-G930F: at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1170)

SM-G930F: at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:5044)

SM-G930F: … 9 more

SM-G930F: Activity destroy timeout for ActivityRecord{548c22d u0 com.gmail.cbriggsnz.game_trials/com.ansca.corona.CoronaActivity t7669 f}

[/lua]

Craig

Weird.  If you change the order in build.settings, do you get an error on the first plugin every time?
 

 plugins = { ['plugin.vibrator'] = {publisherId = 'com.spiralcodestudio', supportedPlatforms = { iphone=false, android=true }}, ['plugin.cc'] = {publisherId = 'com.roaminggamer'}, ...

 
 
I’m asking because I wonder if it is a general problem or something about cc.

Sorry to drag you into this again Ed,

I just reinstalling the game with “Live Build” enabled again (didn’t change build.setting) and I don’t see the Warning anymore, not sure what I changed??  It is still black screening, but no warning about cc.  Rebuilt 4 times and no warnings,  this morning I built 3 or 4 times and got the warning,  maybe it was unrelated and I just took it as part of the issue…

The following is in the syslog after installation and running.

[lua]BUILD SUCCESSFUL

Total time: 5 seconds

Android build succeeded in 56 seconds

Installing and running Game Trials on SM-G930F

pkg: /data/local/tmp/CoronaSDKcaeb6f59b094184e8eb5e59a4912238b.apk

Success

Starting: Intent { cmp=com.gmail.cbriggsnz.Game_Trials/com.ansca.corona.CoronaActivity VirtualScreenParam=Params{mDisplayId=-1, null, mFlags=0x00000000)} }

----------  Device Log Starts  ----------

SM-G930F: Permission Denial: Accessing service ComponentInfo{com.google.android.music/com.google.android.music.dial.DialMediaRouteProviderService} from pid=2628, uid=10123 that is not exported from uid 10121

SM-G930F: Permission Denial: Accessing service ComponentInfo{com.google.android.music/com.google.android.music.dial.DialMediaRouteProviderService} from pid=2628, uid=10123 that is not exported from uid 10121

SM-G930F: Permission Denial: Accessing service ComponentInfo{com.google.android.music/com.google.android.music.dial.DialMediaRouteProviderService} from pid=2628, uid=10123 that is not exported from uid 10121

SM-G930F: Platform: SM-G930F / ARM Neon / 6.0.1 / Mali-T880 / OpenGL ES 3.2 v1.r12p1-00dev0.60546d7cd0bfd82d0ba92ca3bb825c75 / 2016.2997 / English | NZ | en_NZ | en

SM-G930F: Scheduling restart of crashed service com.google.android.gms/.feedback.FeedbackService in 1000ms

SM-G930F: Unable to start service Intent { act=android.intent.action.PACKAGE_REPLACED dat=package:com.gmail.cbriggsnz.Game_Trials flg=0x4000010 pkg=nz.org.geonet.quake bqHint=4 VirtualScreenParam=Params{mDisplayId=-1, null, mFlags=0x00000000)} (has extras) } U=0: not found

[/lua]

Craig

No prob Craig.  I just want to make sure I’m not doing something wrong.  I think however, that Live + Plugins may be the issue.  

My guess, and I am just guessing, is that sometimes plugins take a moment to download and I have to wonder if that delay is causing an issue for the live server.  

I’m sure the entire Live server thing is complicated, but it is also super cool so I hope this stops being an issue soon.

Thanks a lot for the report!

It seems that Lua plugins are not working in Live Builds.

This should be fixed in next daily build (≥ 2016.3002). Thanks for helping track down this issue!

Awesome, seems to work.

Thanks for the quick update, Ill let you know if there are any other issues.

Cheers,

Craig

You’re welcome. Glad to help!

P.S. If you’ll have other issues, please, start a new thread.

What plugins are you using?

Hi,

Here is a copy of my build.setting

[lua]

– For more details on this file and what you can do with it, look here:

https://docs.coronalabs.com/guide/distribution/buildSettings/index.html

settings = {

    orientation = 

    {

default = “landscapeLeft”,

supported = { “landscapeRight”, “landscapeLeft” },

},

   plugins = {  

      [‘plugin.cc’] = {publisherId = ‘com.roaminggamer’},

      --[‘plugin.math2d’] = {publisherId = ‘com.roaminggamer’},

      [‘plugin.vibrator’] = {publisherId = ‘com.spiralcodestudio’, 

      supportedPlatforms = { iphone=false, android=true }},

      [“plugin.hockey”] =

        {

            publisherId = “com.coronalabs”,

            supportedPlatforms = { iphone=true, android=true }

        },

    [“plugin.google.play.services”] =

    {

        publisherId = “com.coronalabs”,

        supportedPlatforms = { android=true }

    },

   },

iphone = 

{

plist = 

{

            NSAppTransportSecurity = { NSAllowsArbitraryLoads=true },

            NSLocationAlwaysUsageDescription = { “” },

            NSLocationWhenInUseUsageDescription = { “” },

UIAppFonts = 

“Harrrowprint.ttf”,

},

UIStatusBarHidden = true,

UIPrerenderedIcon = true,

UIApplicationExitsOnSuspend = false,

MinimumOSVersion = “6.0.0”,

UILaunchImages = {

                {  – iPhone 4 LandscapeLeft

                    [“UILaunchImageMinimumOSVersion”] = “7.0”,

                    [“UILaunchImageName”] = “Default”,

                    [“UILaunchImageOrientation”] = “LandscapeLeft”,

                    [“UILaunchImageSize”] = “{320, 480}”

                },

                {  – iPhone 4 LandscapeRight

                    [“UILaunchImageMinimumOSVersion”] = “7.0”,

                    [“UILaunchImageName”] = “Default”,

                    [“UILaunchImageOrientation”] = “LandscapeRight”,

                    [“UILaunchImageSize”] = “{320, 480}”

                },

                {  – iPhone 5 LandscapeLeft

                    [“UILaunchImageMinimumOSVersion”] = “7.0”,

                    [“UILaunchImageName”] = “Default-568h”,

                    [“UILaunchImageOrientation”] = “LandscapeLeft”,

                    [“UILaunchImageSize”] = “{320, 568}”

                },

                {  – iPhone 5 LandscapeRight

                    [“UILaunchImageMinimumOSVersion”] = “7.0”,

                    [“UILaunchImageName”] = “Default-568h”,

                    [“UILaunchImageOrientation”] = “LandscapeRight”,

                    [“UILaunchImageSize”] = “{320, 568}”

                },

                {  – iPad LandscapeLeft

                    [“UILaunchImageMinimumOSVersion”] = “7.0”,

                    [“UILaunchImageName”] = “Default-Landscape”,

                    [“UILaunchImageOrientation”] = “LandscapeLeft”,

                    [“UILaunchImageSize”] = “{768, 1024}”

                },

                {  – iPad LandscapeRight

                    [“UILaunchImageMinimumOSVersion”] = “7.0”,

                    [“UILaunchImageName”] = “Default-Landscape”,

                    [“UILaunchImageOrientation”] = “LandscapeRight”,

                    [“UILaunchImageSize”] = “{768, 1024}”

                },

                {  – iPhone 6 LandscapeLeft

                    [“UILaunchImageMinimumOSVersion”] = “8.0”,

                    [“UILaunchImageName”] = “Default-667h”,

                    [“UILaunchImageOrientation”] = “LandscapeLeft”,

                    [“UILaunchImageSize”] = “{375, 667}”

                },

                {  – iPhone 6 LandscapeRight

                    [“UILaunchImageMinimumOSVersion”] = “8.0”,

                    [“UILaunchImageName”] = “Default-667h”,

                    [“UILaunchImageOrientation”] = “LandscapeRight”,

                    [“UILaunchImageSize”] = “{375, 667}”

                },

                {  – iPhone 6 Plus LandscapeLeft

                    [“UILaunchImageMinimumOSVersion”] = “8.0”,

                    [“UILaunchImageName”] = “Default-Landscape-736h”,

                    [“UILaunchImageOrientation”] = “LandscapeLeft”,

                    [“UILaunchImageSize”] = “{414, 736}”

                },

                {  – iPhone 6 Plus LandscapeRight

                    [“UILaunchImageMinimumOSVersion”] = “8.0”,

                    [“UILaunchImageName”] = “Default-Landscape-736h”,

                    [“UILaunchImageOrientation”] = “LandscapeRight”,

                    [“UILaunchImageSize”] = “{414, 736}”

                },

                {  – iPad Pro Landscape Right

                    [“UILaunchImageMinimumOSVersion”] = “9.0”,

                    [“UILaunchImageName”] = “Default-Landscape-1366”,

                    [“UILaunchImageOrientation”] = “LandscapeRight”,

                    [“UILaunchImageSize”] = “{1024, 1366}”

                },

                {  – iPad Pro Landscape Left

                    [“UILaunchImageMinimumOSVersion”] = “9.0”,

                    [“UILaunchImageName”] = “Default-Landscape-1366”,

                    [“UILaunchImageOrientation”] = “LandscapeLeft”,

                    [“UILaunchImageSize”] = “{1024, 1366}”

                },

            },

}, 

},

}

[/lua]

When I exit the app I get the following in the syslog…

[lua]

SM-G930F: Platform: SM-G930F / ARM Neon / 6.0.1 / Mali-T880 / OpenGL ES 3.2 v1.r12p1-00dev0.60546d7cd0bfd82d0ba92ca3bb825c75 / 2016.2997 / English | NZ | en_NZ | en

SM-G930F: FATAL EXCEPTION: main

SM-G930F: Process: com.gmail.cbriggsnz.game_trials, PID: 30067

SM-G930F: java.lang.RuntimeException: Unable to destroy activity {com.gmail.cbriggsnz.game_trials/com.ansca.corona.CoronaActivity}: java.lang.NullPointerException: Attempt to invoke virtual method ‘void plugin.liveBuild.SyncTask.StopSyncTask()’ on a null object reference

SM-G930F: at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:5066)

SM-G930F: at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:5089)

SM-G930F: at android.app.ActivityThread.access$1700(ActivityThread.java:222)

SM-G930F: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1854)

SM-G930F: at android.os.Handler.dispatchMessage(Handler.java:102)

SM-G930F: at android.os.Looper.loop(Looper.java:158)

SM-G930F: at android.app.ActivityThread.main(ActivityThread.java:7229)

SM-G930F: at java.lang.reflect.Method.invoke(Native Method)

SM-G930F: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)

SM-G930F: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

SM-G930F: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method ‘void plugin.liveBuild.SyncTask.StopSyncTask()’ on a null object reference

SM-G930F: at plugin.liveBuild.CoronaLiveSync$CoronaRuntimeEventHandler.onExiting(CoronaLiveSync.java:84)

SM-G930F: at com.ansca.corona.CoronaEnvironment$RuntimeEventHandler.onExiting(CoronaEnvironment.java:521)

SM-G930F: at com.ansca.corona.CoronaRuntime.onExiting(CoronaRuntime.java:428)

SM-G930F: at com.ansca.corona.CoronaRuntime.dispose(CoronaRuntime.java:76)

SM-G930F: at com.ansca.corona.CoronaActivity.onDestroy(CoronaActivity.java:1580)

SM-G930F: at android.app.Activity.performDestroy(Activity.java:7102)

SM-G930F: at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1170)

SM-G930F: at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:5044)

SM-G930F: … 9 more

SM-G930F: Activity destroy timeout for ActivityRecord{548c22d u0 com.gmail.cbriggsnz.game_trials/com.ansca.corona.CoronaActivity t7669 f}

[/lua]

Craig

Weird.  If you change the order in build.settings, do you get an error on the first plugin every time?
 

 plugins = { ['plugin.vibrator'] = {publisherId = 'com.spiralcodestudio', supportedPlatforms = { iphone=false, android=true }}, ['plugin.cc'] = {publisherId = 'com.roaminggamer'}, ...

 
 
I’m asking because I wonder if it is a general problem or something about cc.

Sorry to drag you into this again Ed,

I just reinstalling the game with “Live Build” enabled again (didn’t change build.setting) and I don’t see the Warning anymore, not sure what I changed??  It is still black screening, but no warning about cc.  Rebuilt 4 times and no warnings,  this morning I built 3 or 4 times and got the warning,  maybe it was unrelated and I just took it as part of the issue…

The following is in the syslog after installation and running.

[lua]BUILD SUCCESSFUL

Total time: 5 seconds

Android build succeeded in 56 seconds

Installing and running Game Trials on SM-G930F

pkg: /data/local/tmp/CoronaSDKcaeb6f59b094184e8eb5e59a4912238b.apk

Success

Starting: Intent { cmp=com.gmail.cbriggsnz.Game_Trials/com.ansca.corona.CoronaActivity VirtualScreenParam=Params{mDisplayId=-1, null, mFlags=0x00000000)} }

----------  Device Log Starts  ----------

SM-G930F: Permission Denial: Accessing service ComponentInfo{com.google.android.music/com.google.android.music.dial.DialMediaRouteProviderService} from pid=2628, uid=10123 that is not exported from uid 10121

SM-G930F: Permission Denial: Accessing service ComponentInfo{com.google.android.music/com.google.android.music.dial.DialMediaRouteProviderService} from pid=2628, uid=10123 that is not exported from uid 10121

SM-G930F: Permission Denial: Accessing service ComponentInfo{com.google.android.music/com.google.android.music.dial.DialMediaRouteProviderService} from pid=2628, uid=10123 that is not exported from uid 10121

SM-G930F: Platform: SM-G930F / ARM Neon / 6.0.1 / Mali-T880 / OpenGL ES 3.2 v1.r12p1-00dev0.60546d7cd0bfd82d0ba92ca3bb825c75 / 2016.2997 / English | NZ | en_NZ | en

SM-G930F: Scheduling restart of crashed service com.google.android.gms/.feedback.FeedbackService in 1000ms

SM-G930F: Unable to start service Intent { act=android.intent.action.PACKAGE_REPLACED dat=package:com.gmail.cbriggsnz.Game_Trials flg=0x4000010 pkg=nz.org.geonet.quake bqHint=4 VirtualScreenParam=Params{mDisplayId=-1, null, mFlags=0x00000000)} (has extras) } U=0: not found

[/lua]

Craig

No prob Craig.  I just want to make sure I’m not doing something wrong.  I think however, that Live + Plugins may be the issue.  

My guess, and I am just guessing, is that sometimes plugins take a moment to download and I have to wonder if that delay is causing an issue for the live server.  

I’m sure the entire Live server thing is complicated, but it is also super cool so I hope this stops being an issue soon.

Thanks a lot for the report!

It seems that Lua plugins are not working in Live Builds.

This should be fixed in next daily build (≥ 2016.3002). Thanks for helping track down this issue!

Awesome, seems to work.

Thanks for the quick update, Ill let you know if there are any other issues.

Cheers,

Craig