Extremely slow start

Hi,

I updated to the latest version of the Corona SDK and with one of my apps started seeing extremely slow start times on the device. I tried with the latest stable version and this is still a problem. The log is below and so is the build.settings and config.lua. Any help is highly appreciated. There is about a 38 seconds pause before the app actually starts.

Output from the Corona Simulator Console

Feb 12 10:46:34.320 BuildID: 5a81e0f36ab6b

Feb 12 10:46:37.267      [echo]  “creating unsigned.apk” 

Feb 12 10:46:37.267 

Feb 12 10:46:39.338 BUILD SUCCESSFUL

                    Total time: 2 seconds

Feb 12 10:46:39.383 Android build succeeded in 29 seconds

Feb 12 10:46:48.984 Installing and running ConZentrate on SM-G935V

                    11154 KB/s (23645889 bytes in 2.070s)

                    Success

                    Starting: Intent { cmp=com.shaktiapps.games.omball/com.ansca.corona.CoronaActivity launchParam=MultiScreenLaunchParams { mDisplayId=0 mFlags=0 } }

Feb 12 10:46:48.985 ----------  Device Log Starts  ----------

Feb 12 10:46:49.545 SM-G935V: Platform: SM-G9

Feb 12 10:46:49.546 35V / ARM Neon / 7.0 / Adreno ™ 530 / OpenGL ES 3.2 V@145.0 (GIT@I86b60582e4) / 2017.3184 / English | US | en_US | en

Feb 12 10:47:27.777 SM-G935V: ---------------------------------------

Feb 12 10:47:27.778 --------

config.lua

[lua]

if display.pixelHeight / display.pixelWidth > 1.72 then

    application =

    {

        launchpad = false,

        content =

        {

            graphicsCompatibility = 1,

            width = 320,

            height = 570,

            scale = “zoomEven”,

            xAlign = “center”,

            yAlign = “center”,

            imageSuffix =

            {

                ["@2x"] = 1.5,

            },

        },

    }

else

    application =

    {

        launchpad = false,

        content =

        {

            graphicsCompatibility = 1,

            width = 320,

            height = 512,

            scale = “zoomEven”,

            xAlign = “center”,

            yAlign = “center”,

            imageSuffix =

            {

                ["@2x"] = 1.5,

            },

        },

    }

end

[/lua]

 

build.settings

 

[lua]

settings =

{

    orientation =

    {

        default = “portrait”,

        supported =

        {

            “portrait”

        },

    },

    splashScreen =

    {

        enable = false

    },

    plugins =

    {

      [“CoronaProvider.analytics.flurry”] = { publisherId = “com.coronalabs”, },

    },

    android =

    {

        usesPermissions =

        {

            “android.permission.INTERNET”,

            “android.permission.ACCESS_NETWORK_STATE”,

        },

        largeHeap = true

    },

}

[/lua]

Got the latest daily build 3221 and see this now. What is the getContentProviderImpl?

[lua]

Feb 12 11:28:07.206 Using java version “1.8.0_102”

                    Java™ SE Runtime Environment (build 1.8.0_102-b14)

                    Java HotSpot™ 64-Bit Server VM (build 25.102-b14, mixed mode)

Feb 12 11:28:07.305 Picked up JAVA_TOOL_OPTIONS: -Duser.language=en

Feb 12 11:28:07.447 Testing credentials for ‘/Users/shiva.paranandi/SimhaStudios/mobile-utilities/android-keystore’: 

Feb 12 11:28:07.483 Picked up JAVA_TOOL_OPTIONS: -Duser.language=en

Feb 12 11:28:08.236 jar signed.

Feb 12 11:28:11.092 Using java version “1.8.0_102”

                    Java™ SE Runtime Environment (build 1.8.0_102-b14)

                    Java HotSpot™ 64-Bit Server VM (build 25.102-b14, mixed mode)

Feb 12 11:28:11.858 Building Android app for shivapp@yahoo.com with 2018.3221

Feb 12 11:28:13.658 Using custom build id from app bundle: 00000 (AppSettings.lua)

Feb 12 11:28:14.263 BUILD SUCCESSFUL

                    Total time: 0 seconds

Feb 12 11:28:39.028 BuildID: 5a81eacf0e30e

Feb 12 11:28:42.232      [echo]  “creating unsigned.apk” 

Feb 12 11:28:42.232 

Feb 12 11:28:44.323 BUILD SUCCESSFUL

                    Total time: 2 seconds

Feb 12 11:28:44.377 Android build succeeded in 31 seconds

Feb 12 11:28:54.052 Installing and running ConZentrate on SM-G935V

                    11350 KB/s (23645889 bytes in 2.034s)

                    Installing and running ConZentrate to SM-G935V successfull!

                    Starting: Intent { cmp=com.shaktiapps.games.omball/com.ansca.corona.CoronaActivity launchParam=MultiScreenLaunchParams { mDisplayId=0 mFlags=0 } }

