Event Begin Play is being fired too early on Android

If I use “Open Level” node or console command “open levelname”, Begin Play event is being fired too early(before new level has seen), on slow Android phones. But if I use console command “RestartLevel”, it is being fired in time, because it loads the same level faster while restarting.

It causes some problems, for example, I can’t connect to the internet if it is being fired early. There are online events in the begin play node but they fail because of this bug.

There isn’t any problem on editor.

Hello ,

I have a few questions for you that will help narrow down what issue it is that you are experiencing.

Quick questions:

  1. Can you reproduce this issue in a clean project?
  2. If so, could you provide a detailed list of steps to reproduce this issue on our end?
  3. Could you provide screen shots of any blueprints that may be involved with this issue?
  4. What is the exact device that is being used?
  5. What is the current OS that is being run on the device?
  6. Could you try placing a delay node between the begin play node and the open level node and let me know if this helps?
  1. Yes, I was able to reproduce with default car template too.

  2. Use the blueprint below and see what happens when you’ve just seen the game rendering. You will probably see multiple "Hi"s when the game actually started. Please note that the device that I tested loads the game in more than 5 seconds. If you are using a faster device, make timer loop time a smaller value than 1.0 second.

96266-untitled.jpg

  1. Zenfone A501CG, which has a slow RAM.

  2. Android 5.0 (Since I am a developer, of course it is rooted.)

  3. Yes, putting a delay node solved the internet connection problem. Also, increasing the TCP handshake time solved the problem too.

With the given setup shown above I was able to have the print string show up as expected. Could you provide a sample project that reproduces the issue that you are seeing?

Here is the project: Dropbox - File Deleted

And a video: Dropbox - File Deleted (Download to watch in higher quality.)

I changed the blueprint a little bit. Look at the printed time just when you see the game completely opened. It starts with 0.7 second instead of 0.

I ran a couple of tests using the project that was provided. However, I did not see the issue that you mentioned with it skipping print strings. I made a couple of changes for the test to see everything. Could you try the changes below and let me know if you still have this issue?

I tried with the changes in your blueprint. It doesn’t stuck at the black screen but result is still unexpected. Expected result is only one print.

When the game really begins, early printed texts are being rendered at the same time.

New video: Dropbox - File Deleted - Simplify your life

Hello ,

I am not seeing the results reported on my end. Are you packaging out or are you launching on? Does either of these make a difference?

I am packing out. This problem doesn’t occur with “Launch” button and on fast android devices. It only occurs with Asus A501CG which has a slow memory(or sd card) access.

Hello ,

After taking a look at the specs on the device you mentioned above, I do not currently have access to a comparable device. This appears to be a limitation of the device.