| Ticket UUID: | 0e044bb966ab65e2aed9ca8bfb69fb0f06e2661e | |||
| Title: | Tk_getSaveFile crash with null extension on MacOS 10.13 | |||
| Type: | Bug | Version: | 8.6.10 | |
| Submitter: | jal_frezie | Created on: | 2020-10-12 15:19:27 | |
| Subsystem: | 37. [tk_get*File] | Assigned To: | marc_culler | |
| Priority: | 5 Medium | Severity: | Severe | |
| Status: | Closed | Last Modified: | 2020-10-16 15:22:19 | |
| Resolution: | Fixed | Closed By: | marc_culler | |
| Closed on: | 2020-10-16 15:22:19 | |||
| Description: |
Built TclTk core_8_6_branch on an up-to-date Mac with Xcode 12.0 choosing minimum target version of 10.13.
Moved the build to a machine running 10.13.6 (in VirtualBox) and it crashes when opening dialogue for tk_getSaveFile with null extension, e.g.,
tk_getSaveFile -title {Pipe/socket for submodel I/O:} -defaultextension {} -filetypes {{Directories {}} {{All files} *}} -initialdir /Users/jaspert/Documents/Models -message {Pipe/socket for submodel I/O:} -initialfile pipe
Log file attached.
| |||
| User Comments: |
marc_culler (claiming to be Marc Culler) added on 2020-10-16 15:22:19:
Hmmm. No response. I guess this must be OK now so I am closing the ticket. Feel free to reopen it if the problem resurfaces. marc_culler (claiming to be Marc Culler) added on 2020-10-12 17:08:00: @jal_frezie: can you please test branch bug-0e044bb966 and see if that works better? Apple says that an exception is raised if the allowedFileTypes array is empty, but maybe they don't really do that anymore. Anyway, the bug-fix branch attempts to make sure that doesn't happen. marc_culler (claiming to be Marc Culler) added on 2020-10-12 15:53:10: This an abort due to invalid arguments. The crash report pinpoints it: 'NSInvalidArgumentException', reason: 'File types array cannot be empty' I wonder what this has to do with 10.13. Maybe Apple allows the array to be empty for newer OS versions but not 10.13? I just pasted your command into Wish on Big Sur and there was no crash. | |||
Attachments:
- dlgerror.txt [download] added by jal_frezie on 2020-10-12 15:21:00. [details]
