Possible bug

Discuss the Firewing language

Possible bug

Postby jmusselman64 » Thu Jan 22, 2015 1:14 am

Hello,
As I'm evaluating Firewing for an upcoming project, I think I may have found a serious bug...
I was loading a BASIC code section from 'another' compiler and kept getting 'out of memory' lockup errors.

I kept commenting stuff out until I got to the basic header below generated with a new program:


Code: Select all
'*****************************************************************************
'*  Name    : UNTITLED.1                                                     *
'*  Author  :                                                                *
'*  Notice  : Copyright (c) 2015                                             *
'*          : All Rights Reserved                                            *
'*  Date    : 1/21/2015                                                      *
'*  Version : 1.0                                                            *
'*  Notes   :                                                                *
'*          :                                                                *
'*****************************************************************************

' Imports section...

' Declarations...

Sub Main()

End Sub


If you delete the 'sub Main() and 'End sub', and insert another line (even just a comment) and save it, it will lock up with 'out of memory' errors.
Tried this on XP, Win7 and Win 8.1.

It appears do the same if you load anything that does not contain the 'sub main() / end sub' declarations. Obviously not modules though.

Good to know, but took 2 1/2 days to figure it out. Other than that, this looks like a great compiler.

Thanks,
Jerry Musselman
jmusselman64
 
Posts: 24
Joined: Thu Jan 22, 2015 1:01 am

Re: Possible bug

Postby jmusselman64 » Thu Jan 22, 2015 3:11 am

Update:
Just inserting a blank line to the 'New' file and saving will cause 'out of memory' errors.
(XP machine has 2 GB, Win 7 and 8.1 had 8GB)
jmusselman64
 
Posts: 24
Joined: Thu Jan 22, 2015 1:01 am

Re: Possible bug

Postby David John Barker » Thu Jan 22, 2015 8:32 am

I'm not seeing that here, can anyone else reproduce this?

Maybe when you pasted the code from the another compiler it's inserted some white space character that the IDE does not like? If so, I will nee a complete series of steps to reproduce the error here, including third party source code. The IDE should not lock up just because it does not see sub main(). The IDE will even compile a completely blank page.
User avatar
David John Barker
 
Posts: 491
Joined: Thu Nov 08, 2012 12:21 pm

Re: Possible bug

Postby Coccoliso » Thu Jan 22, 2015 8:50 am

Hello,
nothing happens to me like that tested on WIN7 64 and WIN8.1
But I see that Author field is not filled and that I never saw.
Are you sure there is not some strange character in this field of editor options?
VIEW> EDITOR OPTIONS> PROGRAM HEADER
User avatar
Coccoliso
 
Posts: 178
Joined: Sat Sep 27, 2014 10:02 am

Re: Possible bug

Postby Jerry Messina » Thu Jan 22, 2015 10:31 am

I can't reproduce it either (win7 x64)
Jerry Messina
 
Posts: 280
Joined: Thu Feb 14, 2013 10:16 am

Re: Possible bug

Postby David John Barker » Thu Jan 22, 2015 11:19 am

> I was loading a BASIC code section from 'another' compiler

I am assuming you don't see any problem with the sample programs provided? Or if you start a new program from scratch? Just to be clear, you only see the problem if you have pasted some code from another IDE (even if you then delete the pasted code)?
User avatar
David John Barker
 
Posts: 491
Joined: Thu Nov 08, 2012 12:21 pm

Re: Possible bug

Postby jmusselman64 » Thu Jan 22, 2015 11:04 pm

OK...this is the file I'm trying to load (test.zip). Using a win7/64 bit machine now. I removed and reloaded the latest stable firewing.
Called up Resource monitor while it loaded, and 'commit charge' goes through the roof and crashes.
Attachments
test.zip
(376 Bytes) Downloaded 1264 times
jmusselman64
 
Posts: 24
Joined: Thu Jan 22, 2015 1:01 am

Re: Possible bug

Postby David John Barker » Fri Jan 23, 2015 9:18 am

I've just loaded you attachment on my win7 64 bit machine with absolutely no problems. I'm at a loss as to why you are seeing issues. Does anyone else see problems when trying to load "test.bas"?
User avatar
David John Barker
 
Posts: 491
Joined: Thu Nov 08, 2012 12:21 pm

Re: Possible bug

Postby Jerry Messina » Fri Jan 23, 2015 11:15 am

It worked for me. I added lines, removed lines, compiled, etc... no crash. Unless I missed it I didn't see anything funny in the file, either.

Tried this on XP, Win7 and Win 8.1

That's just strange. I don't get it.

Can you compile anything?
Jerry Messina
 
Posts: 280
Joined: Thu Feb 14, 2013 10:16 am

Re: Possible bug

Postby Coccoliso » Fri Jan 23, 2015 1:01 pm

I tried to load it even from different folders than standard FW but it loads and compiles without problems ..
I tried to read it with a hex editor if there is some control character unprintable but the source did not find anything.
At this point it is something in the system that clashes with the ide FW maybe some video driver .. you recently updated the video drivers?
I was going with visual studio when I tried to drag a treeview on a form it crash.
Then I realized that was happening even with some browsers and videos and was the graphic accelerator.
I had to go back to the previous driver version.
User avatar
Coccoliso
 
Posts: 178
Joined: Sat Sep 27, 2014 10:02 am

Next

Return to Language

Who is online

Users browsing this forum: No registered users and 4 guests

x