widget error

There should be a stack trace that goes with it in your console log.  Can you provide a directory listing of the files?

Rob

Here’s what is returned in the console while running the app, is it possible that the issue occurs when building the app and that the images are not included? Because when building the only items excluded are the default app icons…

C:\Program Files (x86)\Minimal ADB and Fastboot>adb logcat Corona:v *:s

* daemon not running. starting it now on port 5037 *

* daemon started successfully *

  • waiting for device -

--------- beginning of crash

--------- beginning of system

--------- beginning of main

V/Corona  (21693): > Class.forName: network.LuaLoader

V/Corona  (21693): < Class.forName: network.LuaLoader

V/Corona  (21693): Loading via reflection: network.LuaLoader

I/Corona  (21693): Platform: XT1095 / ARM Neon / 5.0 / Adreno ™ 330 / OpenGL

ES 3.0 V@84.0 AU@04.04.02.162.107 (CL@) / 2014.2511

V/Corona  (21693): > Class.forName: CoronaProvider.licensing.google.LuaLoader

V/Corona  (21693): < Class.forName: CoronaProvider.licensing.google.LuaLoader

V/Corona  (21693): Loading via reflection: CoronaProvider.licensing.google.LuaLo

ader

V/Corona  (21693): WARNING: Asset file “startButton.png” does not exist.

I/Corona  (21693): Warning: /Users/jenkins/slaveroot/workspace/Templates/label/a

ndroid/subrepos/widget/widgetLibrary/widget_button.lua:571: Failed to find image

 ‘startButton.png’

V/Corona  (21693): WARNING: Asset file “startButtonPressed.png” does not exist.

I/Corona  (21693): Warning: /Users/jenkins/slaveroot/workspace/Templates/label/a

ndroid/subrepos/widget/widgetLibrary/widget_button.lua:578: Failed to find image

 ‘startButtonPressed.png’

I/Corona  (21693): Runtime error

I/Corona  (21693): /Users/jenkins/slaveroot/workspace/Templates/label/android/su

brepos/widget/widgetLibrary/widget_button.lua:595: attempt to index local ‘view’

 (a nil value)

I/Corona  (21693): stack traceback:

I/Corona  (21693):      /Users/jenkins/slaveroot/workspace/Templates/label/andro

id/subrepos/widget/widgetLibrary/widget_button.lua:595: in function 'createUsing

ImageFiles’

I/Corona  (21693):      /Users/jenkins/slaveroot/workspace/Templates/label/andro

id/subrepos/widget/widgetLibrary/widget_button.lua:1707: in function </Users/jen

kins/slaveroot/workspace/Templates/label/android/subrepos/widget/widgetLibrary/w

idget_button.lua:1512>

I/Corona  (21693):      (tail call): ?

I/Corona  (21693):      /Users/jenkins/slaveroot/workspace/Templates/label/andro

id/subrepos/widget/widgetLibrary/widget.lua:135: in function </Users/jenkins/sla

veroot/workspace/Templates/label/android/subrepos/widget/widgetLibrary/widget.lu

a:122>

I/Corona  (21693):      (tail call): ?

I/Corona  (21693):      C:\Users\Samarth Desai\Documents\Corona Projects\messing

\main.lua:14: in main chunk

V/Corona  (21693): WARNING: Asset file “startButton.png” does not exist.

I/Corona  (21693): Warning: /Users/jenkins/slaveroot/workspace/Templates/label/a

ndroid/subrepos/widget/widgetLibrary/widget_button.lua:571: Failed to find image

 'startButton.png’

V/Corona  (21693): WARNING: Asset file “startButtonPressed.png” does not exist.

I/Corona  (21693): Warning: /Users/jenkins/slaveroot/workspace/Templates/label/a

ndroid/subrepos/widget/widgetLibrary/widget_button.lua:578: Failed to find image

 'startButtonPressed.png’

It’s possible to exclude files in you build.settings.  Can you produce a list of the files in the folder with your main.lua?   Also post your build.settigns.

Rob

build.settings

config.lua

default-568h@2x.png

all the default app icons

main.lua

NGU.mp3

startButton.png

startButtonPressed.png 

all of these files are inside the root folder of the app 

settings = { orientation = { default = "portrait", supported = { "portrait", } }, excludeFiles = { iphone = { "Icon-\*dpi.png", }, android = { "Icon.png", "Icon-Small-\*.png", "Icon\*@2x.png", }, }, -- -- iOS Section -- iphone = { plist = { UIStatusBarHidden = false, UIPrerenderedIcon = true, -- set to false for "shine" overlay --UIApplicationExitsOnSuspend = true, -- uncomment to quit app on suspend CFBundleIconFiles = { "Icon.png", "Icon@2x.png", "Icon-60.png", "Icon-60@2x.png", "Icon-60@3x.png", "Icon-72.png", "Icon-72@2x.png", "Icon-76.png", "Icon-76@2x.png", "Icon-Small.png", "Icon-Small@2x.png", "Icon-Small@3x.png", "Icon-Small-40.png", "Icon-Small-40@2x.png", "Icon-Small-50.png", "Icon-Small-50@2x.png", }, --[[-- iOS app URL schemes: CFBundleURLTypes = { { CFBundleURLSchemes = { "fbXXXXXXXXX", -- replace XXXXXXXXX with your Facebook appId } } } --]] } }, -- -- Android Section -- android = { usesPermissions = { "android.permission.INTERNET", }, }, }

The build.settings was left untouched

Hi @sdesai191,

Can you post the code for your config.lua file? Are you using dynamic image selection via suffixes, i.e. @2x and/or @4x?

Thanks,

Brent

Also try leaving the excludeFiles section of your build.settings out.

Rob

I believe the issue may lie within image size (although I doubt it) , running another app that I made with the exact same build.settings and config.lua the other app runs fine. the only difference lies within this app’s images sizes. With the working one having 300 x 300 pngs while this one uses larger 400 x 400 pngs. Plus I didn’t use any @2x/4x suffixes with either app