It is currently Wed Nov 25, 2020 3:49 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: PB v5.73 Beta 4 crashed or not ???
PostPosted: Sat Nov 14, 2020 11:52 am 
Offline
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 2730
Location: Germany
It has been reported that the IDE is still crashing.
Horbie and I cannot confirm this.

Please report here if it still crashes when closing or quitting. Also report if there is no crash.
Otherwise we won't be able to continue.

If there are still crashes,
I have now recompiled the current IDE v5.73b4 on my build machine (High Sierra).
This is available as standard and as debug version (open debug in terminal)

In the package of Purebasic (.../MacOS) rename the original and use mine.

Maybe there is a problem with the build machine of Fred.

- What kind of crash occurs (With or without project management)
- Which macOS version
- Which machine (with TouchBar)
- Pref file reset from Purebasic

Link: PureBasic IDE Bugfix (OneDrive)

_________________
My Projects ThreadToGUI / OOP-BaseClass / OOP-BaseClassDispatch / EventDesigner V3
PB v3.30 / v5.70 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


Top
 Profile  
Reply with quote  
 Post subject: Re: PB v5.73 Beta 4 crashed or not ???
PostPosted: Sun Nov 15, 2020 3:21 am 
Offline
Addict
Addict
User avatar

Joined: Tue Apr 29, 2003 9:18 pm
Posts: 1479
Location: North by Northwest
Yes, it crashes on closing.
However, I'm on macOS Big Sur and it could be that this only happens on Big Sur...

This happens under the following conditions:

1. Load a PB file
2. Close IDE window

It doesn't matter if the IDE window is closed with the Close Window button or over the menu.

What matters is that a PB file is loaded into the IDE.
If no file is loaded the IDE will not crash.

This sounds like the IDE wants to write something somewhere before closing and this fails.

_________________

I am to provide the public with beneficial shocks.
Alfred Hitshock


Top
 Profile  
Reply with quote  
 Post subject: Re: PB v5.73 Beta 4 crashed or not ???
PostPosted: Sun Nov 15, 2020 10:49 am 
Offline
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 2730
Location: Germany
So saving changed files works ?!

So it is a new problem under macOS Big Sur. Since I have not yet switched to Big Sur, it is difficult to reproduce the error.
If you have time, please change the PB-IDE once with the debug version and start it several times in the terminal and copy the debug output.
Maybe we are lucky and find a solution in the short term.

_________________
My Projects ThreadToGUI / OOP-BaseClass / OOP-BaseClassDispatch / EventDesigner V3
PB v3.30 / v5.70 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


Top
 Profile  
Reply with quote  
 Post subject: Re: PB v5.73 Beta 4 crashed or not ???
