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

Input.output error with multiprocessing #65628

Closed
mikaela mannequin opened this issue May 4, 2014 · 6 comments
Closed

Input.output error with multiprocessing #65628

mikaela mannequin opened this issue May 4, 2014 · 6 comments
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@mikaela
Copy link
Mannequin

mikaela mannequin commented May 4, 2014

BPO 21429
Nosy @ezio-melotti, @progval, @applio

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2015-04-11.14:43:39.712>
created_at = <Date 2014-05-04.16:24:51.084>
labels = ['type-bug', 'library']
title = 'Input.output error with multiprocessing'
updated_at = <Date 2016-10-17.15:40:27.726>
user = 'https://bugs.python.org/mikaela'

bugs.python.org fields:

activity = <Date 2016-10-17.15:40:27.726>
actor = 'Florijan Hamzic'
assignee = 'none'
closed = True
closed_date = <Date 2015-04-11.14:43:39.712>
closer = 'davin'
components = ['Library (Lib)']
creation = <Date 2014-05-04.16:24:51.084>
creator = 'mikaela'
dependencies = []
files = []
hgrepos = []
issue_num = 21429
keywords = []
message_count = 6.0
messages = ['217880', '219152', '221861', '235589', '240480', '278810']
nosy_count = 6.0
nosy_names = ['ezio.melotti', 'Valentin.Lorentz', 'sbt', 'mikaela', 'davin', 'Florijan Hamzic']
pr_nums = []
priority = 'normal'
resolution = 'out of date'
stage = None
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue21429'
versions = ['Python 3.4']

@mikaela
Copy link
Mannequin Author

mikaela mannequin commented May 4, 2014

I encountered this error with Limnoria and I was told to report it here.

ERROR 2014-05-04T18:04:04 supybot Uncaught exception in ['title'].
Traceback (most recent call last):
File "/home/users/mkaysi/.local/lib/python3.4/site-packages/supybot/callbacks.py", line 1266, in _callCommand
self.callCommand(command, irc, msg, *args, **kwargs)
File "/home/users/mkaysi/.local/lib/python3.4/site-packages/supybot/utils/python.py", line 91, in g
f(self, *args, **kwargs)
File "/home/users/mkaysi/.local/lib/python3.4/site-packages/supybot/callbacks.py", line 1247, in callCommand
method(irc, msg, *args, **kwargs)
File "/home/users/mkaysi/.local/lib/python3.4/site-packages/supybot/commands.py", line 1076, in newf
f(self, irc, msg, args, *state.args, **state.kwargs)
File "/home/users/mkaysi/.local/lib/python3.4/site-packages/supybot/plugins/Web/plugin.py", line 109, in newf
f(self, irc, *args, **kwargs)
File "/home/users/mkaysi/.local/lib/python3.4/site-packages/supybot/plugins/Web/plugin.py", line 96, in newf
pn=self.name(), cn=f.__name__)
File "/home/users/mkaysi/.local/lib/python3.4/site-packages/supybot/commands.py", line 120, in process
p.start()
File "/home/users/mkaysi/.pyenv/versions/3.4.0/lib/python3.4/multiprocessing/process.py", line 105, in start
self._popen = self._Popen(self)
File "/home/users/mkaysi/.pyenv/versions/3.4.0/lib/python3.4/multiprocessing/context.py", line 212, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
File "/home/users/mkaysi/.pyenv/versions/3.4.0/lib/python3.4/multiprocessing/context.py", line 267, in _Popen
return Popen(process_obj)
File "/home/users/mkaysi/.pyenv/versions/3.4.0/lib/python3.4/multiprocessing/popen_fork.py", line 18, in __init__
sys.stdout.flush()
OSError: [Errno 5] Input/output error
ERROR 2014-05-04T18:04:04 supybot Exception id: 0xaaefe

@mikaela mikaela mannequin added the stdlib Python modules in the Lib dir label May 4, 2014
@ezio-melotti
Copy link
Member

Can you provide more information about the error (e.g. the relevant piece of code where the error generates, if you can reproduce it every time or if it's sporadic, a minimal piece of code that can reproduce the same issue, etc.)?
I would also suggest to report this to the supybot issue tracker if the affected code is not specific to Limnoria.

@ezio-melotti ezio-melotti added the type-bug An unexpected behavior, bug, or error label May 26, 2014
@progval
Copy link
Mannequin

progval mannequin commented Jun 29, 2014

The relevant piece of code: https://github.com/ProgVal/Limnoria/blob/master/plugins/Web/plugin.py#L85

commands.process is defined here: https://github.com/ProgVal/Limnoria/blob/master/src/commands.py#L76

callbacks.CommandProcess is defined at https://github.com/ProgVal/Limnoria/blob/master/src/callbacks.py#L1037 (SupyThread is a small subclass of threading.Thread, which increments a count on initialization)

@applio
Copy link
Member

applio commented Feb 9, 2015

The provided links to the relevant code are unfortunately pointing at the master branch's copy of those files and not a specific version of the code making it that much harder to now discern where the issue arises. (A number of things have changed in the master branch since this issue was first reported.)

Can Mikaela or Valentin or others provide a minimal piece of code that can still reproduce the issue?

Without more information, it appears it will be very difficult to try to reproduce or effectively investigate this issue further. If the issue is no longer reproducible, such an update would also very much be appreciated.

@applio
Copy link
Member

applio commented Apr 11, 2015

Closing this stale issue as out of date with no response from OP since request months ago for enough info to be able to proceed.

@applio applio closed this as completed Apr 11, 2015
@FlorijanHamzic
Copy link
Mannequin

FlorijanHamzic mannequin commented Oct 17, 2016

Hi,

i have a similiar issue:

i have a really simple scenario

Callee:

@classmethod
def MoveDataToOtherSide(cls, model)
data = {
            "FirstName": model.FirstName,
            "LastName": model.LastName,
            "Email": model.Email,
            "Pass": model.Password,
            "Images": cls.LoadUserImages(model.ID)
        }

        p = Process(target=UserService.MoveProfileToOtherSide, kwargs={"data": data})
        p.start()

Processeee

@staticmethod
    def MoveProfileToOtherSide(data): requests.get("https://mySecretUrl.de", params={"token": "secBlub", "data": encode(data, unpicklable=False)})

I think it has something todo with stdout but i have no clue how i could debug this further, unfortunetely.

The Application around this functionality (UserService) is cherrypy.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants