Giter Site home page Giter Site logo

Comments (20)

bopangzz avatar bopangzz commented on June 28, 2024 1

@alllesss I can reproduce your issue now on a S8. So it looks like a pure Unreal issue, basically if you set your timezone on your phone with something like xx:30, you will get the crash.
I haven't got a chance to try it but If you can also reproduce the crash with a general Unreal Android app, like the ThirdPerson template, you should fill a bug to Epic and let them fix on their side.

from arcore-unreal-sdk.

bopangzz avatar bopangzz commented on June 28, 2024

from arcore-unreal-sdk.

alllesss avatar alllesss commented on June 28, 2024

Crash Report.txt

from arcore-unreal-sdk.

bopangzz avatar bopangzz commented on June 28, 2024

Did you see the app asked for External Read/Write permission the first time you launch the app? If not, can you try change your Target SDK to 24 and rebuild the app?

From the logcat, it looks like you app crashes because it couldn't load the Internationalization file, which is very likely caused by lack of Android External Read Permission on you app.

Though you shouldn't need to request runtime read permission if your Min/Target SDK is 19, but my guess is since you build with ARCore support, and the ARCore library is targeting Android 24 which make you app target 24 as well.

And after you set Target SDK to 24 in Unreal, it should request External Read/Write permission when the app started.

from arcore-unreal-sdk.

alllesss avatar alllesss commented on June 28, 2024

@bopangzz I've never got Read/Write permissions. however, I checked the app's permissions defaults and read/write is already enabled.

Tried SDK 24 still crashes. with no permission being asked.
So the crash is, it loads Unreal Splash screen for a sec and then closes the app.

from arcore-unreal-sdk.

bopangzz avatar bopangzz commented on June 28, 2024

Hmm, then it isn't the permission problem. This is the crash callstack from your log:
03-16 11:43:20.115 16961 16961 F DEBUG : #00 pc 020c35d4 /data/app/com.ARtest-1/lib/arm/libUE4.so (_Z9vswprintfPwiPKwSt9__va_list+1324)
03-16 11:43:20.116 16961 16961 F DEBUG : #1 pc 022457a4 /data/app/com.ARtest-1/lib/arm/libUE4.so (_ZN4FMsg17Logf_InternalImplEPKciRK5FNameN13ELogVerbosity4TypeEPKwz+796)
03-16 11:43:20.116 16961 16961 F DEBUG : #2 pc 021a55e0 /data/app/com.ARtest-1/lib/arm/libUE4.so (_ZN24FICUInternationalization18InitializeTimeZoneEv+300)
03-16 11:43:20.116 16961 16961 F DEBUG : #3 pc 021a34a0 /data/app/com.ARtest-1/lib/arm/libUE4.so (_ZN24FICUInternationalization10InitializeEv+2752)
03-16 11:43:20.116 16961 16961 F DEBUG : #4 pc 0219aa54 /data/app/com.ARtest-1/lib/arm/libUE4.so (_ZN21FInternationalization3GetEv+164)
03-16 11:43:20.116 16961 16961 F DEBUG : #5 pc 0223a538 /data/app/com.ARtest-1/lib/arm/libUE4.so (_Z25BeginInitTextLocalizationv+12)
03-16 11:43:20.116 16961 16961 F DEBUG : #6 pc 0209feb8 /data/app/com.ARtest-1/lib/arm/libUE4.so (_ZN11FEngineLoop7AppInitEv+68)
03-16 11:43:20.116 16961 16961 F DEBUG : #7 pc 0209b040 /data/app/com.ARtest-1/lib/arm/libUE4.so (_ZN11FEngineLoop7PreInitEPKw+8880)
03-16 11:43:20.116 16961 16961 F DEBUG : #8 pc 0208a4c8 /data/app/com.ARtest-1/lib/arm/libUE4.so (_ZN11FEngineLoop7PreInitEiPPwPKw+3928)
03-16 11:43:20.117 16961 16961 F DEBUG : #9 pc 02088ea4 /data/app/com.ARtest-1/lib/arm/libUE4.so (_Z11AndroidMainP11android_app+2780)
03-16 11:43:20.117 16961 16961 F DEBUG : #10 pc 02095d48 /data/app/com.ARtest-1/lib/arm/libUE4.so (android_main+204)
03-16 11:43:20.117 16961 16961 F DEBUG : #11 pc 020b55d8 /data/app/com.ARtest-1/lib/arm/libUE4.so
03-16 11:43:20.117 16961 16961 F DEBUG : #12 pc 00047a63 /system/lib/libc.so (_ZL15__pthread_startPv+22)
03-16 11:43:20.117 16961 16961 F DEBUG : #13 pc 00019e65 /system/lib/libc.so (__start_thread+6)