PostPosted: Sun Nov 15, 2020 5:01 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Aug 07, 2003 7:01 pm
Posts: 3164
Location: United Kingdom
The IDE does seem to crash randomly (I haven't figure out what seems to be causing it) - you can leave it and after a while it just crashes - on Big Sur. Seems ok on the previous version of macOS.

_________________
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system


Top
 Profile  
Reply with quote  
 Post subject: Re: PB v5.73 Beta 4 crashed or not ???
PostPosted: Sun Nov 15, 2020 8:36 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Apr 29, 2003 9:18 pm
Posts: 1479
Location: North by Northwest
mk-soft wrote:
So saving changed files works ?!

Yes, if the file is saved before closing.

mk-soft wrote:

If you have time, please change the PB-IDE once with the debug version and start it several times in the terminal and copy the debug output.
Maybe we are lucky and find a solution in the short term.


Sorry, didn’t quite get what you mean...

Anyway, what I did was to go to GitHub and started the shell script to build the IDE on my MacBook.

The crashing at closing happened several times with the compiled IDE.
After roughly the 10th time closing the IDE the OS finally asked me if I allow the IDE to write to the folder. Accepting this, the compiled IDE did not crash anymore while closing.

This, while the downloaded 5.73 beta 4 PureBasic IDE’s still crashed at closing (the one not compiled on this machine).

Needless to say that on my machine XCode 12.2 and the Developer Tools 12.2 are installed.


Observation of the compiled IDE:

After compiling, the IDE exhibited the known weird shift behavior bug where 4 characters are shifted to the left. It happens as soon as I click to focus the editor area. It seems to me the UI is ignoring the line number column as it’s the same width.

Until now I didn’t figure out if it’s possible to run the IDE source code in PureBasic itself and debug it.
(At least the editor and the file management portion...)

Another observation is that the Wiki doesn’t mention that the newly created script needs to be made executable with “chmod 755 filename” otherwise it’s just another ascii file, not a runnable script.

_________________

I am to provide the public with beneficial shocks.
Alfred Hitshock


Top
 Profile  
Reply with quote  
 Post subject: Re: PB v5.73 Beta 4 crashed or not ???
PostPosted: Sun Nov 15, 2020 8:53 pm 
Offline
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 2730
Location: Germany
I have a ready compiled debug version on my OneDrive. It is still compiled under macOS High Sierra, because the ScintiallaGadget höher High Sierra has a bug with the offset output. (As described by you).

After I got this with the query of the write permission, please do the following.
Since my macOS is in German, it can be called something else.

Go to the control panel -> security -> data protection.
Add Purebasic to the permission "hard disk full access".

Maybe this is the cause.

_________________
My Projects ThreadToGUI / OOP-BaseClass / OOP-BaseClassDispatch / EventDesigner V3
PB v3.30 / v5.70 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


Top
 Profile  
Reply with quote  
 Post subject: Re: PB v5.73 Beta 4 crashed or not ???
PostPosted: Sun Nov 15, 2020 9:05 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Apr 21, 2005 2:38 pm
Posts: 1781
Location: Germany
fsw wrote:
Sorry, didn’t quite get what you mean...

Take a look into mk-soft's first posting. It contains a download link of his Bugfix IDE and he describes in that posting how to replace the IDE of the PB 5.73 Beta 4 app with his bugfixed IDE.

fsw wrote:
Another observation is that the Wiki doesn’t mention that the newly created script needs to be made executable with “chmod 755 filename” otherwise it’s just another ascii file, not a runnable script.

It would be nice if you would create your own GitHub account. Then you will see an "Edit" button and be able to edit my text or my script in the Wiki. Is it possible that the “chmod 755 filename” is now necessary on Big Sur?


Top
 Profile  
Reply with quote  
 Post subject: Re: PB v5.73 Beta 4 crashed or not ???
PostPosted: Mon Nov 16, 2020 12:30 am 
Offline
Addict
Addict
User avatar

Joined: Tue Apr 29, 2003 9:18 pm
Posts: 1479
Location: North by Northwest
[German] Danke euch beiden! [/German]

Thank you both.
Sorry, don't know why I missed your link...

Ran the debug version and it automatically loaded the last opened file.

Here the debug output after clicking the close button:
Quote:
[Debugger] [COMPILER START] /Applications/PureBasic.app/Contents/Resources/compilers/pbcompiler --standby -f -ibp -ds
[Debugger] [COMPILER READ] STARTING<T>5.73<T>PureBasic 5.73 beta 4 (MacOS X - x64)
[Debugger] TODO GetPanelItemID()
[Debugger] TODO GetPanelItemID()
[Debugger] TODO GetPanelItemID()
[Debugger] TODO GetPanelItemID()
[Debugger] EnsureWindowOnDesktop()
[Debugger] before: 567, 43, 1332, 1074
[Debugger] --> on desktop: 0
[Debugger] [DB UPDATE] CREATE TABLE IF NOT EXISTS options(key TEXT UNIQUE ON CONFLICT REPLACE, value NOT NULL)
[Debugger] [DB QUERY] SELECT value FROM options WHERE key = 'version.major'
[Debugger] [DB QUERY] SELECT value FROM options WHERE key = 'version.minor'
[Debugger] [DB UPDATE] CREATE TABLE IF NOT EXISTS session(session_id INTEGER PRIMARY KEY, os_id STRING, version TEXT NOT NULL, user TEXT NOT NULL, start_time INTEGER NOT NULL, end_time INTEGER NOT NULL, warned INTEGER NOT NULL)
[Debugger] [DB UPDATE] CREATE TABLE IF NOT EXISTS event(event_id INTEGER PRIMARY KEY, session_id INTEGER NOT NULL, filename TEXT NOT NULL, event INTEGER NOT NULL, time INTEGER NOT NULL, type INTEGER NOT NULL, previous_event INTEGER, encoding INTEGER NOT NULL, data BLOB)
[Debugger] [DB UPDATE] CREATE INDEX IF NOT EXISTS idx_session1 ON session (start_time)
[Debugger] [DB UPDATE] CREATE INDEX IF NOT EXISTS idx_session2 ON session (end_time)
[Debugger] [DB UPDATE] CREATE INDEX IF NOT EXISTS idx_event1 ON event (session_id, filename)
[Debugger] [DB UPDATE] INSERT INTO session(os_id, version, user, start_time, end_time, warned) values ('', '5.73 beta 4 (x64)', 'francesco', 1605455166, 0, 0)
[Debugger] [HISTORY] Event: 1
[Debugger] [DB QUERY] SELECT session_id, os_id FROM session WHERE end_time = 0 AND warned = 0 ORDER BY start_time DESC
[Debugger] [COMPILER READ] READY
[Debugger] [DB UPDATE] UPDATE session SET version = '5.73 beta 4 (x64)' WHERE session_id = 132
[Debugger] [COMPILER WRITE] FUNCTIONLIST
[Debugger] [COMPILER READ] 1771
[Debugger] [COMPILER ] Skipping display of read data.
[Debugger] [COMPILER WRITE] CONSTANTLIST
[Debugger] [COMPILER READ] 4895
[Debugger] [COMPILER ] Skipping display of read data.
[Debugger] [COMPILER WRITE] STRUCTURELIST
[Debugger] [COMPILER READ] 43
[Debugger] [COMPILER ] Skipping display of read data.
[Debugger] [COMPILER WRITE] INTERFACELIST
[Debugger] [COMPILER READ] 0
[Debugger] [COMPILER ] Skipping display of read data.
[Debugger] [HISTORY] Event: 2
zsh: suspended (signal) ./PureBasic


Hope this tells you guys something...

_________________

I am to provide the public with beneficial shocks.
Alfred Hitshock


Top
 Profile  
Reply with quote  
 Post subject: Re: PB v5.73 Beta 4 crashed or not ???
PostPosted: Mon Nov 16, 2020 10:34 am 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 14178
Location: France
Can you disable the 'History Session' feature in the IDE ?


Top
 Profile  
Reply with quote  
 Post subject: Re: PB v5.73 Beta 4 crashed or not ???
PostPosted: Mon Nov 16, 2020 6:06 pm 
Offline
User
User

Joined: Fri Dec 06, 2013 11:57 am
Posts: 57
Hi,

I wanted to test the Beta 4 in Catalina first, but I had to update my MacBookPro fast today to Big Sur due to problems of a customer (nothing to do with PB), sorry.

I can confirm a crash every time I close the Beta 4 on Big Sur, there is no difference if one or more sources are open or not, it crashes by closing PB Beta 4. Giving PB full hard drive access doesn't change anything.

But not the old problems in starting PB, so the patch of mk-soft seems to work and this now is another problem, so thanks again @mk-soft!

After disabling the "session history" (in german "Sitzungsgeschichte") it doesn't crash any more @Fred.

I'm willing to test or debug anything, if I can help, please let me know.

Greetings from Hoerbie


Top
 Profile  
Reply with quote  
 Post subject: Re: PB v5.73 Beta 4 crashed or not ???
PostPosted: Tue Nov 17, 2020 1:17 am 
Offline
Addict
Addict
User avatar

Joined: Tue Apr 29, 2003 9:18 pm
Posts: 1479
Location: North by Northwest
Fred wrote:
Can you disable the 'History Session' feature in the IDE ?


Done, please see result below.

Prerequisite: File Loaded, Close IDE with no file modification.
Quote:
[Debugger] [COMPILER START] /Applications/PureBasic.app/Contents/Resources/compilers/pbcompiler --standby -f -ibp -ds
[Debugger] [COMPILER READ] STARTING<T>5.73<T>PureBasic 5.73 beta 4 (MacOS X - x64)
[Debugger] TODO GetPanelItemID()
[Debugger] TODO GetPanelItemID()
[Debugger] TODO GetPanelItemID()
[Debugger] TODO GetPanelItemID()
[Debugger] EnsureWindowOnDesktop()
[Debugger] before: 0, 25, 1332, 967
[Debugger] --> on desktop: 0
[Debugger] [COMPILER READ] READY
[Debugger] [COMPILER WRITE] FUNCTIONLIST
[Debugger] [COMPILER READ] 1771
[Debugger] [COMPILER ] Skipping display of read data.
[Debugger] [COMPILER WRITE] CONSTANTLIST
[Debugger] [COMPILER READ] 4895
[Debugger] [COMPILER ] Skipping display of read data.
[Debugger] [COMPILER WRITE] STRUCTURELIST
[Debugger] [COMPILER READ] 43
[Debugger] [COMPILER ] Skipping display of read data.
[Debugger] [COMPILER WRITE] INTERFACELIST
[Debugger] [COMPILER READ] 0
[Debugger] [COMPILER ] Skipping display of read data.
[Debugger] [COMPILER WRITE] END
[Debugger] [COMPILER END]


Prerequisite: File Loaded, Modified, Close IDE without saving file first.
Quote:
[Debugger] [COMPILER START] /Applications/PureBasic.app/Contents/Resources/compilers/pbcompiler --standby -f -ibp -ds
[Debugger] [COMPILER READ] STARTING<T>5.73<T>PureBasic 5.73 beta 4 (MacOS X - x64)
[Debugger] TODO GetPanelItemID()
[Debugger] TODO GetPanelItemID()
[Debugger] TODO GetPanelItemID()
[Debugger] TODO GetPanelItemID()
[Debugger] EnsureWindowOnDesktop()
[Debugger] before: 348, 25, 1332, 967
[Debugger] --> on desktop: 0
[Debugger] [COMPILER READ] READY
[Debugger] [COMPILER WRITE] FUNCTIONLIST
[Debugger] [COMPILER READ] 1771
[Debugger] [COMPILER ] Skipping display of read data.
[Debugger] [COMPILER WRITE] CONSTANTLIST
[Debugger] [COMPILER READ] 4895
[Debugger] [COMPILER ] Skipping display of read data.
[Debugger] [COMPILER WRITE] STRUCTURELIST
[Debugger] [COMPILER READ] 43
[Debugger] [COMPILER ] Skipping display of read data.
[Debugger] [COMPILER WRITE] INTERFACELIST
[Debugger] [COMPILER READ] 0
[Debugger] [COMPILER ] Skipping display of read data.
2020-11-16 15:57:20.170 PureBasic[25763:1070150] Warning: Expected min height of view: (<NSButton: 0x11b85a450>) to be less than or equal to 30 but got a height of 32.000000. This error will be logged once per view in violation.
2020-11-16 15:57:20.173 PureBasic[25763:1070150] Warning: Expected min height of view: (<NSButton: 0x11b856c50>) to be less than or equal to 30 but got a height of 32.000000. This error will be logged once per view in violation.
2020-11-16 15:57:20.174 PureBasic[25763:1070150] Warning: Expected min height of view: (<NSButton: 0x11b84c870>) to be less than or equal to 30 but got a height of 32.000000. This error will be logged once per view in violation.
[Debugger] [COMPILER WRITE] END
[Debugger] [COMPILER END]

_________________

I am to provide the public with beneficial shocks.
Alfred Hitshock


Top
 Profile  
Reply with quote  
 Post subject: Re: PB v5.73 Beta 4 crashed or not ???
PostPosted: Tue Nov 17, 2020 1:22 am 
Offline
Addict
Addict
User avatar

Joined: Tue Apr 29, 2003 9:18 pm
Posts: 1479
Location: North by Northwest
I should mention that the IDE that utilizes the debug version of the purebasic executable file provided by mk-soft:

    1. Does not crash when exiting
    2. Does not exhibit the known 4 character bug in the editor

I tested that file with PB 5.73 beta 4 and PB 5.72.

(normally they crash when exiting...)

_________________

I am to provide the public with beneficial shocks.
Alfred Hitshock


Top
 Profile  
Reply with quote  
 Post subject: Re: PB v5.73 Beta 4 crashed or not ???
PostPosted: Sat Nov 21, 2020 3:29 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Apr 29, 2003 9:18 pm
Posts: 1479
Location: North by Northwest
Just wanted to confirm that the newly released PB 5.73 beta 5 obviously keeps on having the same behaviour.
(as this issue was not addressed yet...)

_________________

I am to provide the public with beneficial shocks.
Alfred Hitshock


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users 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

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye