Vungle ads produce black screen with latest public build

Hello!

I’ve used Vungle for quite some time now and it’s worked great for me before. Now, I’m using the latest public build - 2014.2189 - and my app now goes to a black screen when trying to init Vungle ads on my iPhone 5s.

My code has worked before, the only different now is that I’m using the latest public build. Anyone else encounter this issue?

Doing this for me as well at the moment.  

Looking at the device console in Xcode organiser shows the following error:

ERROR: Could not load provider (vungle) due to the following reason: module ‘CoronaProvider.ads.vungle’ not found:resource (CoronaProvider.ads.vungle.lu) does not exist in archive

no field package.preload[‘CoronaProvider.ads.vungle’]

no file ‘/var/mobile/Applications/A349F642-2423-4EDF-8A5F-6013B9FF7A70/Hippo,NO!.app/CoronaProvider.ads.vungle.lua’

no file ‘/var/mobile/Applications/A349F642-2423-4EDF-8A5F-6013B9FF7A70/Hippo,NO!.app/CoronaProvider.ads.vungle.lua’

no file ‘./CoronaProvider.ads.vungle.so’

no file ‘/var/mobile/Applications/A349F642-2423-4EDF-8A5F-6013B9FF7A70/Hippo,NO!.app/CoronaProvider.ads.vungle.so’

no file ‘./CoronaProvider.so’

no file '/var/mobile/Applications/A349F642-2423-4EDF-8A5F-6013B9FF7A70/Hippo,NO!.app/CoronaProvider.so’CoronaProvider.ads.vungle.

stack traceback:

[C]: in function ‘assert’

?: in function ‘requireProvider’

?: in function ‘setCurrentProvider’

?: in function ‘init’

?: in main chunk

Don’t know if that helps anyone, but given the fast response times in some of these sub forums I’m not gonna hold my breath.

Hi @Appletreeman,

Can you post your code for both build.settings, and also where you make a call to the Vungle system?

Thanks,

Brent

Build.settings:

