Opened 7 weeks ago

Last modified 7 hours ago

#59781 assigned defect

py37-pyobjc: Bus error: 10

Reported by: mf2k (Frank Schima) Owned by: danchr (Dan Villiom Podlaski Christiansen)
Priority: Normal Milestone:
Component: ports Version: 2.6.99
Keywords: catalina Cc: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), reneeotten (Renee Otten)
Port: py-pyobjc py-spyder py-spyder-devel

Description

I see the following error when attempting to launch py37-spyder-devel. Any ideas?

$ /opt/local/bin/spyder-3.7
Bus error: 10
$ port installed | grep spyder
  py37-spyder-devel @3.3.0-201901128_0 (active)
  py37-spyder-kernels-devel @1.8.0_0 (active)
  spyder_select @0.1_0 (active)

On Catalina with Xcode 11.2.1.

Change History (18)

comment:1 Changed 7 weeks ago by reneeotten (Renee Otten)

Cc: MarcusCalhoun-Lopez added

hi Frank,

I don't see that error... but I am still on Mojave and Xcode 10.3 - don't know if that makes a difference. I suppose this did not happen before I upgraded to the latest commit on 201901128? I'll have a look if there's anything that could cause this - one big(ger) change is a few new dependencies in that last version.

If you haven't tried yet, can you please (1) run spyder-3.7 --reset, please note that this will reset the configuration to its defaults; just in case you have some leftover, conflicting stuff, and after that start Spyder with verbose output so that we can see where the error happens (spyder-3.7 --debug-info verbose)?

I am not sure if this bus error: 10 is related to dbus, which would be a first guess. I do notice that our dbus-python is quite a bit out-of-date:

> port -v livecheck dbus-python
dbus-python seems to have been updated (port version: 1.2.8, new version: 1.2.14)

Marcus: is there a reason that you haven't updated this port yet or, if not, could you do so?

comment:2 Changed 7 weeks ago by mf2k (Frank Schima)

Hmm. No go.

$ spyder-3.7 --reset
Bus error: 10

comment:3 Changed 7 weeks ago by mf2k (Frank Schima)

Also,

$ spyder-3.7 --debug-info verbose
Bus error: 10

comment:4 Changed 7 weeks ago by mf2k (Frank Schima)

Installing py37-spyder works.

comment:5 Changed 7 weeks ago by mf2k (Frank Schima)

I opened #59797 for dbus-python.

comment:6 in reply to:  5 ; Changed 7 weeks ago by reneeotten (Renee Otten)

Replying to mf2k:

I opened #59797 for dbus-python.

It probably doesn't hurt to update that port, but I can't tell if that's actually the issue. spyder-devel now also uses some of the py-pyobjc frameworks through its dependency py-applaunchservices, that could be another possibility...

So do you mean with your comments above that whatever you try as command-line arguments to spyder-3.7 it already throws a Bus error before actually giving any output? Also, when did this exactly start - already with this commit or only after the latest update, that would be useful information. Otherwise, it's probably best to open a bug report upstream, so far I cannot reproduce it.

BTW, I don't see any commits upstream that would be candidates to resolve this, but I'll try and update to the latest commit tomorrow and you can give it a try.

Last edited 7 weeks ago by reneeotten (Renee Otten) (previous) (diff)

comment:7 in reply to:  6 ; Changed 7 weeks ago by mf2k (Frank Schima)

Replying to reneeotten:

So do you mean with your comments above that whatever you try as command-line arguments to spyder-3.7 it already throws a Bus error before actually giving any output?

Yes

Also, when did this exactly start - already with this commit or only after the latest update, that would be useful information.

I noticed it about when I opened the ticket.

comment:8 in reply to:  7 Changed 7 weeks ago by reneeotten (Renee Otten)

Replying to mf2k:

Also, when did this exactly start - already with this commit or only after the latest update, that would be useful information.

I noticed it about when I opened the ticket.

Sure, but that doesn't answer my question. Please downgrade to this commit and see if the problem is still there.

comment:9 Changed 6 weeks ago by reneeotten (Renee Otten)

Frank, I updated the port and some of its dependencies. I don't see anything obvious that would resolve the issue you're having, but please try to update. Also, it might be worthwhile to remove the configuration directory manually (it should be ~/.spyder4-37-dev or something similar).

comment:10 Changed 5 weeks ago by reneeotten (Renee Otten)

Frank, can you try again as Marcus has updated the dbus-python port to their latest version and comment here on how that goes? I hope this resolves it as I am planning to update py-spyder to the 4.0 release in the next few days. I personally have no interest in keeping version 3 around, but it would be nice if these issues are resolved before doing so!

comment:11 Changed 5 weeks ago by mf2k (Frank Schima)

I am still seeing this issue on Catalina 10.15.2 and Xcode 11.3.

comment:12 in reply to:  11 Changed 5 weeks ago by reneeotten (Renee Otten)

Replying to mf2k:

I am still seeing this issue on Catalina 10.15.2 and Xcode 11.3.

Then I have unfortunately no other ideas. I cannot reproduce this issue as I'm not using Catalina and there seems to be no useful debug information to see where the issue originates from.

I would still like you to go back to the last commit that didn't use py-pybojc as a dependency (see reference above) and see if everything is still fine there - that would potentially a clue. One other thing that would perhaps be worth trying is to make a virtualenv and install Spyder 4 through pip and see if that all works as intended (or using conda for that matter. If there are no issues there, it must be somewhere with a package in MacPorts, otherwise it's for sure an upstream problem.

comment:13 Changed 7 days ago by mf2k (Frank Schima)

Keywords: catalina added
Port: py-spyder added

Now both py37-spyder and py37-spyder-devel fail with the same bus error on Catalina.

$ port installed py37-spyder*
The following ports are currently installed:
  py37-spyder @4.0.1_0 (active)
  py37-spyder-kernels @1.8.1_0 (active)

comment:14 in reply to:  13 Changed 45 hours ago by reneeotten (Renee Otten)

Replying to mf2k:

Now both py37-spyder and py37-spyder-devel fail with the same bus error on Catalina.

Yes, that was unfortunately kind of expected... I still cannot reproduce it so it has to be something Catalina specific I am afraid. In other words, your help (or someone else who runs into this) in debugging this will be required.

One culprit could be py-objc and it's use by py-applaunchservices; it seems that around the addition of these dependencies the trouble started. Can you try and import these packages in Python 3.7 and see what happens? Running it in a debugger might be able as well to provide more information that can be send upstream once we figure out which package is actually causing this.

comment:15 Changed 36 hours ago by mf2k (Frank Schima)

Indeed, attempting to import both of those in ipython causes a bus error 10.

comment:16 Changed 35 hours ago by reneeotten (Renee Otten)

Cc: reneeotten added
Owner: changed from reneeotten to danchr
Port: py-pyobjc added
Summary: py37-spyder-devel: Bus error: 10py37-pyobjc: Bus error: 10

Perhaps related to this upstream report?

Okay, so it turns out the error is actually caused by py-pyobjc, @danchr any ideas?

comment:17 Changed 8 hours ago by NeilBowles

Same problem here running Spyder 4.0 under Catalina. I've tried to re-installing the py-objc and py37-spyder ports from source to see if this fixes but no luck - same error.

comment:18 Changed 7 hours ago by danchr (Dan Villiom Podlaski Christiansen)

Could you please check whether you can reproduce the bug in a virtual environment with pip-installed packages? That would tell us whether it’s a bug in the packaging or a bug in pyobjc proper.

Note: See TracTickets for help on using tickets.