It is currently Fri Apr 28, 2017 10:38 pm



Welcome
Welcome to rfobasic

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today. **You are not required to provide truthful information to any registration questions. Be whomever you wish to be.!


Post new topic Reply to topic  [ 16 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: crash with bitmaps
Unread postPosted: Fri Jul 29, 2016 9:31 am 
Offline
User avatar

Joined: Sat Oct 04, 2014 5:45 am
Posts: 627
So Nicolas did you then see the red square?

_________________
Download and tutorial for RFODESIGNER
https://sites.google.com/site/rfodesigner/


Top
 Profile  
 
 Post subject: Re: crash with bitmaps
Unread postPosted: Fri Jul 29, 2016 10:04 am 
Offline
User avatar

Joined: Thu Jan 08, 2015 11:28 am
Posts: 1088
Location: .NET
RSA wrote:
So Nicolas did you then see the red square?


it's not about the red square,

when i GR.CLOSE after the code it doesn't crash, otherwise it hard crashes most of the time.

_________________
https://github.com/evolbug
http://toobasic.jimdo.com


Top
 Profile  
 
 Post subject: Re: crash with bitmaps
Unread postPosted: Fri Jul 29, 2016 10:12 am 
Offline
User avatar

Joined: Tue Jan 03, 2012 9:31 am
Posts: 5487
Location: Paris, France
RSA wrote:
So Nicolas did you then see the red square?

Nope, didn't see nothing.

_________________
- Creator of the Android BASIC! Compiler


Top
 Profile  
 
 Post subject: Re: crash with bitmaps
Unread postPosted: Fri Jul 29, 2016 10:23 am 
Offline
User avatar

Joined: Sat Oct 04, 2014 5:45 am
Posts: 627
evolbug wrote:
it's not about the red square,

Noooo I am trying to catch Nicolas :lol:
But you know it's a blue square.

Nicolas wrote:
Nope, didn't see nothing.

I give you some credit for your slow eye. ;)

_________________
Download and tutorial for RFODESIGNER
https://sites.google.com/site/rfodesigner/


Top
 Profile  
 
 Post subject: Re: crash with bitmaps
Unread postPosted: Fri Jul 29, 2016 10:55 am 
Offline
User avatar

Joined: Tue Jan 03, 2012 9:31 am
Posts: 5487
Location: Paris, France
RSA wrote:
Nicolas wrote:
Nope, didn't see nothing.

I give you some credit for your slow eye. ;)

or my fast phone ;)

_________________
- Creator of the Android BASIC! Compiler


Top
 Profile  
 
 Post subject: Re: crash with bitmaps
Unread postPosted: Sat Jul 30, 2016 11:17 pm 
Offline

Joined: Wed Oct 03, 2012 9:53 am
Posts: 2795
Location: Colorado, U.S.
On my Moto G, the crash is an Index Out Of Bounds Exception. The renderer gets the index of the bitmap in the bitmap list, but the bitmap list is already gone. It's a race condition as the graphics screen shuts down.

The bitmap list is not cleared when the graphics screen shut down. I don't know why, and I think it should be. But your program just exits, so the graphics screen, the console, and the interpreter are all trying to shut down at the same time. The display list is cleared as the interpreter shuts down. If the graphics screen is still running when that happens, and the display list has a bitmap.draw object, it will crash.

Gr.Close replaces the display list with a single Close object and forces a Gr.Render. That lets the graphics screen shut down gracefully.

- Marc


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page Previous  1, 2


Who is online

Users browsing this forum: [email protected] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
suspicion-preferred