macmade / QEMU-Manager

macOS graphical frontend to QEMU
https://xs-labs.com/en/apps/qemu-manager/
GNU General Public License v3.0
318 stars 21 forks source link

"task not launched" errors #3

Closed jeff-h closed 9 months ago

jeff-h commented 3 years ago

I built this myself and have been getting "task not launched" errors. I'm wondering if you have ever had these, or might have any thoughts as to what could be causing them?

It's really very odd; attempts to access the process.terminationStatus are resulting in the "task not launched" error. Clearly the process is launched and should waitUntilExit. What's most odd is that I added the following debugging code, and the error went away.

try ObjC.catchException
{
    process.launch()
    process.waitUntilExit()
    let _ = process.terminationStatus
}

Unfortunately this only got me past the launch crash. I was able to create a VM but when I double click it in the "QEMU Library" window, I get the error again, and was unable to easily find the code causing it.

image
ltecheroffical commented 9 months ago

That one bug is one that is hard to track down

rwbutler commented 9 months ago

@jeff-h @ltecheroffical I believe that ObjC.catchException accepts a NSError in addition to the block which has been supplied. I suspect if you check that error which is returned you would discover that the process could not be launched (possibly because it cannot be found).

waitUntilExit does nothing in this case as the process hasn't been launched. Checking the terminationStatus results in the "task not launched" error because indeed in this case the task not been launched.

ltecheroffical commented 9 months ago

@rwbutler Maybe it's a good idea to use a direct path but once it is corrected it shows "launch path not accessible"

ltecheroffical commented 9 months ago

We can use the system install of qemu to get it working. My suggestion is add a settings pane that you can use to configure settings of the application as well as the qemu path and link the qemu website in case it isn't installed

ltecheroffical commented 9 months ago

I fixed the issue by using a direct path, but that won't work assuming so a settings menu is peferred

macmade commented 9 months ago

You may want to check this: https://github.com/macmade/QEMU-Manager/issues/9

ltecheroffical commented 9 months ago

You may want to check this: #9

I would recommend not forcing users to build the project so when it is finished we can use the releases, not be forced to build from source. Allowing users to set binaries without rebuilding the project works better and the app is lacking a settings menu and that could be helpful as well.

macmade commented 9 months ago

You may want to check this: #9

I would recommend not forcing users to build the project so when it is finished we can use the releases, not be forced to build from source. Allowing users to set binaries without rebuilding the project works better and the app is lacking a settings menu and that could be helpful as well.

Well, this is an open source project, so I would recommend you contribute if you have recommendations.

macmade commented 9 months ago

GitHub is not a marketplace for apps, nor a tech support site. This is a personal, ongoing project.

if something is not good for you, you can fork and modify, or find another project.