Feb 12 11:28:54.052 ----------  Device Log Starts  ----------

Feb 12 11:28:54.397 SM-G935V: Slow operation: 175ms so far, now at getContentProvi

Feb 12 11:28:54.397 derImpl: after resolveContentProvider

Feb 12 11:28:54.445 SM-G935V: Slow o

Feb 12 11:28:54.446 peration: 175ms so far, now at getContentProviderImpl: got app info for user

                    SM-G935V: Slow operation: 175ms so far, now at getContentProviderImpl: before checkContentProviderPermission

                    SM-G935V: Slow operation: 175ms so far, now at getContentProviderImpl: after checkContentProviderPermission

                    SM-G935V: Slow operation: 175ms so far, now at getContentProviderImpl: before getProviderByClass

                    SM-G935V: Slow operation: 175ms so far, now at getContentProviderImpl: after getProviderByClass

                    SM-G935V: Slow operation: 175ms so far, now at getContentProviderImpl: before getApplicationInfo

                    SM-G935V: Slow operation: 175ms so far, now at getContentProviderImpl: after getApplicationInfo

                    SM-G935V: Slow operation: 175ms so far, now at getContentProviderImpl: now have ContentProviderRecord

                    SM-G935V: Slow operation: 175ms so far, now at getContentProviderImpl: before set stopped state

                    SM-G935V: Slow operation: 175ms so far, now at getContentProviderImpl: after set stopped state

                    SM-G935V: Slow operation: 175ms so far, now at getContentProviderImpl: looking for process record

                    SM-G935V: Slow operation: 175ms so far, now at getContentProviderImpl: before start process

                    SM-G935V: Slow operation: 213ms so far, now at getContentProviderImpl: after start process

                    SM-G935V: Slow operation: 213ms so far, now at getContentProviderImpl: updating data structures

                    SM-G935V: Slow operation: 213ms so far, now at getContentProviderImpl: done!

Feb 12 11:28:55.088 SM-G935V: Platform: SM-G935V / A

Feb 12 11:28:55.088 RM Neon / 7.0 / Adreno ™ 530 / OpenGL ES 3.2 V@145.0 (GIT@I86b60582e4) / 2018.3221 / English | US | en_US | en

Feb 12 11:28:56.803 SM-G935V: Scheduling restart of crashed ser

Feb 12 11:28:56.804 vice com.facebook.katana/com.facebook.video.vps.VideoPlayerService in 1000ms

Feb 12 11:28:57.306 SM-G935V: Scheduling restart of crashed service com.sam

Feb 12 11:28:57.307 sung.android.gearoplugin/.service.GearPayEnablerService in 10493ms

Feb 12 11:29:02.416 SM-G935V: Scheduling restart of crashed service

Feb 12 11:29:02.417  com.samsung.android.communicationservice/.ITransactionManagerService in 1000ms

Feb 12 11:29:10.648 SM-G935V: Slow operation: 175ms so f

Feb 12 11:29:10.648 ar, now at getContentProviderImpl: after checkContentProviderPermission

Feb 12 11:29:10.706 SM-G935V: Slow operation: 175ms so far, now at getContentProviderImpl: incProviderCoun

Feb 12 11:29:10.707 tLocked

                    SM-G935V: Slow operation: 175ms so far, now at getContentProviderImpl: before updateOomAdj

                    SM-G935V: Slow operation: 176ms so far, now at getContentProviderImpl: after updateOomAdj

                    SM-G935V: Slow operation: 176ms so far, now at getContentProviderImpl: done!

Feb 12 11:29:34.450 SM-G935V: -----------------------------------------------

Feb 12 11:29:34.450 

[/lua]

I would recommend trying to update your Flurry plugin.  The current plugin is using our modern plugin architecture. We are trying to get rid of the “CoronaProvider” style plugins.

See: https://docs.coronalabs.com/plugin/flurry-analytics/index.html

Rob

Got the latest daily build 3221 and see this now. What is the getContentProviderImpl?

[lua]

Feb 12 11:28:07.206 Using java version “1.8.0_102”

                    Java™ SE Runtime Environment (build 1.8.0_102-b14)

                    Java HotSpot™ 64-Bit Server VM (build 25.102-b14, mixed mode)

Feb 12 11:28:07.305 Picked up JAVA_TOOL_OPTIONS: -Duser.language=en

Feb 12 11:28:07.447 Testing credentials for ‘/Users/shiva.paranandi/SimhaStudios/mobile-utilities/android-keystore’: 

Feb 12 11:28:07.483 Picked up JAVA_TOOL_OPTIONS: -Duser.language=en

Feb 12 11:28:08.236 jar signed.

Feb 12 11:28:11.092 Using java version “1.8.0_102”

                    Java™ SE Runtime Environment (build 1.8.0_102-b14)

                    Java HotSpot™ 64-Bit Server VM (build 25.102-b14, mixed mode)