It looks like a general UE4 crash and it is not related ARCore. I assume you packaged the project and install it on your phone using the install script? Can you try check the "Package game data inside APK" checkbox in Project Settings->Android and repackage the game? Another thing to try is start your game using the Unreal launch button.

from arcore-unreal-sdk.

alllesss avatar alllesss commented on June 28, 2024

I tried installing the APK and lunch. with both methods I got crash. also checked it in my friend's S7 and still crashed.
So you're right this should be the problem of UE4's build. I saw another person ran into the same problem in UE4's answerhub. If it expands then we should hear back from Epic I guess.

from arcore-unreal-sdk.

bopangzz avatar bopangzz commented on June 28, 2024

Yeah, I found some one reported similar problem on UE4 forum: https://forums.unrealengine.com/unreal-engine/announcements-and-releases/1413780-unreal-engine-4-19-preview/page11

Which timezone you phone is set to? I tested a 64 bit build on a S8 and I didn't see the crash.

from arcore-unreal-sdk.

alllesss avatar alllesss commented on June 28, 2024

My time zone is set to Tehran UTC+03:30

from arcore-unreal-sdk.

freelife0417 avatar freelife0417 commented on June 28, 2024

I went through the same steps as the AR template in version 4.19.0 with the Galaxy S7 device.

The same problem (crash) occurred.

I saw the log and I do not know what the problem is in Log.

my_device_log.txt
ARTeamplate_4_19_0.log

I have run and tested with the Galaxy s7 device with the HelloARUnreal Sample Project, which was previously the steps in the link below.

https://developers.google.com/ar/develop/unreal/quickstart

I am not sure that the AR plug-in installed in Unreal 4.19.0 currently works properly with Galaxy S7 devices.

Please Anyone here on the web page should check if the AR template can be run on the Galaxy S7 device in version 4.19.0.

from arcore-unreal-sdk.

bopangzz avatar bopangzz commented on June 28, 2024

@freelife0417 Your crash is a different problem. It looks like you are using Vulkan instead of open gles in your build? ARCore doesn't support Vulkan yet. Can you try build without vulkan enabled?

from arcore-unreal-sdk.

freelife0417 avatar freelife0417 commented on June 28, 2024

@bopangzz
I solved the problem with your answer.
Thank you.

Personally I'm curious, Could you tell me where you saw the vulcan api error message in the log?

from arcore-unreal-sdk.

bopangzz avatar bopangzz commented on June 28, 2024

@freelife0417 I don't see vulcan api error message bug. I just saw logs from VulkanRHI which indicates it is using Vulkan.

from arcore-unreal-sdk.

alllesss avatar alllesss commented on June 28, 2024

@bopangzz some1 in ue4's forum mentioned that the crash doesn't occur with Android 7. can you confirm it's related to android version and ARcore doesn't support Android 8 ?!
If so, it's pretty weird though

from arcore-unreal-sdk.

bopangzz avatar bopangzz commented on June 28, 2024

@alllesss ARCore should works fine with Android 7. I don't think that timezone related crash has anything to do with ARCore. Have you tried build the ThirdPerson template on Android, which doesn't have ARCore plugin enabled?

from arcore-unreal-sdk.

alllesss avatar alllesss commented on June 28, 2024

@bopangzz oh wow! was exactly that ... I tried xx:00 time zones and it worked. will file a bug to Epic. Thanks!

from arcore-unreal-sdk.

bopangzz avatar bopangzz commented on June 28, 2024

The crash that related to timezone should be fixed in Unreal 4.19.1. If you are using Epic's Unreal Engine releases, you should have the fix after upgrading to 4.19.1. If you are using the forked GoogleAR Unreal Engine repo, it will be updated to 4.19.1 in our next release.

from arcore-unreal-sdk.

hanson1985 avatar hanson1985 commented on June 28, 2024

Hi i have problem with UE 4.21.2 on samsung galaxy 8 app is closing on phone

from arcore-unreal-sdk.

bopangzz avatar bopangzz commented on June 28, 2024

@hanson1985 @jiomex Please capture a Android logcat of the crash and I can help take a look.

from arcore-unreal-sdk.

jiomex avatar jiomex commented on June 28, 2024

the same on my note 8, with latest Android 9

from arcore-unreal-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.