{"action":"opened","issue":{"url":"https://api.github.com/repos/pharo-project/pharo-launcher/issues/257","repository_url":"https://api.github.com/repos/pharo-project/pharo-launcher","labels_url":"https://api.github.com/repos/pharo-project/pharo-launcher/issues/257/labels{/name}","comments_url":"https://api.github.com/repos/pharo-project/pharo-launcher/issues/257/comments","events_url":"https://api.github.com/repos/pharo-project/pharo-launcher/issues/257/events","html_url":"https://github.com/pharo-project/pharo-launcher/issues/257","id":364466319,"node_id":"MDU6SXNzdWUzNjQ0NjYzMTk=","number":257,"title":"PharoLauncher problem starting Images","user":{"login":"eilx2","id":25432429,"node_id":"MDQ6VXNlcjI1NDMyNDI5","avatar_url":"https://avatars2.githubusercontent.com/u/25432429?v=4","gravatar_id":"","url":"https://api.github.com/users/eilx2","html_url":"https://github.com/eilx2","followers_url":"https://api.github.com/users/eilx2/followers","following_url":"https://api.github.com/users/eilx2/following{/other_user}","gists_url":"https://api.github.com/users/eilx2/gists{/gist_id}","starred_url":"https://api.github.com/users/eilx2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eilx2/subscriptions","organizations_url":"https://api.github.com/users/eilx2/orgs","repos_url":"https://api.github.com/users/eilx2/repos","events_url":"https://api.github.com/users/eilx2/events{/privacy}","received_events_url":"https://api.github.com/users/eilx2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-27T13:04:05Z","updated_at":"2018-09-27T13:04:05Z","closed_at":null,"author_association":"NONE","body":"Every time I try to start an image from PharoLauncher I get the error:\r\n\r\n\"PrimitiveFailed: primite #isRunning in ProcessWrapper class failed\"\r\n\r\nHere is execution stack:\r\n`Author: Marcel\r\n\r\nProcessWrapper class(Object)>>primitiveFailed:\r\nProcessWrapper class(Object)>>primitiveFailed\r\nProcessWrapper class>>isRunning:\r\nProcessWrapper>>isRunning\r\nProcessWrapper>>ExecuteUnOptimizedIn:\r\nProcessWrapper class(Object)>>mustBeBooleanInMagic:\r\nProcessWrapper class(Object)>>mustBeBoolean\r\nProcessWrapper>>waitForExit\r\n[ :processWrapperClass | \r\n^ (processWrapperClass new\r\n\tuseStderr;\r\n\twaitForExit;\r\n\tstartWithShellCommand: aCommand;\r\n\tyourself) stderrStream atEnd ] in PhLProcessWrapper class>>isCommandAvailable:\r\nBlockClosure>>cull:\r\nSystemDictionary(Dictionary)>>at:ifPresent:\r\nSmalltalkImage>>at:ifPresent:\r\nPhLProcessWrapper class>>isCommandAvailable:\r\nPhLVirtualMachineManager class>>canUseSytemZip\r\nPhLVirtualMachineManager class>>unzip:to:\r\n[ | targetFile |\r\ntargetFile := self privateVmStore\r\n\t/ (self imageFormatNumber asString , '.zip').\r\nPhLDownloadManager default\r\n\tdownload: self compatibleVmUrl\r\n\ttoFile: targetFile.\r\nself class\r\n\tunzip: targetFile\r\n\tto: self privateVmStore / self imageFormatNumber asString ] in PhLVirtualMachineManager>>fetchCompatibleVm\r\nBlockClosure>>on:do:\r\nPhLVirtualMachineManager>>fetchCompatibleVm\r\n[ | vmPath |\r\nself fetchCompatibleVm.\r\nvmPath := self availableVirtualMachinesByImageFormat\r\n\tat: self imageFormatNumber asString ] in PhLVirtualMachineManager>>compatibleVm\r\nDictionary>>at:ifAbsent:\r\nPhLVirtualMachineManager>>compatibleVm\r\n[ :stream | \r\nstream << 'cd \"' << self compatibleVm executableFolderPath << '\" && '.\r\nSmalltalk os isUnix\r\n\tifTrue: [ stream << 'export SQUEAK_PLUGINS=\"\" && ' ].\r\nstream << $\" << self compatibleVm executablePath << $\"\r\n\t<<\r\n\t\t(Smalltalk os isUnix\r\n\t\t\tifTrue: [ ' --nodisplay ' ]\r\n\t\t\tifFalse: [ ' --headless ' ]) << $\"\r\n\t<< imageFile fullName utf8Encoded asString << '\" '.\r\nshouldUsePreferences\r\n\tifFalse: [ stream << '--no-default-preferences ' ].\r\nstream << 'eval ' << $\" << self imageVersionFileCreationInstructions\r\n\t<< $\" ] in PhLVirtualMachineManager>>imageVersionCommandWithPreferences:\r\nString class(SequenceableCollection class)>>new:streamContents:\r\nString class(SequenceableCollection class)>>streamContents:\r\nPhLVirtualMachineManager>>imageVersionCommandWithPreferences:\r\nPhLVirtualMachineManager>>imageVersionCommand\r\n[ self imageVersionFromFileWith: self imageVersionCommand ] in [ \"no version file, generate it\"\r\n[ self imageVersionFromFileWith: self imageVersionCommand ]\r\n\ton: PhLImageVersionDeterminationError\r\n\tdo:\r\n\t\t[ \"Command probably failed, try to run without --no-default-preferences option (not available in Pharo 2)\"\r\n\t\tself\r\n\t\t\timageVersionFromFileWith: (self imageVersionCommandWithPreferences: true) ] ] in PhLVirtualMachineManager>>imageVersion\r\nBlockClosure>>on:do:\r\n[ \"no version file, generate it\"\r\n[ self imageVersionFromFileWith: self imageVersionCommand ]\r\n\ton: PhLImageVersionDeterminationError\r\n\tdo:\r\n\t\t[ \"Command probably failed, try to run without --no-default-preferences option (not available in Pharo 2)\"\r\n\t\tself\r\n\t\t\timageVersionFromFileWith: (self imageVersionCommandWithPreferences: true) ] ] in PhLVirtualMachineManager>>imageVersion\r\nBlockClosure>>cull:\r\nContext>>evaluateSignal:\r\nContext>>handleSignal:\r\nPhLImageVersionDeterminationError(Exception)>>signal\r\nPhLImageVersionDeterminationError(Exception)>>signal:\r\nPhLImageVersionDeterminationError class(Exception class)>>signal:\r\n[ PhLImageVersionDeterminationError\r\n\tsignal:\r\n\t\t('Cannot determine image version: image version file \"{1}\" not found!'\r\n\t\t\tformat: {self imageVersionFile pathString}) ] in PhLVirtualMachineManager>>imageVersionFromFile\r\nFalse>>ifTrue:ifFalse:\r\nFileReference(AbstractFileReference)>>readStreamDo:ifAbsent:\r\nPhLVirtualMachineManager>>imageVersionFromFile\r\n[ self imageVersionFromFile ] in PhLVirtualMachineManager>>imageVersion\r\nBlockClosure>>on:do:\r\nPhLVirtualMachineManager>>imageVersion\r\nPhLVirtualMachineManager>>vmFileName\r\n[ :bar | \r\nbar label: 'Determining Image version'.\r\nvm := self availableVirtualMachines\r\n\tat: self vmFileName\r\n\tifAbsent: [ bar\r\n\t\t\tlabel: 'Fetching VM to run Pharo ' , self imageVersion , ' images';\r\n\t\t\tcurrent: 25.\r\n\t\tself fetchVm.\r\n\t\tvm := self availableVirtualMachines at: self vmFileName.\r\n\t\tbar\r\n\t\t\tlabel: 'Fetching sources files for Pharo ' , self imageVersion;\r\n\t\t\tcurrent: 50.\r\n\t\tself fetchSourcesFiles.\r\n\t\tbar\r\n\t\t\tlabel: 'Running the image';\r\n\t\t\tcurrent: 100.\r\n\t\tvm ] ] in PhLVirtualMachineManager>>vm\r\n[ :bar | aBlock value: bar ] in MorphicUIManager>>informUserDuring:\r\nBlockClosure>>cull:\r\n[ ^ block cull: self ] in [ self prepareForRunning.\r\nCurrentJob value: self during: [ ^ block cull: self ] ] in Job>>run\r\n[ activeProcess psValueAt: index put: anObject.\r\naBlock value ] in CurrentJob(DynamicVariable)>>value:during:\r\nBlockClosure>>ensure:\r\nCurrentJob(DynamicVariable)>>value:during:\r\nCurrentJob class(DynamicVariable class)>>value:during:\r\n[ self prepareForRunning.\r\nCurrentJob value: self during: [ ^ block cull: self ] ] in Job>>run\r\nBlockClosure>>ensure:\r\nJob>>run\r\nMorphicUIManager(UIManager)>>displayProgress:from:to:during:\r\nMorphicUIManager>>informUserDuring:\r\nPhLVirtualMachineManager>>vm\r\n[ | vmCommand |\r\nvmCommand := (PhLVirtualMachineManager forImage: file pathString) vm.\r\n^ PhLProcessWrapper\r\n\tcommand: (self launchCommandWith: vmCommand useSettings: usePharoSettings) ] in [ [ | vmCommand |\r\nvmCommand := (PhLVirtualMachineManager forImage: file pathString) vm.\r\n^ PhLProcessWrapper\r\n\tcommand: (self launchCommandWith: vmCommand useSettings: usePharoSettings) ]\r\n\ton: PhLImageVersionDeterminationError\r\n\tdo: [ :error | error uiAlert ] ] in PhLImage>>launchWithSettings:\r\nBlockClosure>>on:do:\r\n[ [ | vmCommand |\r\nvmCommand := (PhLVirtualMachineManager forImage: file pathString) vm.\r\n^ PhLProcessWrapper\r\n\tcommand: (self launchCommandWith: vmCommand useSettings: usePharoSettings) ]\r\n\ton: PhLImageVersionDeterminationError\r\n\tdo: [ :error | error uiAlert ] ] in PhLImage>>launchWithSettings:\r\nBlockClosure>>on:do:\r\nPhLImage>>launchWithSettings:\r\n[ aPhLImage launchWithSettings: true ] in PhLLaunchImageCommand>>launchImage:\r\nBlockClosure>>on:do:\r\nPhLLaunchImageCommand>>launchImage:\r\nPhLLaunchImageCommand>>launchSelectedImage\r\nPhLLaunchImageCommand>>execute\r\nPhLLaunchImageCommand(PhLCommand)>>executeIfApplicable\r\nPhLCommandButton>>performAction\r\nMorphicButtonAdapter>>action\r\nPluggableButtonMorph>>performAction:\r\n[ :m | \r\n(m containsPoint: evt cursorPoint)\r\n\tifTrue: [ m enabled\r\n\t\t\tifTrue: [ m performAction: evt ] ] ] in PluggableButtonMorph>>mouseUp:\r\nArray(SequenceableCollection)>>do:\r\nPluggableButtonMorph>>mouseUp:\r\nPluggableButtonMorph(Morph)>>handleMouseUp:\r\nMouseButtonEvent>>sentTo:\r\nPluggableButtonMorph(Morph)>>handleEvent:\r\nPluggableButtonMorph(Morph)>>handleFocusEvent:\r\n[ ActiveHand := self.\r\nActiveEvent := anEvent.\r\nresult := focusHolder\r\n\thandleFocusEvent: (anEvent transformedBy: (focusHolder transformedFrom: self)) ] in HandMorph>>sendFocusEvent:to:clear:\r\nBlockClosure>>on:do:\r\nWorldMorph(PasteUpMorph)>>becomeActiveDuring:\r\nHandMorph>>sendFocusEvent:to:clear:\r\nHandMorph>>sendEvent:focus:clear:\r\nHandMorph>>sendMouseEvent:\r\nHandMorph>>handleEvent:\r\nHandMorph>>processEventsFromQueue:\r\nHandMorph>>processEvents\r\n[ :h | \r\nself activeHand: h.\r\nh processEvents.\r\nself activeHand: nil ] in WorldState>>doOneCycleNowFor:\r\nArray(SequenceableCollection)>>do:\r\nWorldState>>handsDo:\r\nWorldState>>doOneCycleNowFor:\r\nWorldState>>doOneCycleFor:\r\nWorldMorph>>doOneCycle\r\nWorldMorph class>>doOneCycle\r\n[ [ WorldMorph doOneCycle.\r\nProcessor yield.\r\nfalse ] whileFalse: [  ] ] in MorphicUIManager>>spawnNewProcess\r\n[ self value.\r\nProcessor terminateActive ] in BlockClosure>>newProcess`\r\n\r\nI tried installing the 1.3 version but it still isn't working."}}
{"actor":{"display_login":"eilx2"}}