Title: Application crash on macOS after closing the Py-QT5 window. · Issue #409 · lmbelo/python4delphi · GitHub
Open Graph Title: Application crash on macOS after closing the Py-QT5 window. · Issue #409 · lmbelo/python4delphi
X Title: Application crash on macOS after closing the Py-QT5 window. · Issue #409 · lmbelo/python4delphi
Description: Hello. There is a big problem with macOS Ventura 13.1. I've made the simplest app for macOS 64-bit - one Form, one Button. It executes a very simple python script. Everything works fine, but after closing the chart window, the applicatio...
Open Graph Description: Hello. There is a big problem with macOS Ventura 13.1. I've made the simplest app for macOS 64-bit - one Form, one Button. It executes a very simple python script. Everything works fine, but after ...
X Description: Hello. There is a big problem with macOS Ventura 13.1. I've made the simplest app for macOS 64-bit - one Form, one Button. It executes a very simple python script. Everything works fine, but af...
Opengraph URL: https://github.com/lmbelo/python4delphi/issues/409
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Application crash on macOS after closing the Py-QT5 window.","articleBody":"Hello.\r\nThere is a big problem with macOS Ventura 13.1.\r\nI've made the simplest app for macOS 64-bit - one Form, one Button. It executes a very simple python script. \r\n\r\nEverything works fine, but after closing the chart window, the application crashes with a message in a PAServer:\r\n`objc_disposeClassPair: class 'FMXWindow' still has subclasses, including 'NSKVONotifying_FMXWindow’!`\r\n\r\nIn larger projects, the effect is stranger. What can be done to solve this problem?\r\n\r\nP.S. It is also interesting that after running the script, the application icon changes to the Matplotlib icon.\r\n\r\n```\r\nunit MainUnit;\r\ninterface\r\nuses\r\n PythonEngine,\r\n System.Classes,\r\n FMX.Forms, FMX.Controls, FMX.Controls.Presentation, FMX.StdCtrls, FMX.Types;\r\n\r\ntype\r\n TFormMain = class(TForm)\r\n ButtonRun: TButton;\r\n procedure FormCreate(Sender: TObject);\r\n procedure ButtonRunClick(Sender: TObject);\r\n private\r\n py: TPythonEngine;\r\n end;\r\n\r\nvar\r\n FormMain: TFormMain;\r\n\r\nimplementation\r\n{$R *.fmx}\r\n\r\nprocedure TFormMain.FormCreate(Sender: TObject);\r\nbegin\r\n // Create python engine\r\n py := TPythonEngine.Create(Self);\r\n py.UseLastKnownVersion := True;\r\n py.FatalAbort := False;\r\n py.FatalMsgDlg := False;\r\n // Load DLL\r\n py.LoadDll;\r\nend;\r\n\r\nprocedure TFormMain.ButtonRunClick(Sender: TObject);\r\nbegin\r\n // Simple script, that uses matplotlib and Py-QT5\r\n var s: ANSIString := 'import matplotlib.pyplot as plt'#10\r\n + 'plt.plot([1.6, 2.7])'#10\r\n + 'plt.show()';\r\n py.ExecString(s);\r\nend;\r\n\r\nend.\r\n```\r\n","author":{"url":"https://github.com/HawaiAl","@type":"Person","name":"HawaiAl"},"datePublished":"2023-02-03T12:46:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/409/python4delphi/issues/409"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b2487161-1893-4a9d-9ee6-b9371ccd153f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EC58:11104D:6D1C2A:9C4E65:6A59E9E3 |
| html-safe-nonce | 9368e419e624a46385d0e65e8edfac1eed85f68dae6c6bfd20f4ed5afffdabdb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzU4OjExMTA0RDo2RDFDMkE6OUM0RTY1OjZBNTlFOUUzIiwidmlzaXRvcl9pZCI6IjM4NDk5NDQ3OTgyODAxNDk0NzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 123bf146f7818ace2717bfa23e60c57bc9bb5365a67caf553cc9e7fa7e70dc4f |
| hovercard-subject-tag | issue:1569789327 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/lmbelo/python4delphi/409/issue_layout |
| twitter:image | https://opengraph.githubassets.com/57668b3e8a992374b619040149d0ec73e1944e820b398b2ec5ac51a648fceff1/lmbelo/python4delphi/issues/409 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/57668b3e8a992374b619040149d0ec73e1944e820b398b2ec5ac51a648fceff1/lmbelo/python4delphi/issues/409 |
| og:image:alt | Hello. There is a big problem with macOS Ventura 13.1. I've made the simplest app for macOS 64-bit - one Form, one Button. It executes a very simple python script. Everything works fine, but after ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | HawaiAl |
| hostname | github.com |
| expected-hostname | github.com |
| None | ba3976babb66479b1c943a8edc0777d96157da48fadc0161f9ddb219deee8353 |
| turbo-cache-control | no-preview |
| go-import | github.com/lmbelo/python4delphi git https://github.com/lmbelo/python4delphi.git |
| octolytics-dimension-user_id | 8376898 |
| octolytics-dimension-user_login | lmbelo |
| octolytics-dimension-repository_id | 41310993 |
| octolytics-dimension-repository_nwo | lmbelo/python4delphi |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 41310993 |
| octolytics-dimension-repository_network_root_nwo | lmbelo/python4delphi |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 32bf0b7849e1b6561059cca2cb03568251960859 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width