Feb 12 11:28:11.858 Building Android app for shivapp@yahoo.com with 2018.3221

Feb 12 11:28:13.658 Using custom build id from app bundle: 00000 (AppSettings.lua)

Feb 12 11:28:14.263 BUILD SUCCESSFUL

                    Total time: 0 seconds

Feb 12 11:28:39.028 BuildID: 5a81eacf0e30e

Feb 12 11:28:42.232      [echo]  “creating unsigned.apk” 

Feb 12 11:28:42.232 

Feb 12 11:28:44.323 BUILD SUCCESSFUL

                    Total time: 2 seconds

Feb 12 11:28:44.377 Android build succeeded in 31 seconds

Feb 12 11:28:54.052 Installing and running ConZentrate on SM-G935V

                    11350 KB/s (23645889 bytes in 2.034s)

                    Installing and running ConZentrate to SM-G935V successfull!

                    Starting: Intent { cmp=com.shaktiapps.games.omball/com.ansca.corona.CoronaActivity launchParam=MultiScreenLaunchParams { mDisplayId=0 mFlags=0 } }

Feb 12 11:28:54.052 ----------  Device Log Starts  ----------

Feb 12 11:28:54.397 SM-G935V: Slow operation: 175ms so far, now at getContentProvi

Feb 12 11:28:54.397 derImpl: after resolveContentProvider

Feb 12 11:28:54.445 SM-G935V: Slow o

Feb 12 11:28:54.446 peration: 175ms so far, now at getContentProviderImpl: got app info for user

                    SM-G935V: Slow operation: 175ms so far, now at getContentProviderImpl: before checkContentProviderPermission

                    SM-G935V: Slow operation: 175ms so far, now at getContentProviderImpl: after checkContentProviderPermission

                    SM-G935V: Slow operation: 175ms so far, now at getContentProviderImpl: before getProviderByClass

                    SM-G935V: Slow operation: 175ms so far, now at getContentProviderImpl: after getProviderByClass

                    SM-G935V: Slow operation: 175ms so far, now at getContentProviderImpl: before getApplicationInfo

                    SM-G935V: Slow operation: 175ms so far, now at getContentProviderImpl: after getApplicationInfo

                    SM-G935V: Slow operation: 175ms so far, now at getContentProviderImpl: now have ContentProviderRecord

                    SM-G935V: Slow operation: 175ms so far, now at getContentProviderImpl: before set stopped state

                    SM-G935V: Slow operation: 175ms so far, now at getContentProviderImpl: after set stopped state

                    SM-G935V: Slow operation: 175ms so far, now at getContentProviderImpl: looking for process record

                    SM-G935V: Slow operation: 175ms so far, now at getContentProviderImpl: before start process

                    SM-G935V: Slow operation: 213ms so far, now at getContentProviderImpl: after start process

                    SM-G935V: Slow operation: 213ms so far, now at getContentProviderImpl: updating data structures

                    SM-G935V: Slow operation: 213ms so far, now at getContentProviderImpl: done!

Feb 12 11:28:55.088 SM-G935V: Platform: SM-G935V / A

Feb 12 11:28:55.088 RM Neon / 7.0 / Adreno ™ 530 / OpenGL ES 3.2 V@145.0 (GIT@I86b60582e4) / 2018.3221 / English | US | en_US | en

Feb 12 11:28:56.803 SM-G935V: Scheduling restart of crashed ser

Feb 12 11:28:56.804 vice com.facebook.katana/com.facebook.video.vps.VideoPlayerService in 1000ms

Feb 12 11:28:57.306 SM-G935V: Scheduling restart of crashed service com.sam

Feb 12 11:28:57.307 sung.android.gearoplugin/.service.GearPayEnablerService in 10493ms

Feb 12 11:29:02.416 SM-G935V: Scheduling restart of crashed service

Feb 12 11:29:02.417  com.samsung.android.communicationservice/.ITransactionManagerService in 1000ms

Feb 12 11:29:10.648 SM-G935V: Slow operation: 175ms so f

Feb 12 11:29:10.648 ar, now at getContentProviderImpl: after checkContentProviderPermission

Feb 12 11:29:10.706 SM-G935V: Slow operation: 175ms so far, now at getContentProviderImpl: incProviderCoun

Feb 12 11:29:10.707 tLocked

                    SM-G935V: Slow operation: 175ms so far, now at getContentProviderImpl: before updateOomAdj

                    SM-G935V: Slow operation: 176ms so far, now at getContentProviderImpl: after updateOomAdj

                    SM-G935V: Slow operation: 176ms so far, now at getContentProviderImpl: done!

Feb 12 11:29:34.450 SM-G935V: -----------------------------------------------

Feb 12 11:29:34.450 

[/lua]

I would recommend trying to update your Flurry plugin.  The current plugin is using our modern plugin architecture. We are trying to get rid of the “CoronaProvider” style plugins.

See: https://docs.coronalabs.com/plugin/flurry-analytics/index.html

Rob