Hii. i have this error when im trying to assign the result to new array.
swift language version 3.3
xcode Version 9.3
cordova platform version ios : ios 4.5.4
cordova -v : 8.0.0
in js :
cordova.plugins.photoLibrary.getLibrary(
function (result) {
var library = result.library;
// Here we have the library as array
console.log("cordova.plugins.photoLibrary.getLibrary")
console.log(library.length + " images found !!!")
library.forEach(function (libraryItem) {
if (libraryItem.mimeType.indexOf("png") > 0 || libraryItem.mimeType.indexOf("jpeg") > 0 || libraryItem.mimeType.indexOf("jpg") > 0) {
var tempPhoto = { "path": libraryItem.thumbnailURL }
self.AllDeviceImages.push(tempPhoto)
}
});
self.deviceImages = self.AllDeviceImages.slice(0, index);
self.loader = false;
},
function (err) {
console.log('Error occured');
},
{ // optional options
thumbnailWidth: 512,
thumbnailHeight: 384,
quality: 0.8,
includeAlbumData: false // default
}
);
After loading half images, the app gets stuck with this message in xcode :
libsystem_kernel.dylib`__pthread_kill:
validateFunctionArguments:3379: failed assertion `Fragment Function(ca_uber_fragment_lp0_cp1_fo0): The pixel format (MTLPixelFormatRGBA16Unorm) of the texture (name:) bound at index 0 is incompatible with the data type (MTLDataTypeHalf) of the texture parameter (img_tex_0A [[texture(0)]]). MTLPixelFormatRGBA16Unorm is compatible with the data type(s) (
float
).'
(lldb)
Hii. i have this error when im trying to assign the result to new array.
xcode Version 9.3 cordova platform version ios : ios 4.5.4 cordova -v : 8.0.0 in js :
After loading half images, the app gets stuck with this message in xcode : libsystem_kernel.dylib`__pthread_kill:
validateFunctionArguments:3379: failed assertion `Fragment Function(ca_uber_fragment_lp0_cp1_fo0): The pixel format (MTLPixelFormatRGBA16Unorm) of the texture (name:) bound at index 0 is incompatible with the data type (MTLDataTypeHalf) of the texture parameter (img_tex_0A [[texture(0)]]). MTLPixelFormatRGBA16Unorm is compatible with the data type(s) (
float
).'
(lldb)