fbs icon indicating copy to clipboard operation
fbs copied to clipboard

Mac fbs dmg doesn't execute when using QtWebEngine - Could not find QtWebEngineProcess

Open Vyeadiai opened this issue 4 years ago • 3 comments

We've been using fbs to package our company's app and it works great!

However we just added the a library to embed a browser in our PySide2/QtQuick app: QtWebEngine 1.8

On a Mac, fbs 'freezes' and creates installer just fine, but when launching that application after installing the DMG created by fbs, there is an error message and the app fails to execute.

Could not find QtWebEngineProcess Abort trap: 6

I removed that library and the app worked just fine, so I know the issue is that library.

I dug around and found this ticket in the PyInstaller repo https://github.com/pyinstaller/pyinstaller/issues/4260

And in this saw a comment from the main contributor of PyInstaller Bryan Jones:

On a Mac, the QtWebEngine requires building with --windowed.

How would one do this using fbs, adding the --windowed option so that this issue can be resolved?

Thank you for fbs!

Vyeadiai avatar Aug 14 '19 18:08 Vyeadiai

Hi Edwin,

I'm happy to hear you're finding fbs useful. I remember we were in touch some time ago, where Bryan Jones and I fixed some bugs you encountered (eg. #101).

Forgive me, but you write you're using fbs to package your company's app. In May, you said you were considering purchasing a license for fbs. But I can't find a purchase from you in my records. Are you in compliance with fbs's open source GPL license? If not, could I ask you to purchase a license before we continue this discussion?

Thanks, Michael

mherrmann avatar Aug 16 '19 07:08 mherrmann

Thank you for purchasing a license. Regarding your question:

How would one do this using fbs, adding the --windowed option so that this issue can be resolved?

By default, fbs freeze does pass the --windowed option. It only does not pass it if 1) you do fbs freeze --debug or 2) if you've set show_console_window to true in the settings files base.json or mac.json.

So, if you don't do either 1) or 2), then fbs should already pass --windowed and (I'm afraid) it won't be the solution to your problem.

Generally, the error Could not find QtWebEngineProcess sounds to me like it's a path issue. I'm surprised it's related to --windowed at all. I think I'd download Qt's C++ source code and grep for this error message, to see what can cause it.

mherrmann avatar Aug 21 '19 08:08 mherrmann

I also find this problem in my application on Mac client , I successfuly build in windows 10 But not in Mac. I used this order pyinstaller --onefile --icon=/Users/duc/Desktop/pis.icns --windowed --clean PIS.py

PyInstaller==4.0.dev0+46286a1f4 PyQt5==5.13.0 PyQtWebEngine==5.13.0

Befor For Test I removed the import PyQt5.QtWebEngineWidgets and other codes It's all done good ...

Did Some One find the same problem like i meet ? Any Suggestions Please Guys......

shuaiyinoo avatar Aug 23 '19 05:08 shuaiyinoo