MAC Bugs Listing

Information and discussion about BR error codes.

Moderators: Susan Smith, admin

bluesfannoz
Posts: 235
Joined: Fri Jun 19, 2009 9:01 am
Location: Topeka, Kansas
Contact:

MAC Bugs Listing

Postby bluesfannoz » Thu Apr 28, 2016 9:15 am

Creating PDF's has a memory leak on the MAC. The following code on my machine will crash BR after about 90 pdf's generated. That number may vary depending upon how much available memory you have on your machine.

Code: Select all

00010 Execute "config gui off"
00020 Let A=1
00030 TOP:!
00040 Open #A: "name=pdf:/,recl=512,replace",display,output
00050 Print #A: STR$(A)
00060 Close #A:
00070 Print STR$(A)
00080 LET A=A+1
00090 IF A<500 Then Goto TOP


This has been tested on every mac version of BR available including 4.31. In watching memory it appears multiple instances of the sunpdf.jar that is used by the client are getting opened and not closed and eventually it crashes the system. I made a workaround by always firing a separate BR session to generate my PDF's on the MAC. But that brings on other issues using Multisession that are unfavorable.

%env-var% does not work in your configuration files. I cannot place something in my brconfig.sys file like the following. Instead of the value of %HOSTNAME%, I get BR_COMPUTERNAME set to just %HOSTNAME%.

Code: Select all

SETENV BR_COMPUTERNAME %HOSTNAME%


The PATH environment variable of shell calls does not match the system set PATH. It is like BR is hard coding it. This has made shell calls almost unusable on OSX 10.11 El Capitan because Apple has locked down its operating system folders and does not allow you to put scripts in them like older operating systems so you must put them in a folder you have rights to modify. Without being able to change the Search PATH your scripts are not found. Here is what is getting hardcoded into the PATH when I make a shell call.

Code: Select all

PATH=/usr/bin:/bin:/usr/sbin:/sbin


Where the actual OS set PATH on 10.11 is

Code: Select all

PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin


You can put scripts in /usr/local/bin in 10.11 El Capitan. So its important that it be made available in the Search PATH.

For now in 10.11 El Capitan the workaround is to turn of the System Integrity Checker, it will then allow you to put scripts in OS folders. This is not something that is recommend but it works for now. Sounds as if the next version of OSX will not let you turn that feature off.

Link on how to turn of the System Integrity Checker in OSX 10.11 El Capitan
http://osxdaily.com/2015/10/05/disable-rootless-system-integrity-protection-mac-os-x/

Username matching for BRconfig statements does not like periods in the username.

For example:

Code: Select all

@"stevekoger" WSID 7


Will match

Code: Select all

@"steve.koger" WSID 7


Will not match

Those are the most pressing issues we have on the MAC right now. Thought I might put this out here for anyone else who might be looking at using BR with MACS.
Steve Koger
Computer Specialist
SEKESC-MACS Division

GomezL
Posts: 228
Joined: Wed Apr 29, 2009 5:51 am
Contact:

Re: MAC Bugs Listing

Postby GomezL » Sat Apr 30, 2016 1:47 am

An interesting thing about the PDF test.

The PDF test creates auto numbered output files, but only auto increments to 99.

On the PC, the test fails at 100

bluesfannoz
Posts: 235
Joined: Fri Jun 19, 2009 9:01 am
Location: Topeka, Kansas
Contact:

Re: MAC Bugs Listing

Postby bluesfannoz » Sat Apr 30, 2016 11:49 am

GomezL wrote:An interesting thing about the PDF test.

The PDF test creates auto numbered output files, but only auto increments to 99.

On the PC, the test fails at 100


Yes because I did not do debugging in the example code. It fails within BR within an error code. On the MAC it crashes the BR client application. If you trapped for 4261 error and cleared your spool folder then the windows client would be able to continue.
Steve Koger

Computer Specialist

SEKESC-MACS Division

bluesfannoz
Posts: 235
Joined: Fri Jun 19, 2009 9:01 am
Location: Topeka, Kansas
Contact:

Re: MAC Bugs Listing

Postby bluesfannoz » Fri Dec 09, 2016 10:36 am

Can we get an update on the status of resolution of these bugs?

I have emailed Gordon directly and am not getting any response. If anyone in the group knows what the status of getting the MAC version up to speed with the windows version. I would appreciate an update.
Steve Koger

Computer Specialist

SEKESC-MACS Division

John
Posts: 497
Joined: Sun Apr 26, 2009 8:27 am
Location: West Orange, NJ
Contact:

Re: MAC Bugs Listing

Postby John » Fri Dec 09, 2016 1:08 pm

I modified your test a little to run it in 4.32 (32bit windows). I had to make myself a function to return my spoolpath so I could clear it out as you suggested to get past 100. Also I had to change it to not use A as the file handle after 199, because some of those file handles are illegal, so I just reused 20 the whole time. I was able to get this to run all the way.


Code: Select all

20020 Execute "config gui off"
20040 library 'r:\core\library': fnspoolpath$
20060 on error goto ERTN
20080 Let A=1
20100 do
20120   Open #20: "name=pdf:/,recl=512,replace",display,output
20140   Print #20: STR$(A)
20160   Close #20: ioerr ignore
20180   Print STR$(A)
20200   A+=1
20220 loop while A<500
20240 XIT: end
20260 ERTN: ! r:
20280 if err=4261 then
20300   execute 'free '&fnspoolpath$&'\*.*'
20320   retry
20340 else
20360   pr 'error '&str$(err)&' on line '&str$(line)
20380   pause
20400 end if
20420 ! /r
John Bowman

bluesfannoz
Posts: 235
Joined: Fri Jun 19, 2009 9:01 am
Location: Topeka, Kansas
Contact:

Re: MAC Bugs Listing

Postby bluesfannoz » Fri Dec 09, 2016 1:27 pm

I appreciate that John. But that's not the point. On the mac I get nowhere near 99 because the app crashes and that was what my demo code was for. I have no problem on Windows.
Steve Koger

Computer Specialist

SEKESC-MACS Division

gordon
Posts: 295
Joined: Fri Apr 24, 2009 6:02 pm

Re: MAC Bugs Listing

Postby gordon » Sun Dec 11, 2016 10:04 pm

I have to apologize for the delays in publishing 4.32. Especially on the MAC.

I am about 75% done with the MAC version. The others are done, including 32 bit Linux.

Once 4.32 is out I will address something for Luis and then fix the the bugs listed here.

It has been quite a year. I will explain at the conference. My energy is back and so is my overall health.

I expect to have 4.32 MAC done before year end.

bluesfannoz
Posts: 235
Joined: Fri Jun 19, 2009 9:01 am
Location: Topeka, Kansas
Contact:

Re: MAC Bugs Listing

Postby bluesfannoz » Mon Dec 12, 2016 8:46 am

Thanks Gordon. Hope you have a speedy recovery! I sent you an email with some additional questions.
Steve Koger

Computer Specialist

SEKESC-MACS Division


Return to “Error Codes”

Who is online

Users browsing this forum: No registered users and 1 guest

cron