Status Update
Comments
je...@gmail.com <je...@gmail.com> #2
That's working as expected. Let's consult with Javier about his thoughts.
ma...@gmail.com <ma...@gmail.com> #3
Did we get any input from Javier for this?
so...@google.com <so...@google.com>
je...@google.com <je...@google.com> #4
The current implementation after the fix is aligned with the foundation API AnchoredDraggable
- I think it makes sense to provide an optional parameter for devs to provide the initial anchor to use, as it's hard to provide a reasonable default.
Let me know if you have different thoughts. : )
je...@google.com <je...@google.com> #5
I think it makes sense to provide an optional parameter for devs to provide the initial anchor to use, as it's hard to provide a reasonable default.
That sounds reasonable to me. Is there a separate bug for that or should I file one?
One thing that I think will be weird is that the size of the panes can come from that anchor or from PaneScaffoldDirective defaultPanePreferredWidth (possibly influenced by the hinge?). In an ideal world, I think we would have the sizes all come from anchors, but that wouldn't work today with three panes visible. I'll add a note to the doc on this.
je...@google.com <je...@google.com> #6
We don't have a separate bug for that but it's already being supported via:
rememberPaneExpansionState(
...
initialAnchoredIndex = i,
)
You raised a very good point about having parallel ways to set up pane sizes.
To me it's sort of reasonable as there are actually referring to different use cases and have different priorities -
- Hinge policies always have the highest priority.
- Pane expansion (and its anchors) are associated with layout splits, but less with the "roles" of the panes that occupy those splits.
Modifier.preferredWidth
always has the lowest priority - more like a fallback default.
I guess we can have more detailed explanation in the doc if this can be confusing?
ji...@google.com <ji...@google.com> #7
Oh, it's in the remember call, perfect!
Yeah, it seems reasonable debating about the use cases, but I worry if it's reasonable for a developer who doesn't consider all that and just wants to show two panes? It's also even more nuanced since 2 only applies for two panes (e.g., if your app shows two panes in portrait on a Samsung Ultra tablet and three panes in landscape). Maybe in the kdoc we should have something similar to what you listed here and in DAC we can provide more context around these.
je...@google.com <je...@google.com> #8
Yeah that sounds good to me. I plan to have some time to refine our kdoc and samples no matter what. Let's maybe work on this in the upcoming alpha/beta period.
ji...@google.com <ji...@google.com> #9
I have no experience debugging an app on Windows. AIDL compiler is already built with
is...@gmail.com <is...@gmail.com> #10
in...@google.com <in...@google.com> #11
I found that heap is sometimes corrupted even with no arguments.
.\aidl.exe; echo $LASTEXITCODE
randomly gives 1, -1073740940, -1073741819.
in...@google.com <in...@google.com> #12
I tried patching main (0x2d1540) to
push 12
pop eax
ret
And it still sometimes crashes. So I guess this should be a problem of some global variables.
in...@google.com <in...@google.com> #13
With windbg I found mysterious heap corruption. It was full of strings, and they were all freed and filled with feee
(Windows's free-heap filling bytes). In the middle of that, there are strange values.
However, still not sure what is the cause.
je...@google.com <je...@google.com>
ji...@google.com <ji...@google.com> #14
Filed
in...@google.com <in...@google.com> #15
FWIW, we found the root cause.
AidlNode
is destructed whenAidlTypeSpecifier
is destructed.- The destruction order between
AidlNode::unvisited_locations_
andAidlTypeSpecifier
is indetermined. - On windows builds,
AidlNode::unvisited_locations_
is destructed prior toaidl_to_ndk.cpp
'sAidlTypeSpecifier
, resulting inpush_back
to an already destructed vector. - On linux builds,
AidlNode::unvisited_locations_
is destructed in the end, so there are no crashes.
in...@google.com <in...@google.com> #16
xa...@google.com <xa...@google.com> #17
+Raju to organize a release of a new build tools (33.0.1) with the fix
ra...@google.com <ra...@google.com> #18
xa...@google.com <xa...@google.com> #19
Ah, thanks for the update Raju!
je...@gmail.com <je...@gmail.com> #20
There was mention of a build-tools 33.0.1 below.
But this has not yet come to pass, over a month later.
And now Android 13 has been released. I assume it is not required, but it would seem ideal to move to build-tools 33.0.x while moving to target SDK 33...
je...@gmail.com <je...@gmail.com> #21
I gave up and ripped all the old AIDL out of the code -- as we're currently not using it.
I'm surprised no one is:
- using AIDL,
- building on Windows, and
- wanting to use the latest build-tools
an...@gmail.com <an...@gmail.com> #22
Deleting Build Tools 33.0.0 and reinstalling fixes issue sometimes.
But it is not a permanent fix.
Please share ETA for the build tool release with fix applied.
Thank you.
ga...@linecorp.com <ga...@linecorp.com> #23
Is there any progress? It is already year-end.
st...@gmail.com <st...@gmail.com> #24
cm...@google.com <cm...@google.com> #25
Build tools 33.0.1 is released as of yesterday
We'll be updating the default in AGP, currently targeting 8.0, but might slip to 8.1 if more problems are found
ps...@gmail.com <ps...@gmail.com> #26
hm...@google.com <hm...@google.com>
cm...@google.com <cm...@google.com> #28
Punted updating the default to AGP 8.1 as Build tools release with the fix is not ready yet
ar...@gmail.com <ar...@gmail.com> #29
3i...@gmail.com <3i...@gmail.com> #30
พัฒนา
3i...@gmail.com <3i...@gmail.com> #31
ซอฟแวร์
al...@gmail.com <al...@gmail.com> #32
al...@gmail.com <al...@gmail.com> #33
ch...@gmail.com <ch...@gmail.com> #34
Command: C:\Users\DELL\Downloads\flutter_windows_3.7.6-stable\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev C:\Users\DELL\Downloads\flutter_windows_3.7.6-stable\flutter\bin\cache\dart-sdk\bin\snapshots\frontend_server.dart.snapshot --sdk-root C:\Users\DELL\Downloads\flutter_windows_3.7.6-stable\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --target=flutter --no-print-incremental-dependencies -Dflutter.inspector.structuredErrors=true -DFLUTTER_WEB_AUTO_DETECT=true -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation --no-link-platform --packages D:\practice\.dart_tool\package_config.json --output-dill D:\practice\.dart_tool\flutter_build\04523534c1a3dbfdd16eb9d4006a6c92\app.dill --depfile D:\practice\.dart_tool\flutter_build\04523534c1a3dbfdd16eb9d4006a6c92\kernel_snapshot.d --incremental --initialize-from-dill D:\practice\.dart_tool\flutter_build\04523534c1a3dbfdd16eb9d4006a6c92\app.dill --source file:///D:/practice/.dart_tool/flutter_build/dart_plugin_registrant.dart --source package:flutter/src/dart_plugin_registrant.dart -Dflutter.dart_plugin_registrant=file:///D:/practice/.dart_tool/flutter_build/dart_plugin_registrant.dart --verbosity=error package:practice/main.dart
FAILURE: Build failed with an exception.
* Where:
Script 'C:\Users\DELL\Downloads\flutter_windows_3.7.6-stable\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1151
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'C:\Users\DELL\Downloads\flutter_windows_3.7.6-stable\flutter\bin\flutter.bat'' finished with non-zero exit value 1
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at
BUILD FAILED in 14s
Exception: Gradle task assembleDebug failed with exit code 1
[Deleted User] <[Deleted User]> #35
Isn't this fixed already? Why is this blocking a release when it was fixed in built tools 33.0.1?
hm...@google.com <hm...@google.com> #36
Yes, this is now fixed. The default version of build-tools from AGP 8.2 alpha version and onwards should be 34.0.0-rc3 which includes all build tool related fixes.
ki...@gmail.com <ki...@gmail.com> #37
gimana?
Description
Existing Android library project that is building and running fine with
build-tools
32.0.0
fails to build with build-tools33.0.0
(changing nothing else).Exception report generated by building with
--stacktrace
atttached.Note that obtaining the command line from the exception report and executing this in a cmd shell succeeds, so I am guessing this is due to nuances of execution from within Gradle, etc (perhaps UAC mess?!? this is Windows after all).
Build: AI-212.5712.43.2112.8609683, 202205181650,
AI-212.5712.43.2112.8609683, JRE 11.0.12+7-b1504.28-7817840x64 JetBrains s.r.o, OS Windows 10(amd64) v10.0 , screens 1920.0x1080.0
AS: Chipmunk | 2021.2.1 Patch 1; Kotlin plugin: 212-1.7.0-release-281-AS5457.46; Android Gradle Plugin: 7.2.1; Gradle: 7.4.2; Gradle JDK: version 11.0.15; NDK: from local.properties: (not specified), latest from SDK: (not found); LLDB: LLDB 3.1 (revision: 3.1.4508709); CMake: from local.properties: (not specified), latest from SDK: 3.18.1-g262b901-dirty, from PATH: (not found)Source: send_feedback_icon