dnfield/flutter_svg

unhandled element filter; Picture key: StringPicture(String#bcac4, colorFilter: null)

zyllus17 opened this issue · 1 comments

I am trying to use svg for my splash screen logo. Its rendering but it is slow and stays for quite some time and then leads to the app.
I get this error after everytime I reopen the app.

Should I not use svg in Splash Screen or use png instead?

Debug console

I/flutter (30509): unhandled element filter; Picture key: StringPicture(String#bcac4, colorFilter: null)
F/crash_dump32(30620): crash_dump.cpp:474] failed to attach to thread 159: Permission denied

I have converted an svg file into XML and then I am using it.

logo.xml
<?xml version="1.0" encoding="UTF-8"?><vector xmlns:aapt="http://schemas.android.com/aapt" xmlns:android="http://schemas.android.com/apk/res/android" android:height="77dp" android:viewportHeight="77.0" android:viewportWidth="138.0" android:width="138dp">
<path android:fillColor="#FFEF4D69" android:pathData="M105.742 30.8894L100.941 35.8214L110.524 45.6989L115.312 40.7601L105.742 30.8894Z "/>
<path android:fillColor="#FFA6DFF9" android:pathData="M105.742 30.8829L100.96 35.8216L91.3901 25.9509L110.524 6.20947L115.312 11.1482L100.96 25.9509L105.742 30.8829Z "/>
<path android:fillColor="#FF1B4581" android:pathData="M100.96 16.0791L91.3901 25.9498L72.25 6.20835L77.0383 1.27637L91.3901 16.0791L96.1718 11.1471L100.96 16.0791Z "/>
<path android:fillColor="#FF4086C6" android:pathData="M105.743 1.27482L96.1746 11.1439L100.961 16.0809L110.53 6.21177L105.743 1.27482Z "/>
<path android:fillColor="#FFA6DFF9" android:pathData="M91.3901 25.9507L72.25 45.6921L67.4683 40.7534L81.82 25.9507L77.0383 21.0187L81.82 16.08L91.3901 25.9507Z "/>
<path android:fillColor="#FFEF4D69" android:pathData="M72.2524 6.21014L67.4658 11.1471L77.0343 21.0162L81.8208 16.0793L72.2524 6.21014Z "/>
<path android:fillColor="#FF1B4581" android:pathData="M110.524 45.6924L105.742 50.6244L91.3903 35.8217L86.602 40.7536L81.8203 35.8217L91.3903 25.9509L110.524 45.6924Z "/>
<path android:fillColor="#FF4086C6" android:pathData="M81.819 35.8212L72.2505 45.6903L77.037 50.6273L86.6055 40.7581L81.819 35.8212Z "/>
<path android:pathData="M36.353 43.8865C46.489 43.8865 54.7059 35.4115 54.7059 24.9569C54.7059 14.5024 46.489 6.02734 36.353 6.02734C26.2169 6.02734 18 14.5024 18 24.9569C18 35.4115 26.2169 43.8865 36.353 43.8865Z " android:strokeColor="#FF192533" android:strokeWidth="12.0"/>
<path android:fillColor="#FF192533" android:pathData="M9.64307 69.0049L11.7349 74.2256L13.8267 69.0049H14.9209V75.4033H14.0771V72.9116L14.1562 70.2222L12.0557 75.4033H11.4097L9.31348 70.2354L9.39697 72.9116V75.4033H8.55322V69.0049H9.64307ZM20.915 69.0049V73.3555C20.9121 73.959 20.7217 74.4526 20.3438 74.8364C19.9688 75.2202 19.459 75.4355 18.8145 75.4824L18.5903 75.4912C17.8901 75.4912 17.332 75.3022 16.916 74.9243C16.5 74.5464 16.2891 74.0264 16.2832 73.3643V69.0049H17.1182V73.3379C17.1182 73.8008 17.2456 74.1611 17.5005 74.4189C17.7554 74.6738 18.1187 74.8013 18.5903 74.8013C19.0679 74.8013 19.4326 74.6738 19.6846 74.4189C19.9395 74.1641 20.0669 73.8052 20.0669 73.3423V69.0049H20.915ZM23.0947 74.7134H26.127V75.4033H22.2466V69.0049H23.0947V74.7134ZM30.2974 69.6992H28.2407V75.4033H27.4014V69.6992H25.3491V69.0049H30.2974V69.6992ZM32.1519 75.4033H31.3081V69.0049H32.1519V75.4033ZM34.5425 72.8984V75.4033H33.6987V69.0049H36.0586C36.7588 69.0049 37.3066 69.1836 37.7021 69.541C38.1006 69.8984 38.2998 70.3716 38.2998 70.9604C38.2998 71.5815 38.105 72.0605 37.7153 72.3975C37.3286 72.7314 36.7734 72.8984 36.0498 72.8984H34.5425ZM34.5425 72.2085H36.0586C36.5098 72.2085 36.8555 72.103 37.0957 71.8921C37.3359 71.6782 37.4561 71.3706 37.4561 70.9692C37.4561 70.5884 37.3359 70.2837 37.0957 70.0552C36.8555 69.8267 36.5259 69.708 36.1069 69.6992H34.5425V72.2085ZM40.2246 74.7134H43.2568V75.4033H39.3765V69.0049H40.2246V74.7134ZM45.1157 72.2173L46.7856 69.0049H47.7437L45.5376 73.0171V75.4033H44.6938V73.0171L42.4878 69.0049H43.4546L45.1157 72.2173ZM52.7534 72.2173L54.4233 69.0049H55.3813L53.1753 73.0171V75.4033H52.3315V73.0171L50.1255 69.0049H51.0923L52.7534 72.2173ZM60.9976 72.4106C60.9976 73.0376 60.8921 73.5854 60.6812 74.0542C60.4702 74.52 60.1714 74.876 59.7847 75.1221C59.3979 75.3682 58.9468 75.4912 58.4312 75.4912C57.9272 75.4912 57.4805 75.3682 57.0908 75.1221C56.7012 74.873 56.3979 74.52 56.1812 74.063C55.9673 73.603 55.8574 73.0713 55.8516 72.4678V72.0063C55.8516 71.3911 55.9585 70.8477 56.1724 70.376C56.3862 69.9043 56.688 69.5439 57.0776 69.2949C57.4702 69.043 57.9185 68.917 58.4224 68.917C58.9351 68.917 59.3862 69.0415 59.7759 69.2905C60.1685 69.5366 60.4702 69.8955 60.6812 70.3672C60.8921 70.8359 60.9976 71.3823 60.9976 72.0063V72.4106ZM60.1582 71.9976C60.1582 71.2388 60.0059 70.6572 59.7012 70.2529C59.3965 69.8457 58.9702 69.6421 58.4224 69.6421C57.8892 69.6421 57.4688 69.8457 57.1611 70.2529C56.8564 70.6572 56.6997 71.2197 56.6909 71.9404V72.4106C56.6909 73.146 56.8447 73.7246 57.1523 74.1465C57.4629 74.5654 57.8892 74.7749 58.4312 74.7749C58.9761 74.7749 59.3979 74.5771 59.6968 74.1816C59.9956 73.7832 60.1494 73.2134 60.1582 72.4722V71.9976ZM66.7676 69.0049V73.3555C66.7646 73.959 66.5742 74.4526 66.1963 74.8364C65.8213 75.2202 65.3115 75.4355 64.667 75.4824L64.4429 75.4912C63.7427 75.4912 63.1846 75.3022 62.7686 74.9243C62.3525 74.5464 62.1416 74.0264 62.1357 73.3643V69.0049H62.9707V73.3379C62.9707 73.8008 63.0981 74.1611 63.353 74.4189C63.6079 74.6738 63.9712 74.8013 64.4429 74.8013C64.9204 74.8013 65.2852 74.6738 65.5371 74.4189C65.792 74.1641 65.9194 73.8052 65.9194 73.3423V69.0049H66.7676ZM70.4458 72.8149H68.9429V75.4033H68.0947V69.0049H70.2129C70.9336 69.0049 71.4873 69.1689 71.874 69.4971C72.2637 69.8252 72.4585 70.3027 72.4585 70.9297C72.4585 71.3281 72.3501 71.6753 72.1333 71.9712C71.9194 72.2671 71.6206 72.4883 71.2368 72.6348L72.7397 75.3506V75.4033H71.8345L70.4458 72.8149ZM68.9429 72.125H70.2393C70.6582 72.125 70.9907 72.0166 71.2368 71.7998C71.4858 71.583 71.6104 71.293 71.6104 70.9297C71.6104 70.5342 71.4917 70.231 71.2544 70.02C71.02 69.8091 70.6802 69.7021 70.2349 69.6992H68.9429V72.125ZM76.7827 75.4033H75.939V69.0049H76.7827V75.4033ZM83.2471 75.4033H82.3989L79.1777 70.4727V75.4033H78.3296V69.0049H79.1777L82.4077 73.9575V69.0049H83.2471V75.4033ZM86.8638 74.2827L88.6919 69.0049H89.6147L87.2417 75.4033H86.4946L84.126 69.0049H85.0444L86.8638 74.2827ZM94.0928 72.4458H91.3198V74.7134H94.541V75.4033H90.4761V69.0049H94.4971V69.6992H91.3198V71.7559H94.0928V72.4458ZM97.4766 72.5513C96.7529 72.3433 96.2256 72.0884 95.8945 71.7866C95.5664 71.4819 95.4023 71.1069 95.4023 70.6616C95.4023 70.1577 95.603 69.7417 96.0044 69.4136C96.4087 69.0825 96.9331 68.917 97.5776 68.917C98.0171 68.917 98.4082 69.002 98.751 69.1719C99.0967 69.3418 99.3633 69.5762 99.5508 69.875C99.7412 70.1738 99.8364 70.5005 99.8364 70.855H98.9883C98.9883 70.4683 98.8652 70.165 98.6191 69.9453C98.373 69.7227 98.0259 69.6113 97.5776 69.6113C97.1616 69.6113 96.8364 69.7036 96.6021 69.8882C96.3706 70.0698 96.2549 70.3232 96.2549 70.6484C96.2549 70.9092 96.3647 71.1304 96.5845 71.312C96.8071 71.4907 97.1836 71.6548 97.7139 71.8042C98.2471 71.9536 98.6631 72.1191 98.9619 72.3008C99.2637 72.4795 99.4863 72.689 99.6299 72.9292C99.7764 73.1694 99.8496 73.4521 99.8496 73.7773C99.8496 74.2959 99.6475 74.7119 99.2432 75.0254C98.8389 75.3359 98.2983 75.4912 97.6216 75.4912C97.1821 75.4912 96.772 75.4077 96.3911 75.2407C96.0103 75.0708 95.7158 74.8394 95.5078 74.5464C95.3027 74.2534 95.2002 73.9209 95.2002 73.5488H96.0483C96.0483 73.9355 96.1904 74.2417 96.4746 74.4673C96.7617 74.6899 97.144 74.8013 97.6216 74.8013C98.0669 74.8013 98.4082 74.7104 98.6455 74.5288C98.8828 74.3472 99.0015 74.0996 99.0015 73.7861C99.0015 73.4727 98.8916 73.231 98.6719 73.061C98.4521 72.8882 98.0537 72.7183 97.4766 72.5513ZM105.356 69.6992H103.299V75.4033H102.46V69.6992H100.408V69.0049H105.356V69.6992ZM107.395 69.0049L109.487 74.2256L111.579 69.0049H112.673V75.4033H111.829V72.9116L111.908 70.2222L109.808 75.4033H109.162L107.065 70.2354L107.149 72.9116V75.4033H106.305V69.0049H107.395ZM117.779 72.4458H115.006V74.7134H118.228V75.4033H114.163V69.0049H118.184V69.6992H115.006V71.7559H117.779V72.4458ZM124.195 75.4033H123.347L120.126 70.4727V75.4033H119.278V69.0049H120.126L123.356 73.9575V69.0049H124.195V75.4033ZM129.983 69.6992H127.926V75.4033H127.087V69.6992H125.035V69.0049H129.983V69.6992Z "/>
</vector>

The <filter> element isn't supported yet - see #53

But the file you've attached is an AVD file, not an SVG. It seems simple enough that it probably works.

I'm not sure what's causing your crash though.