Skip to content

AcceleratedAbstractGPU: Can't download file #5

Description

@tinchodias

Hi!

I get a loading error... I tried in Pharo 9 and 10 (MacBook from 2018):

Metacello new
   baseline: 'FormSceneGraph';
   repository: 'github://ronsaldo/form-scene-graph';
   load: #AcceleratedAbstractGPU.

There is this URI:
https://api.github.com/repos/ronsaldo/abstract-gpu/releases/assets/49144800
In the debugger that's shown.

During load I only get a visual popup with the download error that dissapears, but when I try to open the system preferences I get the debugger (apparently of the same error, didn't check).

I tried to debug or find a fix but failed.
For example, use variations of the parameters to the download sentence, but even rewriting it to use the Iceberg helper which should use my credentials*, but didn't succeed. And I didn't find an announcement from GitHub such a change in the REST API.

*:

		(IceGitHubAPI new
			acceptMediaType: 'application/octet-stream';
			get: downloadFileURI)

The stack in the debugger is:

PhaNAPIGitHubRelease(Object)>>error:
PhaNAPIGitHubRelease>>downloadAssetNamed:uri:
PhaNAPIGitHubRelease>>downloadUser:repository:release:forMode:platform:
PhaNAPIGitHubRelease>>fetchLibrary:fromUser:repository:release:
PhaNAPIGitHubRelease>>fetchLibrary:fromIcebergRepoOfClass:
PhaNAPIGitHubRelease class>>fetchLibrary:fromIcebergRepoOfClass:
AGPUCBindings(AGPUCBindingsBase)>>fetchLibrary
AGPUCBindings(PhaNAPILibrary)>>ffiLibraryName
AGPUCBindings(PhaNAPILibrary)>>libraryName
TFCalloutMethodBuilder(FFICalloutMethodBuilder)>>libraryName
TFCalloutMethodBuilder>>createFFICalloutLiteralFromSpec:
TFCalloutMethodBuilder>>generateFFICallout:spec:ffiLibrary:
[ :builder | | r |
		
		"Copy the properties of the old method"
		sender methodProperties
			ifNotNil: [ properties := sender methodProperties copy.
				properties method: nil.
				builder properties: properties ].

		builder
			numArgs: self argumentNames size;
			addTemps: (self argumentNames copyWith: #result).		
		
		ffiLibrary preMethodBuildContext: sender builder: builder spec: functionSpec.
		r := self generateFFICallout: builder spec: functionSpec ffiLibrary: ffiLibrary.
		ffiLibrary postMethodBuildContext: sender builder: builder spec: functionSpec.
		r] in TFCalloutMethodBuilder(FFICalloutMethodBuilder)>>generateMethodFromSpec: in Block: [ :builder | | r |...
IRBuilder class>>buildIR:
TFCalloutMethodBuilder(FFICalloutMethodBuilder)>>generateMethodFromSpec:
TFCalloutMethodBuilder(FFICalloutMethodBuilder)>>generate
TFCalloutMethodBuilder(FFICalloutMethodBuilder)>>build:
TFCalloutAPI(FFICalloutAPI)>>function:library:
TFCalloutAPI(FFICalloutAPI)>>function:module:
AGPUCBindings(FFILibrary)>>ffiCall:
AGPUCBindings>>getPlatforms_numplatforms:platforms:ret_numplatforms:
AGPU>>getPlatforms:platforms:ret_numplatforms:
[
		self getPlatforms: 0 platforms: nil ret_numplatforms: platformCount.
		^ platformCount unsignedLongAt: 1
	] in AGPU>>platformCount in Block: [...
FullBlockClosure(BlockClosure)>>ensure:
AGPU>>platformCount
AGPU>>fetchPlatforms
AGPU>>checkPlatformsSession
AGPU>>deviceDescriptions
AGPU class>>deviceDescriptions
AGPU class>>availableDeviceNames

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions