We have moved to a new Sailfish OS Forum. Please start new discussions there.
2

How to increase Android memory allowance? [Invalid] [not relevant]

asked 2014-02-02 06:39:11 +0200

Hirager gravatar image

updated 2014-07-12 17:06:57 +0200

simo gravatar image

I remember reading about a fact that the Android applications on Jolla have limited access to memory. I have a game, where one particular level crashes on loading. I believe it has not enough memory available to start correctly. I understand the reasoning for limiting the memory access, but I would like to increase the limit just a little bit. My experience with Linux tells me most probable scenario is a variable in a config file which controls the limit. If so, where is it? :) I want to increase it. Thanks in advance. :D And yes, I am not asking for development of any UI for that. This here is a very special and rare case, so I am fine with using vi.

edit retag flag offensive reopen delete

The question has been closed for the following reason "question is not relevant or outdated" by eric
close date 2014-02-05 15:28:35.221432

Comments

Are you referring to this article: http://www.jollatides.com/2014/01/31/android-on-jolla-what-kind-of-an-android-phone-do-we-have/

Have you tried closing all native apps before running the game?

Keeper-of-the-Keys ( 2014-02-02 09:06:00 +0200 )edit

Yes in both cases.

Hirager ( 2014-02-02 09:14:30 +0200 )edit

Is it still crashing after the 1.0.3.8. update?

Neo ( 2014-02-02 13:26:15 +0200 )edit

It is. The game itself runs great with this one exception.

Hirager ( 2014-02-02 15:29:49 +0200 )edit

1 Answer

Sort by » oldest newest most voted
3

answered 2014-02-02 21:18:07 +0200

tigeli gravatar image

With 1.0.3.8 we changed out of memory handling so that if the active android application requires more memory than there is available the system can kill the least recently used native applications. I've personally test driven this so that there is only 50MB memory available (including swap) and it works. Though if the game itself requires like 1G of memory there is not much we can do about it.

Could you please tell what is the name of the game and what is the level which causes the game to crash?

edit flag offensive delete publish link more

Comments

I understand. It's Real Racing 3, the crash happens only when I try racing on Circuit de Spa-Francorchamps. I might try reading some logs, but I have no idea where are they stored/what is their name.

Hirager ( 2014-02-02 21:28:17 +0200 )edit
1

I will try it and see what happens. :)

EDIT: at least the game is huge.. downloading 1029MB :D.

tigeli ( 2014-02-02 21:33:47 +0200 )edit

It's totally worth it. For a long time this will be my only game installed. The first occurence of the track in question is in sixth event of first series - Pure Stock Challenge: Flag Racing European Pre-season Cup.

Hirager ( 2014-02-02 21:43:13 +0200 )edit
2

Good news: I was able to reproduce the crash. Bad news: it seems it's some sort of a bug in the game itself not being able to load the track:

--cut--

02-02 21:06:06.277 1286 1298 E libRealRacing3: LoadReadOnlyMappedFile failed getting full path: Tracks/spa/processed/spa.fmc

02-02 21:06:06.279 1286 1298 E libRealRacing3: LoadReadOnlyMappedFile failed getting full path: Tracks/spa/processed/spa.spline

02-02 21:06:06.281 1286 1298 E libRealRacing3: Asset::LoadFile unable to load file: 'Tracks/spa/processed/spa.spline'

02-02 21:06:06.281 1286 1298 E libRealRacing3: Failed to load track spline: Tracks/spa/processed/spa.spline

Thread-1118: unhandled page fault (11) at 0x00000018, code 0x005

--cut--

tigeli ( 2014-02-02 23:40:06 +0200 )edit
1

Thank you very much for your help. I'll try to contact the game developer.

Hirager ( 2014-02-03 02:46:28 +0200 )edit

Question tools

Follow
2 followers

Stats

Asked: 2014-02-02 06:39:11 +0200

Seen: 1,362 times

Last updated: Feb 05 '14