Артем Posted April 29, 2022 Share Posted April 29, 2022 Всем привет! Подскажите пжл что не так. Некоторые картинки грузит , а на некоторых стало падать с ошибкой item.assetName := 'image1'; filelink := 'https://api.m4.systems/api_web/getfile.php?filename=a77f6ad8f94e182a1c2dac2e3eb759fa'; TfgAssetsManager.Current.AddBitmapFromUrlAsync(item.assetName, filelink, procedure (const AResultCode: Integer; const AResultMessage: string) begin end); стекТрейс System._DbgExcNotify(0,0xc0a6c9c0,0xc6aaea7f,0xc4f40a75,nil) System.NotifyReRaise(0xc0a6c9c0,0xc4f40a75) System._RaiseAtExcept(0xc0a6c9c0,0xc4f40a75) System._RaiseExcept(0xc0a6c9c0) System.Internal.Excutils.DoRaiseJNIExceptionCallBack('class java.lang.IllegalArgumentException','java.lang.IllegalArgumentException: Given view not a child of ru.fgx.view.layout.NativeLayout{fac76ab V.E...... ......ID 0,0-996,124}') Androidapi.Jni.HandleJNIException(0xe4466480) Java.Bridge.TJNIHelper.CheckException(0xc6db2104,false) Java.Bridge.TJavaType.CallVoidMethod(0xe43fa4c0,0xba06,'updateViewLayout','(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V',@0xffa6fe94: {{ = { = { = { = {VInteger = -1063127384}, = {VBoolean = true (168)}, = {VChar = 168 'Ё'}, = {VExtended = 0xc0a1f6a8}, = {VString = 0xc0a1f6a8}, = {VPointer = 0xc0a1f6a8}, = {VPChar = 0xc0a1f6a8 '¬ѕоЖ'#001}, = {VObject = 0xc0a1f6a8}, = {VClass = 0xc0a1f6a8}, = {VWideChar = #$f6a8}, = {VPWideChar = 0xc0a1f6a8}, = {VAnsiString = 0xc0a1f6a8}, = {VCurrency = 0xc0a1f6a8}, = {VVariant = 0xc0a1f6a8}, = {VInterface = 0xc0a1f6a8}, = {VWideString = 0xc0a1f6a8}, = {VInt64 = 0xc0a1f6a8}, = {VUnicodeString = 0xc0a1f6a8}}}, = {_Reserved1 = -1063127384, VType = 14}}}},1) Android.Api.Activityandview.TJViewGroup.updateViewLayout(0xc1e474b0,0xc0a1f6a8,0xc0a50ee8) :C562E9E2 __stub_in36s__ZN7Android3Api15Activityandview11TJViewGroup16updateViewLayoutEN6System15DelphiInterfaceINS1_5JViewEEENS4_INS1_23JViewGroup_LayoutParamsEEE Fgx.Controls.Android.TfgAndroidControlContainer.DoUpdateFrame(0xc0dfca30,0xc0a0c3a0,0xc0a1f6a8) Fgx.Controls.Android.TfgAndroidControl.UpdateFrameInParent(0xc0a0c3a0) Fgx.Controls.Android.TfgAndroidControl.WMSetFrame(0xc0a0c3a0,@0xffa70140: {MsgID = 1025, Value = { = { = {Left = 0, Top = 0, Right = 411.4286, Bottom = 731.4286}, = {TopLeft = { = { = {V = {0, 0}}, = {X = 0, Y = 0}}}, BottomRight = { = { = {V = {411.4286, 731.4286}}, = {X = 411.4286, Y = 731.4286}}}}}}}) Fgx.Forms.Android.TfgAndroidForm.WMSetFrame(0xc0a0c3a0,@0xffa70140: {MsgID = 1025, Value = { = { = {Left = 0, Top = 0, Right = 411.4286, Bottom = 731.4286}, = {TopLeft = { = { = {V = {0, 0}}, = {X = 0, Y = 0}}}, BottomRight = { = { = {V = {411.4286, 731.4286}}, = {X = 411.4286, Y = 731.4286}}}}}}}) System.TObject.Dispatch(0xc0a0c3a0,0xffa70140) Fgx.Messaging.TfgMessageSender.SendMessage<System.Types.TRectF>(0xc1e5b4b0,1025,@0xffa701c8: { = { = {Left = 0, Top = 0, Right = 411.4286, Bottom = 731.4286}, = {TopLeft = { = { = {V = {0, 0}}, = {X = 0, Y = 0}}}, BottomRight = { = { = {V = {411.4286, 731.4286}}, = {X = 411.4286, Y = 731.4286}}}}}}) Fgx.Flexmanager.TfgFlexManager.RecalculateLayout(Fgx.Controls.TfgControl*).UpdateControlLayout(void*, Fgx.Controls.TfgControl*)(@0xffa70654: {},0xc0a72380) Fgx.Flexmanager.TfgFlexManager.RecalculateLayout(Fgx.Controls.TfgControl*).UpdateControlLayout(void*, Fgx.Controls.TfgControl*)(@0xffa70654: {},0xc0de47c0) Fgx.Flexmanager.TfgFlexManager.RecalculateLayout(Fgx.Controls.TfgControl*).UpdateControlLayout(void*, Fgx.Controls.TfgControl*)(@0xffa70654: {},0xc0de4540) Fgx.Flexmanager.TfgFlexManager.RecalculateLayout(Fgx.Controls.TfgControl*).UpdateControlLayout(void*, Fgx.Controls.TfgControl*)(@0xffa70654: {},0xc0de3280) Fgx.Flexmanager.TfgFlexManager.RecalculateLayout(Fgx.Controls.TfgControl*).UpdateControlLayout(void*, Fgx.Controls.TfgControl*)(@0xffa70654: {},0xc3c28c00) Fgx.Flexmanager.TfgFlexManager.RecalculateLayout(0xc79099b0,0xc0de47c0) Fgx.Controls.TfgControl.Realign(0xc0de47c0) Fgx.Scrollbox.TfgCustomScrollBox.ContentSizeChangedHandler(0xc0de47c0,0xc0de47c0) Fgx.Types.TfgPersistent.DoInternalChanged(0xc1e476f0) Fgx.Types.TfgPersistent.Changed(0xc1e476f0) Fgx.Scrollbox.TfgScrollBoxContentSize.SetSize(0xc1e476f0,@0xffa70770: {cx = 120, cy = 47}) Fgx.Scrollbox.TfgCustomScrollBox.RecalculateContentSize(0xc0de47c0) Fgx.Scrollbox.TfgCustomScrollBox.InsertChild(0xc0de47c0,0xc0a72380,1) Fgx.Controls.TfgControl.SetParent(Fgx.Controls.TfgControl*).AddSelfToNewParent(void*)(@0xffa70878: {}) Fgx.Controls.TfgControl.SetParent(0xc0a72380) Requestframe_.TRequestFrame.AddImageToHorList(0xc3c28c00,{attachID = '1180444', filname = '', assetName = 'image989247b7d692db230de61d9587d212d7', hash = '989247b7d692db230de61d9587d212d7', size = '1868422'}) Requestframe_.TRequestFrame_GetAttachList_ActRec__0_Body_ActRec._0_0_Body(0xde60b778) :C6180592 __stub_in28s__ZN13Requestframe_49TRequestFrame_GetAttachList_ActRec__0_Body_ActRec9_0_0_BodyEv System.Classes.CheckSynchronize(0) Fgx.Platform.Android.TfgAndroidWakeMainThreadRunnable.run(0xe443fcd8) :C62CDCA2 L1 :C62CDCA2 L1 Link to comment Share on other sites More sharing options...
Administrators Yaroslav Brovin Posted April 29, 2022 Administrators Share Posted April 29, 2022 Добрый вечер, Нужен демо проект. По стеку ошибка, связанная с выравниванием, а не с загрузкой изображения. Link to comment Share on other sites More sharing options...
Артем Posted April 30, 2022 Author Share Posted April 30, 2022 12 часов назад, Yaroslav Brovin сказал: Добрый вечер, Нужен демо проект. По стеку ошибка, связанная с выравниванием, а не с загрузкой изображения. testApp.7z Link to comment Share on other sites More sharing options...
Артем Posted April 30, 2022 Author Share Posted April 30, 2022 насколько понял скачивание фото даже не важно. Достаточно в это упереться var image := TfgImage.Create(nil); image.Parent := HorizontalScrollBox; Link to comment Share on other sites More sharing options...
Артем Posted May 2, 2022 Author Share Posted May 2, 2022 TfgHorizontalScrollBox видимо получил изменения в районе версииFGX 1.13... ибо у меня многое поломалось из-за него. в TfgCollection если в стиле используется TfgHorizontalScrollBox ломаются привязки и пропадают компоненты (не отрисовываются) в рантайме Link to comment Share on other sites More sharing options...
Administrators Yaroslav Brovin Posted May 4, 2022 Administrators Share Posted May 4, 2022 Исправлено в 1.14.1.1. Link to comment Share on other sites More sharing options...
Recommended Posts