My game crashes on many phones

0 favourites
From the Asset Store
Minimalist Crash Balls is a game where the goal is to hit the ball on the portal, with 20 different levels :)
  • On my phone the game works perfectly (Leeco X650), but on many other phones (View2go android 8.1, Pocophone F1 android 10, Bq Aquaris V android 8.1) after the first loading screen, it crashes.

    These are the loading screen events

    The second screen is this, it is only a menu where you can choose a language, but the game crashes.

    I don't understand why this happens.

  • If you have access to one of these phones, try getting LogCat log from it. There is a good possibility you'll see the error message in the log.

  • This is more of a general trouble shooting tip: Try to remove most of events and/or actions where the game crashes and try again. If the game then starts working then you can enable one or more events at a time until it crashes again - then you've found the issue.

  • Check the memory usage. If your app needs loads of memory, devices without enough memory will crash.

  • Check the memory usage. If your app needs loads of memory, devices without enough memory will crash.

    Is there a way in Construct 3 to check how much memory is available on the device?

  • It's best to look up the device specification. You can try the DeviceMemory expression in the Platform Info object, but it's rounded for privacy reasons and not always supported. There's no way to check available memory either, those cover total memory.

  • Memory would be the first thing to look into, but he says it is only a language select secreen, so assuming he is not using that layout to pre-load everything else, how much memory could it actually be using?

  • It's a very common mistake that people make if they don't understand why memory usage is important. People can and do make things like several colossal image tiles, or a sprite with 100 animation frames which are 1024x1024 (which uses nearly half a gigabyte of memory alone), etc. Based on years of seeing things like this, it would be my first suspicion; next up I'd suspect a GPU driver bug since those are pretty common too.

    For the record, neither your events nor Construct can typically crash the entire app. That means either out of memory (my first guess) or native code crashed (probably the driver, my second guess). Neither is actually Construct's fault. But really we can only guess based on the limited information provided - dop2000 is right that the only way to properly diagnose this would be to check LogCat, but often issues like this only happen with other people's devices, so you don't immediately have a way to test that, so you have to resort to guessing like this.

  • The insert image button does not work for me, but the lock screen uses 10 megabytes of memory and has 4 sprites, the largest is the background of 854x480.

    All the phones that are blocked have android 8 or higher (my phone has 6).

    I will try to get the LogCat of some phone (they are not mine). Thank you.

  • > Check the memory usage. If your app needs loads of memory, devices without enough memory will crash.

    Is there a way in Construct 3 to check how much memory is available on the device?

    Found the answer here: construct.net/en/make-games/manuals/construct-3/plugin-reference/platform-info

    Look for DeviceMemory

  • Taximan

    If you post your comment first and then click on edit comment you will be able to add pictures, at least this is how I been doing till now, I think its a bug

  • tarek2Thank you

  • On all phones with android 8 or higher, the game crashes, but I cannot extract the LogCat because none of those phones is mine.

  • Is there an app that can read Logcat, I do not have any phone with android 8 or higher, so a friend could look at it.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Yes, there are many apps, but I never had any luck with them. Maybe it was specific to my phone, but the log these apps produced was very brief, only about 5% of what I could get with ADB.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)