Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / I still get the same android error 7.0(NRD90M)

Author
Message
coder51223
6
Years of Service
User Offline
Joined: 6th Sep 2017
Location:
Posted: 28th Jun 2018 08:16
I still get the same android error

7.0(NRD90M)

In the last version I discovered the line that caused the error
LoadObjectWithChildren(zombieobj,"zombie\zombie.ms3d")


I don't know what happened, but as I said some versions ago the program didn't fail and now it does. I didn't changed the code, so I don't know what's happening.

I don't use ARcore

I can't continue developing if it is not solved.

Need help, please.
Thanks
coder51223
6
Years of Service
User Offline
Joined: 6th Sep 2017
Location:
Posted: 28th Jun 2018 08:25
I have made a little test program with parts of my code to find where it fails:



// Project: pruebas
// Created: 2017-10-29

// show all errors
SetErrorMode(2)

// set window properties
SetWindowTitle( "pruebas" )
SetWindowSize( 1024, 768, 0 )
SetWindowAllowResize( 1 ) // allow the user to resize the window

// set display properties
SetVirtualResolution( 1024, 768 ) // doesn't have to match the window
SetOrientationAllowed( 1, 1, 1, 1 ) // allow both portrait and landscape on mobile devices
SetSyncRate( 30, 0 ) // 30fps instead of 60 to save battery
SetScissor( 0,0,0,0 ) // use the maximum available screen space, no black borders
UseNewDefaultFonts( 1 ) // since version 2.0.22 we can use nicer default fonts

aaahprotasnd=loadsoundogg("sonidos\aaah distorsion prota.ogg")

playsound(aaahprotasnd)
loadcontrols()
savecontrols()
loadcontrols()


img_carazombi=loadimage("zombi\cara2.png")
img_ladoscabezazombi=loadimage("zombi\lados cabeza.png")
img_topcabezazombi=loadimage("zombi\top cabeza.png")

img_pielzombi=loadimage("zombi\piel.png")
img_brazopielymangazombi=loadimage("zombi\brazo piel y manga.png")
img_lateralescuerpozombi=loadimage("zombi\laterales cuerpo.png")
img_partesuperiortorsozombi=loadimage("zombi\parte superior torso.png")
img_pielzapatoszombi=loadimage("zombi\piel zapatos.png")
img_telaamarillazombi=loadimage("zombi\tela amarilla.png")
img_telagriszombi=loadimage("zombi\tela gris.png")
img_torsozombi=loadimage("zombi\torso.png")



global zombieobj=1
LoadObjectWithChildren(zombieobj,"zombi\zombie.ms3d") //************when I insert this line then fails the other things work ************!!!!!!!!!!!!!!!!!!!!!!!!!!HERE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!



//skybox
SetSkyBoxVisible(1)
SetSkyBoxHorizonSize( 4, 0 )
setskyboxhorizoncolor(100,100,100)
SetSkyBoxSkyColor(100,100,100)
SetSkyBoxSunVisible(1)
setskyboxsuncolor(255,255,255)
SetSkyBoxSunSize(20, 100 )
SetSunActive(1)
SetSunColor(255,255,255)
SetSunDirection(0,0.3,-1)

//fog

SetFogMode(1)
setfogcolor(100,100,100)
SetFogRange(250, 350)
SetCameraRange( 1, 1, 400 )


do

print("version test 5")
Print( ScreenFPS() )
Sync()
loop


function savecontrols()
opentowrite(1,"controls.dat")
writeinteger(1,2)
writeinteger(1,2)
writeinteger(1,2)
writeinteger(1,2)
closefile(1)

endfunction

function loadcontrols()
if getfileexists("controls.dat")=1
opentoread(1,"controls.dat")
readinteger(1)
readinteger(1)
readinteger(1)
readinteger(1)
closefile(1)
else

endif

endfunction
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 28th Jun 2018 14:02
Thanks for creating a thread. Do you get an error message and if so what does it say? Do you get the same problem if you export to a different model format like .X, .DAE, or .FBX?
coder51223
6
Years of Service
User Offline
Joined: 6th Sep 2017
Location:
Posted: 29th Jun 2018 10:12
It's an android error. I don't know how to get more info.

I've been using ms3d for this project from beginning, long time ago. I haven't tried other 3d formats.

In PC works with no problem.

When I export the apk it crashes. All I know is that the error message is that in android.

Some versions ago didn't fail in android, using exactly the same 3d model and code.

Thanks, paul.
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 29th Jun 2018 16:28
Can you send me a bug report from the device? To do this go to the device settings and look for the Developer Options section, it should be right at the bottom. If you don't see it go into the About section, find the Build Number field and tap it multiple times until it unlocks developer mode, this will reveal the Developer Options section in the settings. In the Developer Options section will be an option to "Take bug report", do this shortly after the crash (otherwise the log will get overwritten), and send it to me at paul@thegamecreators.com.
coder51223
6
Years of Service
User Offline
Joined: 6th Sep 2017
Location:
Posted: 2nd Jul 2018 12:20
hi paul
bug report sent
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 2nd Jul 2018 17:46
Thanks for the bug report, it shows the app is crashing inside the MS3D importer due to an unaligned access on 64-bit versions of Android. I've fixed it for the next version.
coder51223
6
Years of Service
User Offline
Joined: 6th Sep 2017
Location:
Posted: 3rd Jul 2018 08:16
thanks, paul
coder51223
6
Years of Service
User Offline
Joined: 6th Sep 2017
Location:
Posted: 17th Jul 2018 08:52
Hi paul
I've sent you a new bug report
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 17th Jul 2018 15:42
Thanks for the report, it shows the same as last time an unaligned memory access, but I can't see anything else that would cause it. Can you confirm you are using the latest version of the AppGameKit Player, and if so can you send me the ms3d file so I can try to replicate the problem?
coder51223
6
Years of Service
User Offline
Joined: 6th Sep 2017
Location:
Posted: 18th Jul 2018 16:59
Hi paul
I'm using agk version
2018.07.12

I compile and export the apk
for android 4.0.3 (API 15)

I'll send you the ms3d model.
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 19th Jul 2018 01:08
Thanks for sending me the file, I managed to replicate the crash and track it down to the source, it may also have affected some other model formats. Fixed for the next version.

Login to post a reply

Server time is: 2024-04-24 07:08:48
Your offset time is: 2024-04-24 07:08:48