We have CI server for nightly builds. We have also the required dependencies on the build server for our xamarin builds. For some reason, somthing this week changed (I dont know what) but now in the _UpdateAndroidResgen build step aapt is getting attributes defined twice which causes the build to fail for some reason.
Failed to generate resource table for split ''
[20:53:33] ~\obj\x64\Release\__library_projects__\Xamarin.Android.Support.v7.AppCompat\library_project_imports\res\values\values.xml(2, 0): error APT0000: Attribute "navigationMode" already defined with incompatible format.
[20:53:33] ~\obj\x64\Release\resourcecache\8D3A6302159015EB54DABA3378105A95\res\values\values.xml:73: Original attribute defined here.
[20:53:33] ~\obj\x64\Release\__library_projects__\Xamarin.Android.Support.v7.AppCompat\library_project_imports\res\values\values.xml(2, 0): error APT0000: Attribute "displayOptions" already defined with incompatible format.
[20:53:33] ~\obj\x64\Release\resourcecache\8D3A6302159015EB54DABA3378105A95\res\values\values.xml:73: Original attribute defined here.
[20:53:33] ~\obj\x64\Release\__library_projects__\Xamarin.Android.Support.v7.AppCompat\library_project_imports\res\values\values.xml(2, 0): error APT0000: Attribute "actionBarSize" already defined with incompatible format.
[20:53:33] ~\obj\x64\Release\resourcecache\8D3A6302159015EB54DABA3378105A95\res\values\values.xml:82: Original attribute defined here.
[20:53:33] ~\obj\x64\Release\__library_projects__\Xamarin.Android.Support.v7.AppCompat\library_project_imports\res\values\values.xml(2, 0): error APT0000: Attribute "buttonTintMode" already defined with incompatible format.
[20:53:33] ~\obj\x64\Release\resourcecache\8D3A6302159015EB54DABA3378105A95\res\values\values.xml:84: Original attribute defined here.
[20:53:33] ~\obj\x64\Release\__library_projects__\Xamarin.Android.Support.v7.AppCompat\library_project_imports\res\values\values.xml(2, 0): error APT0000: Attribute "showDividers" already defined with incompatible format.
[20:53:33] nothing matches overlay file notification_media_action.xml, for flavor v11
[20:53:33] nothing matches overlay file notification_media_cancel_action.xml, for flavor v11
[20:53:33] nothing matches overlay file notification_template_big_media.xml, for flavor v11
[20:53:33] nothing matches overlay file notification_template_big_media_narrow.xml, for flavor v11
[20:53:33] ~\obj\x64\Release\resourcecache\8D3A6302159015EB54DABA3378105A95\res\values\values.xml:86: Original attribute defined here.
[20:53:33] ~\obj\x64\Release\__library_projects__\Xamarin.Android.Support.v7.AppCompat\library_project_imports\res\values\values.xml(2, 0): error APT0000: Attribute "showAsAction" already defined with incompatible format.
[20:53:33] ~\obj\x64\Release\resourcecache\8D3A6302159015EB54DABA3378105A95\res\values\values.xml:90: Original attribute defined here.
[20:53:33] ~\obj\x64\Release\__library_projects__\Xamarin.Android.Support.v7.AppCompat\library_project_imports\res\values\values.xml(2, 0): error APT0000: Attribute "backgroundTintMode" already defined with incompatible format.
[20:53:33] ~\obj\x64\Release\resourcecache\8D3A6302159015EB54DABA3378105A95\res\values\values.xml:100: Original attribute defined here.
[20:53:33] ~\obj\x64\Release\__library_projects__\Xamarin.Android.Support.Design\library_project_imports\res\values\values.xml(2, 0): error APT0000: Attribute "layout_scrollFlags" already defined with incompatible format.
[20:53:33] ~\obj\x64\Release\resourcecache\1E8DAFD410D28824E5C274B16FD597B6\res\values\values.xml:14: Original attribute defined here.
[20:53:33] ~\obj\x64\Release\__library_projects__\Xamarin.Android.Support.Design\library_project_imports\res\values\values.xml(2, 0): error APT0000: Attribute "collapsedTitleGravity" already defined with incompatible format.
[20:53:33] ~\obj\x64\Release\resourcecache\1E8DAFD410D28824E5C274B16FD597B6\res\values\values.xml:17: Original attribute defined here.
[20:53:33] ~\obj\x64\Release\__library_projects__\Xamarin.Android.Support.Design\library_project_imports\res\values\values.xml(2, 0): error APT0000: Attribute "expandedTitleGravity" already defined with incompatible format.
[20:53:33] ~\obj\x64\Release\resourcecache\1E8DAFD410D28824E5C274B16FD597B6\res\values\values.xml:17: Original attribute defined here.
[20:53:33] ~\obj\x64\Release\__library_projects__\Xamarin.Android.Support.Design\library_project_imports\res\values\values.xml(2, 0): error APT0000: Attribute "layout_collapseMode" already defined with incompatible format.
[20:53:33] ~\obj\x64\Release\resourcecache\1E8DAFD410D28824E5C274B16FD597B6\res\values\values.xml:16: Original attribute defined here.
[20:53:33] ~\obj\x64\Release\__library_projects__\Xamarin.Android.Support.Design\library_project_imports\res\values\values.xml(2, 0): error APT0000: Attribute "layout_anchorGravity" already defined with incompatible format.
[20:53:33] ~\obj\x64\Release\resourcecache\1E8DAFD410D28824E5C274B16FD597B6\res\values\values.xml:19: Original attribute defined here.
[20:53:33] ~\obj\x64\Release\__library_projects__\Xamarin.Android.Support.Design\library_project_imports\res\values\values.xml(2, 0): error APT0000: Attribute "fabSize" already defined with incompatible format.
[20:53:33] ~\obj\x64\Release\resourcecache\1E8DAFD410D28824E5C274B16FD597B6\res\values\values.xml:21: Original attribute defined here.
[20:53:33] ~\obj\x64\Release\__library_projects__\Xamarin.Android.Support.Design\library_project_imports\res\values\values.xml(2, 0): error APT0000: Attribute "tabMode" already defined with incompatible format.
[20:53:33] ~\obj\x64\Release\resourcecache\1E8DAFD410D28824E5C274B16FD597B6\res\values\values.xml:28: Original attribute defined here.
[20:53:33] ~\obj\x64\Release\__library_projects__\Xamarin.Android.Support.Design\library_project_imports\res\values\values.xml(2, 0): error APT0000: Attribute "tabGravity" already defined with incompatible format.
[20:53:33] ~\obj\x64\Release\resourcecache\1E8DAFD410D28824E5C274B16FD597B6\res\values\values.xml:28: Original attribute defined here.
[20:53:33] ~\obj\x64\Release\__library_projects__\Xamarin.Android.Support.Design\library_project_imports\res\values\values.xml(2, 0): error APT0000: String types not allowed (at 'fabSize' with value 'auto').
[20:53:33]
[20:53:33] The command exited with code 1.
I have verified that the problem seems to be on the build runner as the same code which was passing 4 days ago is now failing with the aapt error as well. Also verified the android sdk and build tools versions are the same as they have always been. I have tried reverting, deleting all bin and obj folders as well as the xamarin cache folder ~\AppData\Local\Xamarin\ I have also reinstalled the android build tools. Really quite stumped at this point.
Has anyone seen this issue before?
If anyone else runs into this problem It turns out that this was just due to the build server running low on space. There was enough space for the VCS checkout but the android build tools do not fail with helpful error messages when the temporary and cache files they try to create exceed the available disk space.
Related
I tried to convert my tf.keras model to tflite, but I met with some missing operators. the TOCO output contains these strings -- I've tried to make then unique, rather than dumping the whole thing:
Converting unsupported operation: TensorArrayV3
Op node missing output type attribute: lstm_4/TensorArray
Converting unsupported operation: TensorArrayScatterV3
Op node missing output type attribute: lstm_4/TensorArrayUnstack/TensorArrayScatter/TensorArrayScatterV3
Converting unsupported operation: Enter
Converting unsupported operation: LoopCond
Op node missing output type attribute: lstm_4/while/LoopCond
Converting unsupported operation: TensorArrayReadV3
Unsupported data type in placeholder op: 20
Converting unsupported operation: ReadVariableOp
Converting unsupported operation: TensorArrayWriteV3
Op node missing output type attribute: lstm_4/while/TensorArrayWrite/TensorArrayWriteV3
Converting unsupported operation: Exit
Converting unsupported operation: TensorArraySizeV3
Op node missing output type attribute: lstm_4/TensorArrayStack/TensorArraySizeV3
Converting unsupported operation: TensorArrayGatherV3
Op node missing output type attribute: lstm_5/TensorArray
Op node missing output type attribute: lstm_5/TensorArray_1
Op node missing output type attribute: lstm_5/TensorArrayUnstack/TensorArrayScatter/TensorArrayScatterV3
Op node missing output type attribute: lstm_5/while/LoopCond
Op node missing output type attribute: lstm_5/while/TensorArrayWrite/TensorArrayWriteV3
Op node missing output type attribute: lstm_5/TensorArrayStack/TensorArraySizeV3
Op node missing output type attribute: lstm_6/TensorArray
Op node missing output type attribute: lstm_6/TensorArray_1
Op node missing output type attribute: lstm_6/TensorArrayUnstack/TensorArrayScatter/TensorArrayScatterV3
Op node missing output type attribute: lstm_6/while/LoopCond
Op node missing output type attribute: lstm_6/while/TensorArrayWrite/TensorArrayWriteV3
So I am reading about how to support those operations -- apparently the method is to do a custom build with those operations in place. There's a promising looking guide for this, but he doesn't really specify how he located which headers he needed.
Can you help me locate the headers I will need to include ?
updates
I've located the ... apparently just 1 file for TensorArrayV3: tensorflow/lite/java/src/main/native/tensor_array_ops.h
This file makes use of protobufs that are not compiled by default (the raw host_compute_metadata.proto is present, but not the .pb.h/.pb.cc files). I am having trouble understanding the build system well enough to know where to look to build these... I downloaded my own protoc and can compile it, but I'm not sure that I am doing it right and it references two more .proto files that also are not compiled to .pb.*, namely types.proto and tensor_shape.proto from core. Compiling core does not generate them.
I am working on Android Studio. The "build" tab says there are six errors but all it prints are the following:
error: Cannot figure out how to save this field into database. You can consider adding a type converter for it.
error: Cannot find getter for field.
error: Cannot find setter for field.
error: Cannot figure out how to read this field from a cursor.
error: Cannot find getter for field.
error: Cannot find setter for field.
There is not much here that is useful to me because I have multiple Entities and DAOs. How do I get access to the actual line numbers causing trouble?
What is the list of valid #SuppressWarnings warning names in Gosu?
The bit that comes in between the ("") in #SuppressWarnings("").
There is already an SO answer for Java but I'm interested in suppressing the warning that my variable type can be inferred (passing an inferred block variable as a function parameter does not compile so I'm using an explicitly typed variable).
Java answer: What is the list of valid #SuppressWarnings warning names in Java?
I erroneously deleted the ‘footer.liquid’ file in the Providence theme.
I am unable unable to create a new footer.liquid file in sections as I am getting the error below:
“New schema is incompatible with the current setting value. Invalid type value for block '1523601164583'. Type must be defined in schema. New schema is incompatible with the current setting value. Invalid type value for block '1523858388687'. Type must be defined in schema.New schema is incompatible with the current setting value. Invalid type value for block '1523592394611'. Type must be defined in schema.New schema is incompatible with the current setting value. Invalid type value for block '1523858779593'. Type must be defined in schema”
Any ideas?
I know its been a while but in case anyone ends up on this thread looking for the same thing or the poster of the question did not find a fix (probably not the case) up to this point, I will attempt to answer with how I got around this.
First of all lets examine why this happens, from my understanding, each time we add or modify certain values inside a section schema, the settings_data.json located in the config folder, will have settings generated inside of it upon usage of that section.
So when we go back into the section and change for example the type of a block, it will no longer match the existing settings inside of the settings_data.json and as such you will get an error back.
So how do if fix it? We simply go into the Shopify Store Adimin and remove the blocks that make use of the type we've changed, after we do this we can easily define any new type we want, add the blocks back and we will no longer receive an error.
I'm trying to compile mono (from git) for a Cavium OCTEON (mips64) running Debian Sid.
If I try to compile entirely on the OCTEON, (without any kind of existing mono install), it gets as far as the mcs directory and then hits trouble. The problems relate to not having a functional gmcs. The suggested path of make get-monolite-latest doesn't work (wrong core versions, still no gmcs, etc).
To combat this, I tried the processes for cross-compiling mono for ARM. Of course, I have fast MIPs hardware to hand, so I don't use scratchbox.
The split build process gives no errors. Once installed on the OCTEON, I can run C# programs that have already been compiled (via gmcs on the x86_64 system). However, I cannot compile from source on the OCTEON. So, the IL runtime seems to work, but the compiler doesn't.
For example, compiling the simple hello world from http://www.mono-project.com/Mono_Basics gives the following:
root#OCTEON:~# gmcs helloWorld.cs
error CS0518: The predefined type `System.Object' is not defined or imported
error CS0518: The predefined type `System.ValueType' is not defined or imported
error CS0518: The predefined type `System.Attribute' is not defined or imported
error CS0518: The predefined type `System.Int32' is not defined or imported
error CS0518: The predefined type `System.UInt32' is not defined or imported
error CS0518: The predefined type `System.Int64' is not defined or imported
error CS0518: The predefined type `System.UInt64' is not defined or imported
error CS0518: The predefined type `System.Single' is not defined or imported
error CS0518: The predefined type `System.Double' is not defined or imported
error CS0518: The predefined type `System.Char' is not defined or imported
error CS0518: The predefined type `System.Int16' is not defined or imported
error CS0518: The predefined type `System.Decimal' is not defined or imported
error CS0518: The predefined type `System.Boolean' is not defined or imported
error CS0518: The predefined type `System.SByte' is not defined or imported
error CS0518: The predefined type `System.Byte' is not defined or imported
error CS0518: The predefined type `System.UInt16' is not defined or imported
error CS0518: The predefined type `System.String' is not defined or imported
error CS0518: The predefined type `System.Enum' is not defined or imported
error CS0518: The predefined type `System.Delegate' is not defined or imported
error CS0518: The predefined type `System.MulticastDelegate' is not defined or imported
error CS0518: The predefined type `System.Void' is not defined or imported
error CS0518: The predefined type `System.Array' is not defined or imported
error CS0518: The predefined type `System.Type' is not defined or imported
error CS0518: The predefined type `System.Collections.IEnumerator' is not defined or imported
error CS0518: The predefined type `System.Collections.IEnumerable' is not defined or imported
error CS0518: The predefined type `System.IDisposable' is not defined or imported
error CS0518: The predefined type `System.IntPtr' is not defined or imported
error CS0518: The predefined type `System.UIntPtr' is not defined or imported
error CS0518: The predefined type `System.RuntimeFieldHandle' is not defined or imported
error CS0518: The predefined type `System.RuntimeTypeHandle' is not defined or imported
error CS0518: The predefined type `System.Exception' is not defined or imported
Compilation failed: 31 error(s), 0 warnings
I feel like I'm close, but missing a step. It's as if it's not finding mscorelib.dll. Yet, that file does seem to be present under the prefix path:
root#OCTEON# find . | grep -i mscor
./2.0/mscorlib.dll
./2.0/mscorlib.dll.mdb
./2.0/mscorlib.dll.so
./4.5/mscorlib.dll
./4.5/mscorlib.dll.mdb
./4.5/mscorlib.dll.so
./4.0/mscorlib.dll
./4.0/mscorlib.dll.mdb
Before I start delving into the mcs code to understand its flow and what's going wrong, I was hoping that someone on here might be able to shed some light on the problem and point me in the right direction. Have I missed something? Is there some obvious fix?