-- build.settings settings = { orientation = { default = "landscapeRight", supported = { "landscapeLeft", "landscapeRight" } }, iphone = { plist= { UIApplicationExitsOnSuspend = false, UIHiddenStatusBar="YES", CFBundleIconFile="Icon.png", UIAppFonts = {"JINKY.ttf", "EraserRegular.ttf", "PUSAB\_\_\_.otf", "ARCADE\_R.TTF"}, CFBundleIconFiles = { "Icon.png", "Icon@2x.png", "Icon-Small-40.png", "Icon-Small-40@2x.png", "Icon-60.png", "Icon-60@2x.png", "Icon-72.png", "Icon-72@2x.png", "Icon-76.png", "Icon-76@2x.png", "Icon-Small-50.png", "Icon-Small-50@2x.png", "Icon-Small.png", "Icon-Small@2x.png", }, },-- plugins = { -- key is the name passed to Lua's 'require()' ["CoronaProvider.ads.vungle"] = { -- required publisherId = "com.vungle", }, },-- }, }

Then in my main.lua (near the top)

ads = require "ads" ads.init( "vungle", "my app id")

As soon as I launch the app on my device I just get a black screen. 

Do you get any error report in the device log? Can you remove those trailing unnecessary comment bits (–) above and below the “plugins” table?

I’m at work now but will try that when I get home tonight.

I’ve tried that Brent but I’m still getting the exact same error.  There is no error in the device log, just this one in the console.

There were some issues with the Vungle plugin earlier today.  Can you try it again?

Rob

Still getting the same problem…

I get the default.png displayed and then blank screen.

May 31 09:39:02 homes-iPad Hippo,NO![1732] <Warning>: Runtime error

ERROR: Could not load provider (vungle) due to the following reason: module ‘CoronaProvider.ads.vungle’ not found:resource (CoronaProvider.ads.vungle.lu) does not exist in archive

no field package.preload[‘CoronaProvider.ads.vungle’]

no file ‘/var/mobile/Applications/FC52ED27-2B81-4B7C-B9C8-C0EF43BB518C/Hippo,NO!.app/CoronaProvider.ads.vungle.lua’

no file ‘/var/mobile/Applications/FC52ED27-2B81-4B7C-B9C8-C0EF43BB518C/Hippo,NO!.app/CoronaProvider.ads.vungle.lua’

no file ‘./CoronaProvider.ads.vungle.so’

no file ‘/var/mobile/Applications/FC52ED27-2B81-4B7C-B9C8-C0EF43BB518C/Hippo,NO!.app/CoronaProvider.ads.vungle.so’

no file ‘./CoronaProvider.so’

no file '/var/mobile/Applications/FC52ED27-2B81-4B7C-B9C8-C0EF43BB518C/Hippo,NO!.app/CoronaProvider.so’CoronaProvider.ads.vungle.

stack traceback:

[C]: in function ‘assert’

?: in function ‘requireProvider’

?: in function ‘setCurrentProvider’

?: in function ‘init’

?: in main chunk

Can you check your build.settings to make sure everything is fine there?  I just built an app of mine that use Vungle and installed it on my iPad and it runs as expected.

Here’s my build settings…

 settings = { orientation = { default = "landscapeRight", supported = { "landscapeLeft", "landscapeRight" } }, iphone = { plist= { UIApplicationExitsOnSuspend = false, UIHiddenStatusBar="YES", CFBundleIconFile="Icon.png", UIAppFonts = {"JINKY.ttf", "EraserRegular.ttf", "PUSAB\_\_\_.otf", "ARCADE\_R.TTF"}, CFBundleIconFiles = { "Icon.png", "Icon@2x.png", "Icon-Small-40.png", "Icon-Small-40@2x.png", "Icon-60.png", "Icon-60@2x.png", "Icon-72.png", "Icon-72@2x.png", "Icon-76.png", "Icon-76@2x.png", "Icon-Small-50.png", "Icon-Small-50@2x.png", "Icon-Small.png", "Icon-Small@2x.png", }, }, plugins = { ["CoronaProvider.ads.vungle"] = { publisherId = "com.vungle", }, }, }, }

Try this:

settings = { orientation = { default = "landscapeRight", supported = { "landscapeLeft", "landscapeRight" } }, iphone = { plist= { UIApplicationExitsOnSuspend = false, UIHiddenStatusBar="YES", CFBundleIconFile="Icon.png", UIAppFonts = { "JINKY.ttf", "EraserRegular.ttf", "PUSAB\_\_\_.otf", "ARCADE\_R.TTF" }, CFBundleIconFiles = { "Icon.png", "Icon@2x.png", "Icon-Small-40.png", "Icon-Small-40@2x.png", "Icon-60.png", "Icon-60@2x.png", "Icon-72.png", "Icon-72@2x.png", "Icon-76.png", "Icon-76@2x.png", "Icon-Small-50.png", "Icon-Small-50@2x.png", "Icon-Small.png", "Icon-Small@2x.png", }, }, }, plugins = { ["CoronaProvider.ads.vungle"] = { publisherId = "com.vungle", }, }, }

Your plugins was inside the plist table instead of being inside the settings table.

That’s brilliant Rob.  many thanks!.  Having never used any plugins before I wasn’t aware it was wrong.
Any idea on my other question?  Is there some kind of listener so you can tell if an ad has finished playing?

Ads are initialised in my main.lua, but called in my game over.lua

Linky to thread

Doing this for me as well at the moment.  

Looking at the device console in Xcode organiser shows the following error:

ERROR: Could not load provider (vungle) due to the following reason: module ‘CoronaProvider.ads.vungle’ not found:resource (CoronaProvider.ads.vungle.lu) does not exist in archive

no field package.preload[‘CoronaProvider.ads.vungle’]

no file ‘/var/mobile/Applications/A349F642-2423-4EDF-8A5F-6013B9FF7A70/Hippo,NO!.app/CoronaProvider.ads.vungle.lua’

no file ‘/var/mobile/Applications/A349F642-2423-4EDF-8A5F-6013B9FF7A70/Hippo,NO!.app/CoronaProvider.ads.vungle.lua’

no file ‘./CoronaProvider.ads.vungle.so’

no file ‘/var/mobile/Applications/A349F642-2423-4EDF-8A5F-6013B9FF7A70/Hippo,NO!.app/CoronaProvider.ads.vungle.so’

no file ‘./CoronaProvider.so’

no file '/var/mobile/Applications/A349F642-2423-4EDF-8A5F-6013B9FF7A70/Hippo,NO!.app/CoronaProvider.so’CoronaProvider.ads.vungle.

stack traceback:

[C]: in function ‘assert’

?: in function ‘requireProvider’

?: in function ‘setCurrentProvider’

?: in function ‘init’

?: in main chunk

Don’t know if that helps anyone, but given the fast response times in some of these sub forums I’m not gonna hold my breath.

Hi @Appletreeman,

Can you post your code for both build.settings, and also where you make a call to the Vungle system?

Thanks,

Brent

Build.settings:

-- build.settings settings = { orientation = { default = "landscapeRight", supported = { "landscapeLeft", "landscapeRight" } }, iphone = { plist= { UIApplicationExitsOnSuspend = false, UIHiddenStatusBar="YES", CFBundleIconFile="Icon.png", UIAppFonts = {"JINKY.ttf", "EraserRegular.ttf", "PUSAB\_\_\_.otf", "ARCADE\_R.TTF"}, CFBundleIconFiles = { "Icon.png", "Icon@2x.png", "Icon-Small-40.png", "Icon-Small-40@2x.png", "Icon-60.png", "Icon-60@2x.png", "Icon-72.png", "Icon-72@2x.png", "Icon-76.png", "Icon-76@2x.png", "Icon-Small-50.png", "Icon-Small-50@2x.png", "Icon-Small.png", "Icon-Small@2x.png", }, },-- plugins = { -- key is the name passed to Lua's 'require()' ["CoronaProvider.ads.vungle"] = { -- required publisherId = "com.vungle", }, },-- }, }

Then in my main.lua (near the top)

ads = require "ads" ads.init( "vungle", "my app id")

As soon as I launch the app on my device I just get a black screen. 

Do you get any error report in the device log? Can you remove those trailing unnecessary comment bits (–) above and below the “plugins” table?

I’m at work now but will try that when I get home tonight.

I’ve tried that Brent but I’m still getting the exact same error.  There is no error in the device log, just this one in the console.

There were some issues with the Vungle plugin earlier today.  Can you try it again?

Rob