Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opening two or more instances reveals exception #54

Open
VoxelDoesCode opened this issue Oct 6, 2023 · 3 comments
Open

Opening two or more instances reveals exception #54

VoxelDoesCode opened this issue Oct 6, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@VoxelDoesCode
Copy link

When you open two or more instances of Fontra Pak, you're met with an exception. The error window can be easily closed and opening files works perfectly on all Fontra Pak windows. Have not tested for editing .ufo files on multiple instances yet.

Unhandled Exception in script

Failed to execute script 'FontraPakMain' due to unhandled exception: 'NoneType' has no attribute 'write'

Traceback (most recent call last):
  File "multiprocessing\process.py", line 314, in _bootstrap
  File "multiprocessing\process.py", line 108, in run
  File "FontraPakMain.py", line 155, in runFontraServer
  File "fontra\core\server.py", line 110, in run
    web.run_app(self.httpApp, host=host, port=httpPort)
  File "aiohttp\web.py", line 516, in run_app
  File "asyncio\base_events.py", line 649, in run_until_complete
  File "aiohttp\web.py", line 415, in _run_app
  File "aiohttp\web_runner.py", line 121, in start
  File "asyncio\base_events.py", line 1519, in create_server
OSError: [Errno 10048] error while attempting to bind on address ('::1', 8000, 0, 0): only one usage of each socket address (protocol/network address/port) is normally permitted

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "FontraPakMain.py", line 181, in <module>
  File "Lib\site-packages\PyInstaller\hooks\rthooks\pyi_rth_multiprocessing.py", line 52, in _freeze_support
  File "multiprocessing\spawn.py", line 116, in spawn_main
  File "multiprocessing\spawn.py", line 129, in _main
  File "multiprocessing\process.py", line 329, in _bootstrap
AttributeError: 'NoneType' object has no attribute 'write'

OS Info:

Edition: Windows 10 Education
Version: 22H2
Installed on: 3/‎1/‎2023
OS build: 19045.3448
Experience: Windows Feature Experience Pack 1000.19044.1000.0

@justvanrossum
Copy link
Collaborator

Ah, interesting. It should find a free port, but apparently the code for that doesn't work on Windows.

I wonder, though, why do you start two instances in the first place?

@justvanrossum justvanrossum added the bug Something isn't working label Oct 6, 2023
@justvanrossum justvanrossum self-assigned this Oct 6, 2023
@VoxelDoesCode
Copy link
Author

why do you start two instances in the first place?

Because I forgot I already had one open. I should remember closing a Fontra browser tab and closing the Fontra Pak executable are two different things. My mistake, simply.

@justvanrossum
Copy link
Collaborator

To me it is interesting that that is even possible... Thanks for the report, I'll try to fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants