Refactor RateLimitAlgorithm, create RateLimitEnum, BaseEnum to extract the common part.

// Describe your PR here; eg. Fixes #issueNo
Create the baseEnum, is expected to make all enumeration implements this interface, extract the public enumeration of all parts, in some scenarios using the enumeration stone, can do some abstract, if the interface is redundant, I will delete them, if you feel this interface is meaningful, I will present all the enumeration to alter, Both implement this interface and replace it with BaseEnum where an interface call can be made.

Make sure that:

[x] You have read the contribution guidelines.
[x] You submit test cases (unit or integration tests) that back your changes.
[x] Your local test passed mvn clean install -Dmaven.javadoc.skip=true.

Codecov Report

Merging #1391 (d4754fe) into master (ac0d941) will decrease coverage by 0.76%.
The diff coverage is 34.78%.

@@             Coverage Diff              @@
##             master    #1391      +/-   ##
============================================
- Coverage     67.23%   66.46%   -0.77%
+ Complexity     2142     2132      -10
============================================
  Files           404      405       +1
  Lines          8784     8789       +5
  Branches        880      880
============================================
- Hits           5906     5842      -64
- Misses         2441     2508      +67
- Partials        437      439       +2

Impacted Files
Coverage Δ
Complexity Δ

...soul/common/enums/AdminDataPermissionTypeEnum.java
0.00% <0.00%> (ø)
0.00 <0.00> (ø)

...mara/soul/common/enums/AdminPluginOperateEnum.java
0.00% <ø> (ø)
0.00 <0.00> (ø)

...g/dromara/soul/common/enums/AdminResourceEnum.java
0.00% <ø> (ø)
0.00 <0.00> (ø)

...org/dromara/soul/common/enums/ConfigGroupEnum.java
100.00% <ø> (ø)
4.00 <0.00> (ø)

...g/dromara/soul/common/enums/DataEventTypeEnum.java
100.00% <ø> (ø)
4.00 <0.00> (ø)

...va/org/dromara/soul/common/enums/DataSyncEnum.java
100.00% <ø> (ø)
3.00 <0.00> (ø)

.../org/dromara/soul/common/enums/HttpMethodEnum.java
87.50% <ø> (ø)
5.00 <0.00> (ø)

...ra/soul/common/enums/HystrixIsolationModeEnum.java
100.00% <ø> (ø)
1.00 <0.00> (ø)

...org/dromara/soul/common/enums/LoadBalanceEnum.java
100.00% <ø> (ø)
1.00 <0.00> (ø)

...a/org/dromara/soul/common/enums/MatchModeEnum.java
100.00% <ø> (ø)
4.00 <0.00> (ø)

... and 32 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ac0d941...d4754fe. Read the comment docs.


Add cargo cache to Github actions to speed up builds

Signed-off-by: Andriy Redko<EMAIL_ADDRESS>Description
Add cargo cache to Github actions to speed up builds
Issues Resolved
N/A
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #121 (cc1f744) into main (d968176) will decrease coverage by 40.62%.
The diff coverage is n/a.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@            Coverage Diff             @@
##             main    #121       +/-   ##
==========================================
- Coverage   46.76%   6.15%   -40.62%
==========================================
  Files          52      51        -1
  Lines       28810   28711       -99
==========================================
- Hits        13473    1767    -11706
- Misses      15337   26944    +11607

Flag
Coverage Δ

integration
?

unit
6.15% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

 Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Shaving off 50%  from Test CI:

after
before


Colorize doesn't work on transports.Console

I created a shared logger successfully, but it prints all white, even though I've set colorize to true. And as a test, My Label successfully prints out in red.
// Logging with Winston
const { red } = require('colors')
const os = require('os')
const fs = require('fs')
const path = require('path')
const config = require('../data/config/config')
const winston = require('winston')
const { createLogger, format, transports } = winston
const { combine, timestamp, label, printf } = format
const tsFormat = () => (new Date()).toLocaleTimeString()
const myFormat = printf(info => {
  return `${info.timestamp} [${info.label}] ${info.level}: ${info.message}`
})

const logDir = path.resolve(os.homedir(), '.curator-server')

if (!fs.existsSync(logDir)) {
  fs.mkdirSync(logDir)
}

const logger = createLogger({
  format: combine(
    label({ label: red('My Label') }),
    timestamp(),
    myFormat
  ),
  transports: [
    new transports.Console({ level: config.logLevel, humanReadableUnhandledException: true, colorize: true }),
    new transports.File({ filename: path.resolve(logDir, 'info.log'), level: 'info' }),
    new transports.File({ filename: path.resolve(logDir, 'error.log'), level: 'error' })
  ]
})

module.exports = logger

Try moving the colorize to a format property inside your Console constructor:
new transports.Console({ level: config.logLevel, humanReadableUnhandledException: true, format: colorize() })

I have the same problem and your suggestion doesn't work for me, unfortunately. For
new transports.Console({ level: config.logLevel, format: colorize() })
I get

colorize is not defined
I also tried
winston.format.colorize()
which doesn't throw any error, but doesn't work either.
BTW: Calling colorize() is not the way this is described in the docs.

Right, so I've looked more into this. You can't "format.colorize()" after you use "myFormat" since the modifications colorize does would not be seen in the final message.
You would need to add colorize and myFormat to the format specifiers of each transport instead of for the whole logger.
const logger = createLogger({
  format: combine(
    label({ label: red('My Label') }),
    timestamp()
  ),
  transports: [
    new transports.Console({
      format: combine(
        colorize(),
        myFormat
      ),
      level: 'silly' }),
    new transports.File({ format: myFormat, filename: path.resolve(logDir, 'info.log'), level: 'info' }),
    new transports.File({ format: myFormat, filename: path.resolve(logDir, 'error.log'), level: 'error' })
  ]
})

Thanks! Works! Just for info I prefer to do the 'require' that way:
const winston = require('winston');
const myConsoleFormat = **winston.format.**printf(function (info) {
  return `${info.level}: ${info.message} (${moment().format('YYYY-MM-DDTHH:mm:ss.SSSZZ')})`;
});
var myLogger = winston.createLogger({
    transports: [
      new winston.transports.Console({ format: **winston.format.combine**( **winston.format.colorize**(), myConsoleFormat)  })
    ],
    level: 'silly',
  });

In my opinion, it's more clear what comes from Winston and what not.

I was just using the style used in the original example code here.

This worked for me.
Additionally, before reading this answer, I came across the Transport docs here, but it specifies formatter instead of format. I had unsuccessfully tried close to what was suggested, using formatter instead and was unsuccessful. Wouldn't have known to do format if not for the answer from @mempf.

Winston is in the middle of transitioning to version 3.0.0 which has breaking API changes when it comes to formatting.

Ah! Completely understandable. Thanks for your help.

If you're like me you might have ended up here because it is not obvious that order is important.  It must be:
format: combine(colorize(), myFormat)
and NOT:
format: combine(myFormat, colorize())
which simply silently fails to color anything.

This is still broken in the 2.4.1 release version. Are there any plans to fix this or do we have to wait until version 3 finally gets released before Winston supports colors?

Updating docs/transports.md is one of the last things to do before the release of<EMAIL_ADDRESS>on May 29th. If you're looking for a way to get involved or help with the project a PR for those docs would be outstanding!

Right, so I've looked more into this. You can't "format.colorize()" after you use "myFormat" since the modifications colorize does would not be seen in the final message.
You would need to add colorize and myFormat to the format specifiers of each transport instead of for the whole logger.
const winston = require('winston')
const { createLogger, format, transports } = winston
const { combine, timestamp, label, printf, colorize } = format

const logger = createLogger({
  format: combine(
    label({ label: red('My Label') }),
    timestamp()
  ),
  transports: [
    new transports.Console({
      format: combine(
        colorize(),
        myFormat
      ),
      level: 'silly' }),
    new transports.File({ format: myFormat, filename: path.resolve(logDir, 'info.log'), level: 'info' }),
    new transports.File({ format: myFormat, filename: path.resolve(logDir, 'error.log'), level: 'error' })
  ]
})

The problem is that on each transport it will run format function. So, if I log like this logger.silly('hello') - myFormat will run 3 times. I think it will be great whether format method first runs from transports and later global one, for now is vice versa


Using ds4drv as a python library instead of service?

Is it possible to use ds4drv as a python package that's imported, creating the BluetoothBackend, and devices in my own code to get greater control rather than using it as a service that created a uinput device?
I'm trying to get access to controller connect and disconnect events and avoid the extra device that hidraw driver creates. I'd also like to programatically access the battery level and set the LED color, which I don't think is possible through evdev.

Yes, this is possible, but ds4drv doesn't support this feature. You will have to modify the code.


[stable/locust] Update container version

Description
Updates the locust container version to the most recent (2.15.1)
Checklist

[x] Title of the PR starts with chart name (e.g. [stable/mychartname])
[ ] I have read the contribution instructions, bumped chart version and regenerated the docs
[ ] Github actions are passing

Thanks for the quick merge!


[JS] Correctly format floating numbers when they're close to an integer (bug 1918115)

/botio integrationtest


Add "Hello, World!" demo

When I was trying to get started with tcell, I found the provided demos a little intimidating. Thus I created the most minimal demo I could think of. Might also help with https://github.com/gdamore/tcell/issues/163#issuecomment-603932645.

Thanks for your contribution!


Dark Messiah of Might and Magic crash on start

Software information
Tried with a few Proton releases and also wine 4.7
System information

GPU: AMD RX 590
Driver: Mesa 19.0.3
Wine version: 4.7, also Proton 3.16.9 (and lots of others)
D9VK version: commit 18c78ce3, the latest master as of writing this

So essentially the game gives a black screen on starting. Loads for a really long time, then crashes. From what I could tell, it fills up all the RAM and then gets killed by the OOM killer. If not using address extension in wine, it crashes by itself a bit sooner. This does NOT happen with wined3d or Gallium Nine.
Here's mm_d3d9.log:

info:  Game: mm.exe
info:  DXVK: v1.1.1
warn:  OpenVR: Failed to locate module
info:  Enabled instance extensions:
info:    VK_KHR_get_physical_device_properties2
info:    VK_KHR_surface
info:    VK_KHR_win32_surface
info:  AMD RADV POLARIS10 (LLVM 8.0.0):
info:    Driver: 19.0.3
info:    Vulkan: 1.1.90
info:    Memory Heap[0]:
info:      Size: 7936 MiB
info:      Flags: 0x1
info:      Memory Type[0]: Property Flags = 0x1
info:    Memory Heap[1]:
info:      Size: 256 MiB
info:      Flags: 0x1
info:      Memory Type[2]: Property Flags = 0x7
info:    Memory Heap[2]:
info:      Size: 8192 MiB
info:      Flags: 0x0
info:      Memory Type[1]: Property Flags = 0x6
info:      Memory Type[3]: Property Flags = 0xe
info:  AMD RADV POLARIS10 (LLVM 8.0.0):
info:    Driver: 19.0.3
info:    Vulkan: 1.1.90
info:    Memory Heap[0]:
info:      Size: 7936 MiB
info:      Flags: 0x1
info:      Memory Type[0]: Property Flags = 0x1
info:    Memory Heap[1]:
info:      Size: 256 MiB
info:      Flags: 0x1
info:      Memory Type[2]: Property Flags = 0x7
info:    Memory Heap[2]:
info:      Size: 8192 MiB
info:      Flags: 0x0
info:      Memory Type[1]: Property Flags = 0x6
info:      Memory Type[3]: Property Flags = 0xe
info:  Process set as DPI aware
info:  Game: mm.exe
info:  DXVK: v1.1.1
warn:  OpenVR: Failed to locate module
info:  Enabled instance extensions:
info:    VK_KHR_get_physical_device_properties2
info:    VK_KHR_surface
info:    VK_KHR_win32_surface
info:  AMD RADV POLARIS10 (LLVM 8.0.0):
info:    Driver: 19.0.3
info:    Vulkan: 1.1.90
info:    Memory Heap[0]:
info:      Size: 7936 MiB
info:      Flags: 0x1
info:      Memory Type[0]: Property Flags = 0x1
info:    Memory Heap[1]:
info:      Size: 256 MiB
info:      Flags: 0x1
info:      Memory Type[2]: Property Flags = 0x7
info:    Memory Heap[2]:
info:      Size: 8192 MiB
info:      Flags: 0x0
info:      Memory Type[1]: Property Flags = 0x6
info:      Memory Type[3]: Property Flags = 0xe
info:  AMD RADV POLARIS10 (LLVM 8.0.0):
info:    Driver: 19.0.3
info:    Vulkan: 1.1.90
info:    Memory Heap[0]:
info:      Size: 7936 MiB
info:      Flags: 0x1
info:      Memory Type[0]: Property Flags = 0x1
info:    Memory Heap[1]:
info:      Size: 256 MiB
info:      Flags: 0x1
info:      Memory Type[2]: Property Flags = 0x7
info:    Memory Heap[2]:
info:      Size: 8192 MiB
info:      Flags: 0x0
info:      Memory Type[1]: Property Flags = 0x6
info:      Memory Type[3]: Property Flags = 0xe
info:  Process set as DPI aware
info:  Game: mm.exe
info:  DXVK: v1.1.1
warn:  OpenVR: Failed to locate module
info:  Enabled instance extensions:
info:    VK_KHR_get_physical_device_properties2
info:    VK_KHR_surface
info:    VK_KHR_win32_surface
info:  AMD RADV POLARIS10 (LLVM 8.0.0):
info:    Driver: 19.0.3
info:    Vulkan: 1.1.90
info:    Memory Heap[0]:
info:      Size: 7936 MiB
info:      Flags: 0x1
info:      Memory Type[0]: Property Flags = 0x1
info:    Memory Heap[1]:
info:      Size: 256 MiB
info:      Flags: 0x1
info:      Memory Type[2]: Property Flags = 0x7
info:    Memory Heap[2]:
info:      Size: 8192 MiB
info:      Flags: 0x0
info:      Memory Type[1]: Property Flags = 0x6
info:      Memory Type[3]: Property Flags = 0xe
info:  AMD RADV POLARIS10 (LLVM 8.0.0):
info:    Driver: 19.0.3
info:    Vulkan: 1.1.90
info:    Memory Heap[0]:
info:      Size: 7936 MiB
info:      Flags: 0x1
info:      Memory Type[0]: Property Flags = 0x1
info:    Memory Heap[1]:
info:      Size: 256 MiB
info:      Flags: 0x1
info:      Memory Type[2]: Property Flags = 0x7
info:    Memory Heap[2]:
info:      Size: 8192 MiB
info:      Flags: 0x0
info:      Memory Type[1]: Property Flags = 0x6
info:      Memory Type[3]: Property Flags = 0xe
info:  Process set as DPI aware
info:  Enabled device extensions:
info:    VK_EXT_conditional_rendering
info:    VK_EXT_memory_priority
info:    VK_EXT_shader_viewport_index_layer
info:    VK_EXT_transform_feedback
info:    VK_EXT_vertex_attribute_divisor
info:    VK_KHR_dedicated_allocation
info:    VK_KHR_descriptor_update_template
info:    VK_KHR_driver_properties
info:    VK_KHR_get_memory_requirements2
info:    VK_KHR_image_format_list
info:    VK_KHR_maintenance1
info:    VK_KHR_maintenance2
info:    VK_KHR_sampler_mirror_clamp_to_edge
info:    VK_KHR_shader_draw_parameters
info:    VK_KHR_swapchain
info:  DXVK: Read 0 valid state cache entries
info:  DXVK: Using 3 compiler threads
warn:  D3D9: VK_FORMAT_D24_UNORM_S8_UINT -> VK_FORMAT_D32_SFLOAT_S8_UINT
warn:  D3D9DeviceEx::SetRenderState: Unhandled render state 9
warn:  D3D9DeviceEx::SetRenderState: Unhandled render state 16
warn:  D3D9DeviceEx::SetRenderState: Unhandled render state 37
warn:  D3D9DeviceEx::SetRenderState: Unhandled render state 38
warn:  D3D9DeviceEx::SetRenderState: Unhandled render state 60
warn:  D3D9DeviceEx::SetRenderState: Unhandled render state 136
warn:  D3D9DeviceEx::SetRenderState: Unhandled render state 137
warn:  D3D9DeviceEx::SetRenderState: Unhandled render state 141
warn:  D3D9DeviceEx::SetRenderState: Unhandled render state 142
warn:  D3D9DeviceEx::SetRenderState: Unhandled render state 145
warn:  D3D9DeviceEx::SetRenderState: Unhandled render state 146
warn:  D3D9DeviceEx::SetRenderState: Unhandled render state 154
warn:  D3D9DeviceEx::SetRenderState: Unhandled render state 155
warn:  D3D9DeviceEx::SetRenderState: Unhandled render state 158
warn:  D3D9DeviceEx::SetRenderState: Unhandled render state 161
warn:  D3D9DeviceEx::SetRenderState: Unhandled render state 166
warn:  D3D9DeviceEx::SetRenderState: Unhandled render state 172
warn:  D3D9DeviceEx::SetRenderState: Unhandled render state 173
warn:  D3D9DeviceEx::SetRenderState: Unhandled render state 178
warn:  D3D9DeviceEx::SetRenderState: Unhandled render state 179
warn:  D3D9DeviceEx::SetRenderState: Unhandled render state 182
warn:  D3D9DeviceEx::SetTextureStageState: Stub
info:  Presenter: Actual swap chain properties:
Format:       VK_FORMAT_B8G8R8A8_UNORM
Present mode: VK_PRESENT_MODE_IMMEDIATE_KHR
Buffer size:  1920x1080
Image count:  2

I presume it's because of unimplemented things? If not, I can provide API traces.
EDIT: fix typo

On my side, Dark Messiah doesn't crash on start. I can play the game perfectly fine.
However, there is an issue when you are underwater:

I would like to apitrace it but I can't with wined3d, I only have the sound...
Is an apitrace with d9vk worth it?

This bug report was a long time ago, I have to re-check myself if it works or not. Will do when I have time.

My bug is gone (tested with #784). I think we can close this issue.


build Github Pages on CI

build Github pages on CI

Coverage increased (+0.02%) to 0.801% when pulling c63f7572ca0a6ac517eb00207720d7607bc4db05 on embbnux:build-pages into 8337df3d4a853e8a84ed9fe7bb25010652dc1da9 on ringcentral:master.


mount /tmp in to ram

https://forums.raspberrypi.com/viewtopic.php?t=226425
We write to /tmp a lot when working with caches - makes sense to reduce the IO by keeping it in memory.

Added
tmpfs /tmp tmpfs defaults,noatime 0 0

to /etc/fstab and rebooted
now I see
> df -h
...
tmpfs           238M   24K  238M   1% /tmp


[3.0] Optimize Converter to cache

What is the purpose of the change
Brief changelog
Verifying this change

Checklist

[x] Make sure there is a GitHub_issue field for the change (usually before you start working on it). Trivial changes like typos do not require a GitHub issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[ ] Each commit in the pull request should have a meaningful subject line and body.
[ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[ ] Check if is necessary to patch to Dubbo 3 if you are work on Dubbo 2.7
[ ] Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add sample in dubbo samples project.
[ ] Add some description to dubbo-website project if you are requesting to add a feature.
[ ] GitHub Actions works fine on your own branch.
[ ] If this contribution is large, please follow the Software Donation Guide.

Codecov Report

Merging #9861 (fd192f9) into 3.0 (9579c2e) will decrease coverage by 0.13%.
The diff coverage is 96.00%.

@@             Coverage Diff              @@
##                3.0    #9861      +/-   ##
============================================
- Coverage     65.77%   65.64%   -0.14%
  Complexity      320      320
============================================
  Files          1212     1213       +1
  Lines         52808    52847      +39
  Branches       8008     8009       +1
============================================
- Hits          34737    34692      -45
- Misses        14286    14355      +69
- Partials       3785     3800      +15

Impacted Files
Coverage Δ

...ava/org/apache/dubbo/common/convert/Converter.java
66.66% <ø> (-10.26%)
:arrow_down:

...org/apache/dubbo/common/convert/ConverterUtil.java
86.66% <86.66%> (ø)

...ache/dubbo/common/CommonScopeModelInitializer.java
100.00% <100.00%> (ø)

...mon/src/main/java/org/apache/dubbo/common/URL.java
45.68% <100.00%> (ø)

...ommon/convert/multiple/StringToArrayConverter.java
100.00% <100.00%> (ø)

...nvert/multiple/StringToBlockingDequeConverter.java
100.00% <100.00%> (ø)

...nvert/multiple/StringToBlockingQueueConverter.java
100.00% <100.00%> (ø)

.../convert/multiple/StringToCollectionConverter.java
100.00% <100.00%> (ø)

...ommon/convert/multiple/StringToDequeConverter.java
100.00% <100.00%> (ø)

...on/convert/multiple/StringToIterableConverter.java
90.90% <100.00%> (+0.90%)
:arrow_up:

... and 50 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9579c2e...fd192f9. Read the comment docs.


Provide newtype wrappers for trimmed & untrimmed stdout

The idea is that we remove the impl for CmdOutput for String, but add two new ones for StdoutTrimmed and StdoutUntrimmed. They are both newtype wrappers around String. That way we would force users to make a decision about whether they want trimmed or untrimmed output. The current String impl (on master) does not trim. But that's not good, since in most cases, users probably would want trimmed output. On the other hand, making the String impl trim by default is possible, but also really surprising. So this is maybe the best option.
It'd look like this:
let StdoutTrimmed(ls_executable) = cmd!("which ls");
let StdoutUntrimmed(unmodified_output) = cmd!("some command");

Closing in favor of #42.


Input feature dimension mismatch

Hi
When I send an audio to server I got an error as follow as
ERROR ([5.2.74~1-dbdd]:DecodableNnetLoopedOnlineBase():decodable-online-looped.cc:45) Input feature dimension mismatch: got 40 but network expects 43
where can change the input dimension to 43?
I will appreciate any help

Check that your mfcc-config file, as specified in the configuration YAML file, is compatible with your acoustic model.

Thank you for your reply.
in my mfcc-config file as follow as
--use-energy=false
--sample-frequency=16000
--num-mel-bins=40
--num-ceps=40
--low-freq=40
--high-freq=-200
which argument I must be modify

Sorry, I don't know the specifics of your acoustic model.


having error while installing tensorflow inside our tenserflow1 project

(tensorflow1) C:\Users\kartar kat>pip install --ignore-installed --upgrade tensorflow-gpu Collecting tensorflow-gpu
Could not find a version that satisfies the requirement tensorflow-gpu (from versions: )
No matching distribution found for tensorflow-gpu

solved i


Power Series returning Empty When Facilities are not Generating

Currently on OpenNEM when a facility is not generating it returns no output series and the user on the FE is shown

Facility statistics data not available

When in the case of Callide, amongst others - it's not that the data is not available, the facility is not generating
The user experience here is broken

[ ] We want to coalesce to zero here
[ ] FE show a flat red line at zero
[ ] What are the implications here on other parts?

@simonhac


Forklift: Migrate all datasets to Compaction 2.0

As a system administrator, I would like all the datasets in the system to go through the same compaction process to reduce system complexity.
AC:

Compaction 2.0 is the default process for all datasets
Table record count metrics are still collected

Tech Notes:

Large datasets should be migrated and partitioned by hand
Most datasets can be migrated automatically

Closed, duplicate of: https://github.com/Datastillery/smartcitiesdata/issues/1136


Discuss: Add console log Step for better situation exploration

"I log {string}" or something

Would this really help?

For now, without the ability to log variables I think this isn't useful. Can re-open if needed.


[modify] db/seeds cms cur_user

Coverage increased (+12.8%) to 82.551% when pulling 789df6107702ff79588012d9ab7c819f4a088d64 on itowtips:fix-seed into 81ce9625549ddb78a20ff9ffe385114ebebd2d79 on shirasagi:master.


🐛 [firebase_analytics] Not working on Android with manual and dart-only initialisation

Bug report
Describe the bug
We're not receiving any analytics events from the Android platform. Neither the "manual" initialisation nor the CLI init seems to be working.

Flutter doctor
Run flutter doctor and paste the output below:
Click To Expand
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, 3.8.0-7.0.pre.24, on macOS 12.5 21G72 darwin-arm64, locale en-HR)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.3)
[✓] VS Code (version 1.75.0)
[✓] VS Code (version 1.74.0-insider)
[✓] Connected device (3 available)
[✓] HTTP Host Availability

• No issues found!

Flutter dependencies
Run flutter pub deps -- --style=compact and paste the output below:
Click To Expand
Dart SDK 3.0.0-204.0.dev
Flutter SDK 3.8.0-7.0.pre.24
clickapo 1.0.1+1

dependencies:
- camera 0.10.0+4 [camera_android camera_avfoundation camera_platform_interface camera_web flutter flutter_plugin_android_lifecycle quiver]
- clickapo_chat 0.0.1 [flutter clickapo_rest_api socket_io_client linkify_text flutter_svg http open_filex share_plus path_provider]
- clickapo_rest_api 0.0.1 [flutter http json_annotation shared_preferences encrypt web_socket_channel flutter_secure_storage path_provider graphql]
- cupertino_icons 1.0.5
- device_info_plus 4.1.3 [flutter device_info_plus_platform_interface device_info_plus_macos device_info_plus_linux device_info_plus_web device_info_plus_windows]
- file_picker 4.6.1 [flutter flutter_web_plugins flutter_plugin_android_lifecycle plugin_platform_interface ffi path win32]
- firebase_analytics 10.1.0 [firebase_analytics_platform_interface firebase_analytics_web firebase_core firebase_core_platform_interface flutter]
- firebase_core 2.4.1 [firebase_core_platform_interface firebase_core_web flutter meta]
- firebase_messaging 14.2.1 [firebase_core firebase_core_platform_interface firebase_messaging_platform_interface firebase_messaging_web flutter meta]
- flutter 0.0.0 [characters collection js material_color_utilities meta vector_math sky_engine]
- flutter_html 2.1.5 [html csslib flutter]
- flutter_image_compress 1.1.3 [flutter]
- flutter_localizations 0.0.0 [flutter intl characters clock collection js material_color_utilities meta path vector_math]
- flutter_map 2.2.0 [async collection flutter http latlong2 meta polylabel positioned_tap_detector_2 proj4dart tuple vector_math]
- flutter_svg 1.1.6 [flutter meta path_drawing vector_math xml]
- geolocator 8.2.1 [flutter geolocator_platform_interface geolocator_android geolocator_apple geolocator_web geolocator_windows]
- google_mlkit_barcode_scanning 0.4.0 [flutter google_mlkit_commons]
- image 3.3.0 [archive meta xml]
- image_picker 0.8.6 [flutter image_picker_android image_picker_for_web image_picker_ios image_picker_platform_interface]
- in_app_review 2.0.6 [flutter in_app_review_platform_interface]
- linkfy_text 1.1.5 [flutter]
- local_auth 2.1.3 [flutter local_auth_android local_auth_ios local_auth_platform_interface local_auth_windows]
- open_filex 4.3.2 [flutter ffi]
- path 1.8.3
- path_provider 2.0.12 [flutter path_provider_android path_provider_foundation path_provider_linux path_provider_platform_interface path_provider_windows]
- permission_handler 10.2.0 [flutter meta permission_handler_android permission_handler_apple permission_handler_windows permission_handler_platform_interface]
- pool 1.5.1 [async stack_trace]
- share_plus 5.0.0 [cross_file meta mime flutter share_plus_platform_interface share_plus_linux share_plus_macos share_plus_windows share_plus_web]
- shared_preferences 2.0.17 [flutter shared_preferences_android shared_preferences_foundation shared_preferences_linux shared_preferences_platform_interface shared_preferences_web shared_preferences_windows]
- socket_io_client 2.0.1 [logging socket_io_common js]
- sqflite 2.2.4+1 [flutter sqflite_common path]
- uni_links 0.5.1 [flutter uni_links_platform_interface uni_links_web]
- url_launcher 6.1.9 [flutter url_launcher_android url_launcher_ios url_launcher_linux url_launcher_macos url_launcher_platform_interface url_launcher_web url_launcher_windows]
- web_socket_channel 2.2.0 [async crypto stream_channel]
- webview_flutter 4.0.2 [flutter webview_flutter_android webview_flutter_platform_interface webview_flutter_wkwebview]

dev dependencies:
- alice 0.2.5 [flutter http dio flutter_local_notifications rxdart path_provider permission_handler package_info_plus share chopper collection]
- build_runner 2.4.0 [args async analyzer build build_config build_daemon build_resolvers build_runner_core code_builder collection crypto dart_style frontend_server_client glob graphs http_multi_server io js logging meta mime package_config path pool pub_semver pubspec_parse shelf shelf_web_socket stack_trace stream_transform timing watcher web_socket_channel yaml]
- device_preview 1.1.0 [flutter flutter_localizations provider device_frame freezed_annotation json_annotation shared_preferences collection]
- flutter_lints 2.0.1 [lints]
- flutter_publishing_automation 0.0.1 [flutter file_picker shared_preferences]
- flutter_test 0.0.0 [flutter test_api path fake_async clock stack_trace vector_math async boolean_selector characters collection js matcher material_color_utilities meta source_span stream_channel string_scanner term_glyph]
- integration_test 0.0.0 [flutter flutter_driver flutter_test path vm_service async boolean_selector characters clock collection fake_async file js matcher material_color_utilities meta source_span stack_trace stream_channel string_scanner sync_http term_glyph test_api vector_math webdriver]
- screenshot 1.3.0 [flutter]
- test 1.22.2 [analyzer async boolean_selector collection coverage http_multi_server io js node_preamble package_config path pool shelf shelf_packages_handler shelf_static shelf_web_socket source_span stack_trace stream_channel typed_data web_socket_channel webkit_inspection_protocol yaml test_api test_core]

dependency overrides:
- camera_android 0.10.0+1 [camera_platform_interface flutter flutter_plugin_android_lifecycle stream_transform]
- ffi 2.0.1
- permission_handler 10.2.0 [flutter meta permission_handler_android permission_handler_apple permission_handler_windows permission_handler_platform_interface]
- share_plus 5.0.0 [cross_file meta mime flutter share_plus_platform_interface share_plus_linux share_plus_macos share_plus_windows share_plus_web]

transitive dependencies:
- _fe_analyzer_shared 47.0.0 [meta]
- _flutterfire_internals 1.0.12 [collection firebase_core firebase_core_platform_interface flutter meta]
- analyzer 4.7.0 [_fe_analyzer_shared collection convert crypto glob meta package_config path pub_semver source_span watcher yaml]
- archive 3.3.6 [crypto path pointycastle]
- args 2.3.2
- asn1lib 1.4.0
- async 2.10.0 [collection meta]
- boolean_selector 2.1.1 [source_span string_scanner]
- build 2.3.1 [analyzer async convert crypto glob logging meta path]
- build_config 1.1.1 [checked_yaml json_annotation path pubspec_parse yaml]
- build_daemon 3.1.0 [built_collection built_value http_multi_server logging path pool shelf shelf_web_socket stream_transform watcher web_socket_channel]
- build_resolvers 2.0.10 [analyzer async build crypto graphs logging path package_config pool pub_semver stream_transform yaml]
- build_runner_core 7.2.7 [async build build_config build_resolvers collection convert crypto glob graphs json_annotation logging meta path package_config pool timing watcher yaml]
- built_collection 5.1.1
- built_value 8.4.3 [built_collection collection fixnum meta]
- camera_avfoundation 0.9.11 [camera_platform_interface flutter stream_transform]
- camera_platform_interface 2.4.0 [cross_file flutter plugin_platform_interface stream_transform]
- camera_web 0.3.1+1 [camera_platform_interface flutter flutter_web_plugins stream_transform]
- characters 1.2.1
- checked_yaml 2.0.2 [json_annotation source_span yaml]
- chopper 4.0.6 [http meta logging]
- clock 1.1.1
- code_builder 4.4.0 [built_collection built_value collection matcher meta]
- collection 1.17.1
- convert 3.1.1 [typed_data]
- coverage 1.6.3 [args logging package_config path source_maps stack_trace vm_service]
- cross_file 0.3.3+4 [js meta]
- crypto 3.0.2 [typed_data]
- csslib 0.17.2 [source_span]
- dart_style 2.2.4 [analyzer args path pub_semver source_span]
- dbus 0.7.8 [args ffi meta xml]
- device_frame 1.1.0 [freezed_annotation flutter]
- device_info_plus_linux 3.0.0 [device_info_plus_platform_interface file flutter meta]
- device_info_plus_macos 3.0.0 [device_info_plus_platform_interface flutter]
- device_info_plus_platform_interface 3.0.0 [flutter meta plugin_platform_interface]
- device_info_plus_web 3.0.0 [device_info_plus_platform_interface flutter_web_plugins flutter]
- device_info_plus_windows 4.1.0 [device_info_plus_platform_interface ffi flutter win32]
- dio 4.0.6 [http_parser path]
- encrypt 5.0.1 [args asn1lib clock collection crypto pointycastle]
- fake_async 1.3.1 [clock collection]
- file 6.1.4 [meta path]
- firebase_analytics_platform_interface 3.3.17 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface]
- firebase_analytics_web 0.5.1+8 [_flutterfire_internals firebase_analytics_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins js]
- firebase_core_platform_interface 4.5.2 [collection flutter flutter_test meta plugin_platform_interface]
- firebase_core_web 2.1.0 [firebase_core_platform_interface flutter flutter_web_plugins js meta]
- firebase_messaging_platform_interface 4.2.10 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface]
- firebase_messaging_web 3.2.11 [_flutterfire_internals firebase_core firebase_core_web firebase_messaging_platform_interface flutter flutter_web_plugins js meta]
- fixnum 1.1.0
- flutter_driver 0.0.0 [file flutter flutter_test fuchsia_remote_debug_protocol path meta vm_service webdriver async boolean_selector characters clock collection js matcher material_color_utilities platform process source_span stack_trace stream_channel string_scanner sync_http term_glyph test_api vector_math]
- flutter_local_notifications 9.9.1 [clock flutter flutter_local_notifications_linux flutter_local_notifications_platform_interface timezone]
- flutter_local_notifications_linux 0.5.1 [flutter flutter_local_notifications_platform_interface dbus path xdg_directories]
- flutter_local_notifications_platform_interface 5.0.0 [flutter plugin_platform_interface]
- flutter_plugin_android_lifecycle 2.0.7 [flutter]
- flutter_secure_storage 6.1.0 [flutter flutter_secure_storage_linux flutter_secure_storage_macos flutter_secure_storage_platform_interface flutter_secure_storage_web flutter_secure_storage_windows meta]
- flutter_secure_storage_linux 1.1.2 [flutter flutter_secure_storage_platform_interface]
- flutter_secure_storage_macos 1.1.2 [flutter flutter_secure_storage_platform_interface]
- flutter_secure_storage_platform_interface 1.0.1 [flutter plugin_platform_interface]
- flutter_secure_storage_web 1.1.1 [flutter flutter_secure_storage_platform_interface flutter_web_plugins js]
- flutter_secure_storage_windows 1.1.3 [flutter flutter_secure_storage_platform_interface]
- flutter_web_plugins 0.0.0 [flutter js characters collection material_color_utilities meta vector_math]
- freezed_annotation 2.2.0 [collection json_annotation meta]
- frontend_server_client 3.2.0 [async path]
- fuchsia_remote_debug_protocol 0.0.0 [process vm_service file meta path platform]
- geolocator_android 3.2.1 [flutter geolocator_platform_interface]
- geolocator_apple 2.2.5 [flutter geolocator_platform_interface]
- geolocator_platform_interface 4.0.7 [flutter plugin_platform_interface vector_math meta]
- geolocator_web 2.1.6 [flutter flutter_web_plugins geolocator_platform_interface]
- geolocator_windows 0.1.1 [flutter geolocator_platform_interface]
- glob 2.1.1 [async collection file path string_scanner]
- google_mlkit_commons 0.2.0 [flutter]
- gql 0.14.0 [collection meta source_span]
- gql_dedupe_link 2.0.3+1 [async gql_exec gql_link meta]
- gql_error_link 0.2.3+1 [async gql_exec gql_link meta]
- gql_exec 0.4.3 [collection gql meta]
- gql_http_link 0.4.5 [gql gql_exec gql_link http http_parser meta]
- gql_link 0.5.1 [gql gql_exec meta]
- gql_transform_link 0.2.2+1 [gql_exec gql_link]
- graphql 5.1.3 [meta path gql gql_exec gql_link gql_http_link gql_transform_link gql_error_link gql_dedupe_link hive normalize http collection web_socket_channel stream_channel rxdart uuid]
- graphs 2.2.0 [collection]
- hive 2.2.3 [meta crypto]
- html 0.15.1 [csslib source_span]
- http 0.13.5 [async http_parser meta path]
- http_multi_server 3.2.1 [async]
- http_parser 4.0.2 [collection source_span string_scanner typed_data]
- image_picker_android 0.8.5+5 [flutter flutter_plugin_android_lifecycle image_picker_platform_interface]
- image_picker_for_web 2.1.10 [flutter flutter_web_plugins image_picker_platform_interface]
- image_picker_ios 0.8.6+7 [flutter image_picker_platform_interface]
- image_picker_platform_interface 2.6.2 [cross_file flutter http plugin_platform_interface]
- in_app_review_platform_interface 2.0.4 [flutter url_launcher plugin_platform_interface platform]
- intl 0.18.0 [clock meta path]
- io 1.0.4 [meta path string_scanner]
- js 0.6.7 [meta]
- json_annotation 4.8.0 [meta]
- latlong2 0.8.1 [intl]
- linkify_text 0.0.9 [flutter url_launcher]
- lints 2.0.1
- lists 1.0.1 [meta]
- local_auth_android 1.0.18 [flutter flutter_plugin_android_lifecycle intl local_auth_platform_interface]
- local_auth_ios 1.0.12 [flutter intl local_auth_platform_interface]
- local_auth_platform_interface 1.0.6 [flutter plugin_platform_interface]
- local_auth_windows 1.0.5 [flutter local_auth_platform_interface]
- logging 1.1.1
- matcher 0.12.14 [meta stack_trace]
- material_color_utilities 0.2.0
- meta 1.9.0
- mgrs_dart 2.0.0 [unicode]
- mime 1.0.4
- nested 1.0.0 [flutter]
- node_preamble 2.0.1
- normalize 0.7.2 [gql collection]
- package_config 2.1.0 [path]
- package_info_plus 1.4.3+1 [flutter package_info_plus_platform_interface package_info_plus_linux package_info_plus_macos package_info_plus_windows package_info_plus_web]
- package_info_plus_linux 1.0.5 [package_info_plus_platform_interface flutter path]
- package_info_plus_macos 1.3.0 [flutter]
- package_info_plus_platform_interface 1.0.2 [flutter meta plugin_platform_interface]
- package_info_plus_web 1.0.6 [flutter flutter_web_plugins http meta package_info_plus_platform_interface]
- package_info_plus_windows 2.1.0 [package_info_plus_platform_interface ffi flutter win32]
- path_drawing 1.0.1 [vector_math meta path_parsing flutter]
- path_parsing 1.0.1 [vector_math meta]
- path_provider_android 2.0.22 [flutter path_provider_platform_interface]
- path_provider_foundation 2.1.1 [flutter path_provider_platform_interface]
- path_provider_linux 2.1.7 [ffi flutter path path_provider_platform_interface xdg_directories]
- path_provider_platform_interface 2.0.5 [flutter platform plugin_platform_interface]
- path_provider_windows 2.1.3 [ffi flutter path path_provider_platform_interface win32]
- permission_handler_android 10.2.0 [flutter permission_handler_platform_interface]
- permission_handler_apple 9.0.7 [flutter permission_handler_platform_interface]
- permission_handler_platform_interface 3.9.0 [flutter meta plugin_platform_interface]
- permission_handler_windows 0.1.2 [flutter permission_handler_platform_interface]
- petitparser 5.1.0 [meta]
- platform 3.1.0
- plugin_platform_interface 2.1.3 [meta]
- pointycastle 3.6.2 [collection convert js]
- polylabel 1.0.1 [collection]
- positioned_tap_detector_2 1.0.4 [flutter]
- process 4.2.4 [file path platform]
- proj4dart 2.1.0 [mgrs_dart wkt_parser meta]
- provider 6.0.5 [collection flutter nested]
- pub_semver 2.1.3 [collection meta]
- pubspec_parse 1.2.1 [checked_yaml collection json_annotation pub_semver yaml]
- quiver 3.2.1 [matcher]
- rxdart 0.27.7
- share 2.0.4 [meta mime flutter]
- share_plus_linux 3.0.1 [cross_file share_plus_platform_interface file flutter meta url_launcher]
- share_plus_macos 3.0.1 [share_plus_platform_interface flutter]
- share_plus_platform_interface 3.2.0 [cross_file flutter meta mime plugin_platform_interface path_provider uuid]
- share_plus_web 3.1.0 [cross_file share_plus_platform_interface url_launcher flutter flutter_web_plugins meta mime]
- share_plus_windows 4.0.0 [cross_file share_plus_platform_interface flutter meta url_launcher ffi win32]
- shared_preferences_android 2.0.15 [flutter shared_preferences_platform_interface]
- shared_preferences_foundation 2.1.3 [flutter shared_preferences_platform_interface]
- shared_preferences_linux 2.1.3 [file flutter path path_provider_linux path_provider_platform_interface shared_preferences_platform_interface]
- shared_preferences_platform_interface 2.1.0 [flutter plugin_platform_interface]
- shared_preferences_web 2.0.4 [flutter flutter_web_plugins shared_preferences_platform_interface]
- shared_preferences_windows 2.1.3 [file flutter path path_provider_platform_interface path_provider_windows shared_preferences_platform_interface]
- shelf 1.4.0 [async collection http_parser path stack_trace stream_channel]
- shelf_packages_handler 3.0.1 [path shelf shelf_static]
- shelf_static 1.1.1 [convert http_parser mime path shelf]
- shelf_web_socket 1.0.3 [shelf stream_channel web_socket_channel]
- sky_engine 0.0.99
- socket_io_common 2.0.2 [logging]
- source_map_stack_trace 2.1.1 [path source_maps stack_trace]
- source_maps 0.10.11 [source_span]
- source_span 1.9.1 [collection path term_glyph]
- sqflite_common 2.4.2+2 [synchronized path meta]
- stack_trace 1.11.0 [path]
- stream_channel 2.1.1 [async]
- stream_transform 2.1.0
- string_scanner 1.2.0 [source_span]
- sync_http 0.3.1
- synchronized 3.0.1
- term_glyph 1.2.1
- test_api 0.4.18 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph matcher]
- test_core 0.4.22 [analyzer async args boolean_selector collection coverage frontend_server_client glob io meta package_config path pool source_map_stack_trace source_maps source_span stack_trace stream_channel vm_service yaml matcher test_api]
- timezone 0.8.0 [path]
- timing 1.0.1 [json_annotation]
- tuple 2.0.1
- typed_data 1.3.1 [collection]
- uni_links_platform_interface 1.0.0 [flutter plugin_platform_interface]
- uni_links_web 0.1.0 [flutter flutter_web_plugins uni_links_platform_interface]
- unicode 0.3.1 [lists]
- url_launcher_android 6.0.23 [flutter url_launcher_platform_interface]
- url_launcher_ios 6.1.0 [flutter url_launcher_platform_interface]
- url_launcher_linux 3.0.2 [flutter url_launcher_platform_interface]
- url_launcher_macos 3.0.2 [flutter url_launcher_platform_interface]
- url_launcher_platform_interface 2.1.1 [flutter plugin_platform_interface]
- url_launcher_web 2.0.14 [flutter flutter_web_plugins url_launcher_platform_interface]
- url_launcher_windows 3.0.3 [flutter url_launcher_platform_interface]
- uuid 3.0.7 [crypto]
- vector_math 2.1.4
- vm_service 10.1.2
- watcher 1.0.2 [async path]
- webdriver 3.0.2 [matcher path stack_trace sync_http]
- webkit_inspection_protocol 1.2.0 [logging]
- webview_flutter_android 3.2.4 [flutter webview_flutter_platform_interface]
- webview_flutter_platform_interface 2.0.1 [flutter meta plugin_platform_interface]
- webview_flutter_wkwebview 3.0.5 [flutter path webview_flutter_platform_interface]
- win32 2.7.0 [ffi]
- wkt_parser 2.0.0
- xdg_directories 0.2.0+3 [meta path process]
- xml 6.2.2 [collection meta petitparser]
- yaml 3.1.1 [collection source_span string_scanner]

@ljmatan
I believe you are hitting https://github.com/firebase/flutterfire/issues/10120, so please follow-up in that issue for further updates.
Closing this as duplicate.

@darshankawar the workaround suggested in another issue:
Platform.isAndroid
          ? await Firebase.initializeApp()
          : await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);

is not working. Please reopen.

@ljmatan
Can you check this comment and see if it helps ?

Hi  @darshankawar
No, that actually did not help (I've done it twice), and I'm unsure of what other info I can provide you with.

Have you already followed the documentation ?
Also check https://github.com/firebase/flutterfire/issues/8767#issuecomment-1243948144

Hi @darshankawar
Both were covered by me, yes. When the app is started, I see no errors in the console and I can see all of the objects as being successfully initialised. For example, FirebaseAnalytics.instanceFor(app: FirebaseService.instance!) doesn't throw any errors.

I can also not use Google Analytics on Android in one of my projects after running flutterfire configure. I am getting the Missing google_app_id. Firebase Analytics disabled. error.
I can connect to Analytics with the web version of the project in Chrome and see the expected events (navigating pages and a dummy button that does a starting cart event), but not via an Pixel 3 emulator or a real Pixel 3 over USB.
The SHA1 fingerprint from the signingReport has been entered for the app on Firebase.

@darshankawar please reopen the ticket, clearly there's a lot of people having issues with the plugin.

@rjduffsep
Missing google_app_id. Firebase Analytics disabled indicates your app_id is missing. Please check your google-services.json file. In it, mobilesdk_app_id is your app_id.
"client_info": {
        "mobilesdk_app_id":

Also make sure you're applying this at the bottom of your app/build.gradle:
apply plugin: 'com.google.gms.google-services'
You will also need this:
classpath 'com.google.gms:google-services:4.3.10'
as a dependency in your android/build.gradle.
@ljmatan Please check above in your case too.

Hi @darshankawar
Our google-services.json file is located in the android/app/ folder, and it incldues the mobilesdk_app_id bit.
We have this in android/build.gradle file:
classpath 'com.google.gms:google-services:4.3.14'
In our android/app/build.gradle file, we have this:
apply plugin: 'com.google.gms.google-services'
On the bottom we also have:
    implementation platform('com.google.firebase:firebase-bom:28.4.1')
    implementation 'com.google.firebase:firebase-analytics'
    implementation 'com.google.firebase:firebase-messaging'

what step did I miss that should have brought in those two elements into the gradle files?

flutterfire configure adds these steps for you so actually speaking, there are no manual steps left because the CLI writes respective config files to platform specific directories.
This documentation should help to setup analytics: https://firebase.google.com/docs/analytics/get-started?platform=flutter

For @ljmatan's report, I'll keep this issue open for team's insights on originally reported behavior.

We advise initialising your application using the service files. This is why when you run the current version of flutterfire configure, it adds them to you project. For further details, please see this comment on the FlutterFire CLI repo.


Panic running 1.0.0-rc.9+23.gc058f77 with progress-bar feature

I got a crash while running Zebra with progress bars, I had it previously synced a month ago.
Log:
log.txt
Error
overflow when adding durations

Metadata

key
value

version
1.0.0-rc.9+23.gc058f77

Zcash network
Mainnet

state version
25

features
howudoin,indicatif,metrics_exporter_prometheus,progress_bar,prometheus

branch
main

git commit
c058f77

commit timestamp
2023-06-12T22:10:09.000000000Z

target triple
x86_64-unknown-linux-gnu

rust compiler
1.70.0

rust release date
2023-05-31

optimization level
3

debug checks
false

location
library/core/src/time.rs:920:31

Backtrace
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
                                ⋮ 8 frames hidden ⋮
   9: core::panicking::panic_display::h01701c1a3a28d8fa
      at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/panicking.rs:150
  10: core::panicking::panic_str::h7d8fffbb2324dc68
      at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/panicking.rs:134
  11: core::option::expect_failed::h18c286e2b6fe8852
      at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/option.rs:2025
  12: <indicatif::format::HumanDuration as core::fmt::Display>::fmt::h011f5b83b2c3ca7c
      at <unknown source file>:<unknown line>
  13: core::fmt::run::h3ce546d9a0c94c92
      at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/fmt/mod.rs:1302
  14: core::fmt::write::h9ffde816c577717b
      at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/fmt/mod.rs:1270
  15: indicatif::style::ProgressStyle::format_state::hd6fc61e5510aa495
      at <unknown source file>:<unknown line>
  16: indicatif::state::BarState::draw::h629f34fc5ad6bda5
      at <unknown source file>:<unknown line>
  17: indicatif::state::BarState::update_estimate_and_draw::h99dddabdd25b3289
      at <unknown source file>:<unknown line>
  18: indicatif::progress_bar::TickerControl::run::h9f97c0b559f483a5
      at <unknown source file>:<unknown line>
  19: std::sys_common::backtrace::__rust_begin_short_backtrace::h9158127a7c420c65
      at <unknown source file>:<unknown line>
  20: core::ops::function::FnOnce::call_once{{vtable.shim}}::he2b1925465d52ce6
      at <unknown source file>:<unknown line>
  21: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::ha1f2224656a778fb
      at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/alloc/src/boxed.rs:1973
  22: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::haa29ed9703f354b7
      at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/alloc/src/boxed.rs:1973
  23: std::sys::unix::thread::Thread::new::thread_start::h33b6dae3e3692197
      at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/sys/unix/thread.rs:108
  24: start_thread<unknown>
      at ./nptl/pthread_create.c:442
  25: clone3<unknown>
      at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

This looks like a bug in Zebra's progress bar code, or the howudoin or indicatif progress bar libraries.
Since this isn't a supported feature, we can make it an optional priority.
We'll need to get a better backtrace to diagnose the bug, maybe we'll need more debug info, or building with optimisations off.


Problem of 'y_true' in data_utils.py

When I train  my own data by your model , I meet this problem as flow,  and I  wolud give your my data , thank you！！！
train.txt
File "D:\Project_Data\YOLOv3_TensorFlow\utils\data_utils.py", line 122, in process_box
y_true[feature_map_group][y, x, k, 5+c] = 1.
IndexError: index 10 is out of bounds for axis 3 with size 10

你看看,你的dataes.names那个文件.在最后一行多加几个空行,看看能不能解决


The example on how to execute pomchecker in the blog post is not working

Hello, thanks for creating this tool. I was trying to execute it following the info in the website doing
mvn org.kordamp.maven:enforcer-maven-plugin:1.0.0:check-maven-central
and it did not work, however
mvn org.kordamp.maven:pomchecker-maven-plugin:1.1.0:check-maven-central
does, maybe worth to fix it.

Ah yes, I can see I made a mistake in the blog post, well spotted! It's fixed now. Thanks!

Thanks for fixing it in the website :+1:


Application crashes when clicking sorting by name twice on a plain drive (no subfolder)

Describe the bug
When having navigated directly onto a drive (like C:, D:, ...) the whole file manager crashes when I click on the "Name" tab in the header twice in order to sort the files by name in ascending and then descending order.
To Reproduce
Steps to reproduce the behavior:

Go to any drive (like C:). It doesn't matter whether you do this by using the Drive button in the sidebar or if you use the one on the main page
In the header of the file contents table click on "Name". Your drive contents will get sorted.
Click again on the "Name" header button....
...Visual Studio will stop the debugging of the application because in the file "ViewModels/FolderSettingsViewModel.cs" an exception is thrown in the method: WriteLayoutPreferencesToSettings(string folderPath, LayoutPreferences prefs). Exception is shown in Screenshot below.

Expected behavior
I would expect Files to simply change the sorting order of my files and folders on my (external) hard drive.
Screenshots

Despite using an english version of Windows and Visual Studio somehow the error still seems to be in german... I am really sorry for that it translates into: "The given path is invalid".
Desktop (please complete the following information):

OS Version: [e.g. Windows 10 20H2 19042.685]
App version: [v0.11.0]??? Current master branch on files-community/Files

Additional context
The issue seems to be that whenever a naked drive is sorted instead of some folder the path ends with '\' so e.g. "C:\". If a folder is opened up there would be no such trailing '\', e.g. "C:\someFolder". Every path which ends with a trailing backslash or encoded as '\' is not a valid path?!
A quick fix seems to modify the property "public SortDirection DirectorySortDirection" as follows:
        public SortDirection DirectorySortDirection         {             get => LayoutPreference.DirectorySortDirection;             set             {                 if (SetProperty(ref LayoutPreference.DirectorySortDirection, value, nameof(DirectorySortDirection)))                 {                     // Workaround for the case that the directory path is a drive. Then the trailing '\' needs to be removed                     String workingDirectoryPath = associatedInstance.FilesystemViewModel.WorkingDirectory.EndsWith('\\') ? associatedInstance.FilesystemViewModel.WorkingDirectory.TrimEnd('\\') : associatedInstance.FilesystemViewModel.WorkingDirectory;                     UpdateLayoutPreferencesForPath(workingDirectoryPath, LayoutPreference);                     SortDirectionPreferenceUpdated?.Invoke(this, new EventArgs());                 }             }         }
I do know the codebase not that well yet. But I think a better solution might be to modify the method "public async Task SetWorkingDirectoryAsync(string value)" in "ItemViewModel.cs" as it sets the directory path used in "DirectorySortDirection"... Is this approach correct? Was somebody able to reproduce the issue?
Log file
Please post the log file here so that we can understand your problem better. You can access it from Settings->About->Open log location.
debug.txt
debug_fulltrust.txt

@heistema thanks a lot for the issue report and the proposed solution.
I believe the best solution for this is to make the changes inside UpdateLayoutPreferencesForPath, something like:
if (App.AppSettings.AreLayoutPreferencesPerFolder)
{
    if (!WriteLayoutPreferencesToAds(folderPath.TrimEnd('\\'), prefs))
    {
        WriteLayoutPreferencesToSettings(folderPath.TrimEnd('\\'), prefs);
     }
}

Do you wish to open a pull request with this changes yourself?

Yes, would be awesome. Thank you very much

I fixed it using a conditional assignment on folderPath (see comment in code). That's because "TrimEnd(..)" returns null if not successful. So normal paths to folders would become null because they have no trailing '\'.


Package still references nathanjsweet/zsocket

Seems like the package is still pointing at the old repo URL.

Done.


Uploads from iPhone broken

You’re probably aware but there seems to be some issues when uploading pictures from iPhone (however not on iPad).  When I create a new bench, and use the file picker to attach three pictures (all taken with the iPhone & GPS enabled) the bench is created successfully and the first pic is uploaded, however the other 2 fail with an error related to lack of GPS data.  If I create the same bench using my iPad and the exact same pictures - using drag & drop between the photos app and Safari then all works as expected.  It would be great to fix this as currently it means I can’t create benches on the iPhone.  This issue was present on my old 7 and also on my new X.

Thanks. I don't have an iPhone to test on, but I'll try to get to the bottom of it.

So I just did a test, I selected 3 photos, and the 1st uploaded ok, the edit screen comes up with just the one showing, if I then add the other 2 again, I get the attached error saying no GPS, and the second error message when I submit the edit.

I've reported this bug to Apple, as it appears to be a Safari problem. Will see if there's any way around it.

It's a shame (but understandable) that Mobile Safari on iOS 11 doesn't seem to allow access to GPS data from uploaded photos - I had to export from Photos app on OS X instead

https://twitter.com/simonw/status/946309525115670528
Grrr!

Is this still a problem? I don't have an iPhone to test with.

Haha - it is, and this is amazing timing, I was sitting on the beach yesterday trying a few things out.  Basically on the iPhone if I use the safari ‘Photo Library’ option to upload direct from the browser it fails to pass any GPS data and the creation fails.  If I first share the photos from the Photos app to the Files app and then use the ‘Browse’ option in Safari it works perfectly.  From the iPad if I drag & drop from Photos to Safari it also works.  It’s not ideal as it means if I am out with just the phone I need to jump through the hoop of sharing the images twice...

Can you take a photo straight from the select photo menu?
I'm going to have to see if there's a better way to do this.

You can - but that also fails with the same no GPS error.

Gah!

It is weird - and I don’t think it can be a widespread iOS issue with photo uploads missing GPS because there are loads of threads telling you how to upload without sending GPS and none discussing this problem!

I happily take photos on my iphone and upload direct to the site (using the standard camera app to take and then select photo option on upload)

This is so frustrating! It works for some people and not for others.
@ukmoose which iPhone model & software do you have?  Would you mind writing a quick step-by-step? Have you changed any privacy settings?

I don’t think it can be related to a specific model or software version as I have had this issue for a good long while and have been through many iPhones in that time!!  Definitely a 7 and an X and running iOS 11 and 12 beta, probably 10 also.
One thing that does occur to me is that I have always used iCloud Photo Library - @ukmoose do you use that or are the photos only stored locally for you?  I’m inclined to log a ticket with apple and see if they have any ideas.

Very strange, but it seems to be working today...for no apparent reason!
Only change on my end is that I am now on iOS 12 Dev Beta 12.
Took some pics yesterday and they have uploaded just fine from the iPhone, so fingers crossed it stays that way...

I think I have found the solution - and understand why other users like @ukmoose aren’t having the same problem.  From iOS 11 onwards iPhone 7 and above started using HEIF as standard instead of JPEG and they convert on the fly when needed.  I think this drops EXIF data, and the reason it works sometimes is that the device may decide to shoot in JPEG.  There’s an option in camera settings to always use JPEG instead (for compatibility) I’ve switched this on and will see but initial experience looks good!  Fingers crossed & a shame Apple support didn’t know this...

Alternatively shoot with "live" on and then for the first photo to be uploaded for a bench, edit the photo in photos to turn "live" off

I've added instructions for iPhone users at https://www.openbenches.org/blog/2023/05/iphone-instructions/
I'll link to them from the upload page.


Add OPAM metadata files to permit direct installation of Infer

This lets opam pin add infer git://github.com/facebook/infer work
out of the box by adding enough metadata to install all the
OCaml dependencies.  It currently doesn't install the Clang
analyzer in the build rules.

It seems that the merge did not work. We may have some idea about what failed. Would you mind sending the same pull request again ?


Support streaming for LLM and Chat Models calls with n>1 and batch calls

Mirror PR: https://github.com/hwchase17/langchainjs/pull/1760
This also adds support for multiple prompts in ChatOpenAI LLM
Fixes LC-98

@nfcampos @dqbd is this still needed?

@dqbd Hi , could you, please, resolve the merging issues? After that ping me and I push this PR for the review. Thanks!
If this PR is not needed anymore, could you, please, let me know or close this PR?


Add resume and skip options

Yahoo returns a 500 HTTP error response when there's a spam message persisted in the group.  These two options allow skipping these spam messages and resuming from where we left off.

Commit referenced by github above is unrelated.
Closing this PR as codebase has diverged significantly since opened, and I think some of the features are now on master from other contributors. Apologies that your contribution wasn't merged.


"Open in Browser" does not work reliable (Browser remains blank)

See also forum post: https://forum.obsidian.md/t/advanced-slides-create-markdown-based-reveal-js-presentations-in-obsidian/28243/100

I'm not sure if this is related as I don't really know enough about the internals of how AdvSlides works, however as it is related to image paths I thought I'd mention it here, in case it helps.
I have an image on of my slides -
![[/Excalidraw/Drawing 2022.excalidraw.png|600]]
Note the slash at the start of the path - if this is present then the image appears as expected in the slide preview BUT I also get a warning telling me the image can't be found.
However, remove the preceding slash and:
1 - image disappears from the slide preview,
2 - no warning notifications about missing images, and
3 - I'm no html expert but the code for the img tag produced looks a little funky...
-> <img src="/Excalidraw/Drawing 2022.excalidraw.svg|.png" alt="" style="width: 600px">
with the | in the src path.
Hope this helps.

The same here. I clicked "Open in Browser," it kept loading, and the screen was blank.

Same here, if there are embedded images in the file there is no preview at localhost:3000. The obsidian developers console (CTRL+SHIFT+i on linux mint) gives :
Uncaught (in promise) TypeError: Cannot read properties of null (reading 'path')
at ObsidianUtils.findFile (eval at  (app.js:1:1), :72947:58)
at ImageProcessor.transformImageString (eval at  (app.js:1:1), :72356:33)
at eval (eval at  (app.js:1:1), :72343:21)
at Array.map ()
at ImageProcessor.process (eval at  (app.js:1:1), :72341:33)
at ObsidianMarkdownPreprocessor.process (eval at  (app.js:1:1), :72682:53)
at RevealRenderer.render (eval at  (app.js:1:1), :72762:46)
at RevealRenderer.renderFile (eval at  (app.js:1:1), :72747:33)
at async eval (eval at  (app.js:1:1), :72874:22)

Thx for the bugreport, im still not sure why activeFile could be null at this point, since the slide itself is rendered from the activeFile, so it should be provided by obsidian. I've made the Image Lookup more robust, this issue should be fixed with 1.7.3

does this feature still exist? I can't find how to open in browser


skia: init, ladybird: 0-unstable-2024-06-08 -> 0-unstable-2024-07-01

Description of changes
We need to update icu to 7.4 flobally before merging this. I temporarily bumped it in this pr and marked as draft. I will bump icu in staging, then undraft this.

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

I thought ofborg wouldn't request reviews on draft prs. Maybe I'm mistaking that with CODEOWNERS? Anyway, sorry for the ping everyone. I'm closing this and will open separate PRs.


Update Composer dependencies (2021-05-27-00-11)

Visual regression test passed!
View the visual regression test report


Error: Cannot determine the Dart Observatory URL after 10 retries.

Hi All,
Description: While running the automation scripts on iOS real device, the app is launched on real device and after some time throwing an error Cannot determine the Dart Observatory URL after 10 retries.. It is unable to find the elements after launching the app.
Test Environment:

Java 11 (temurin)
Appium: 2.1.3
java-client: 8.4.0
<EMAIL_ADDRESS>[installed (npm)]
<EMAIL_ADDRESS>[installed (npm)]
iPhone 8 Plus (16.7.1)

Attaching the log: appium-port-4779.log
Note: The same test environment works fine on flutter Android application on real devices.

It seems like the ios app hadn't printed the opbservatory url. Was it a profile build?
https://github.com/appium/appium-flutter-driver?tab=readme-ov-file#note

Hi @KazuCocoa , Yeah it is profile build. To print the observatory URL do we need to output the URL to console or some thing else from the iOS app development side specifically ? Because the same code which built the debug build for android it works fine.
Can you please share any input how to make the iOS app to print the observatory URL ?
Thanks!

@KazuCocoa , I have tried the ways mentioned here Several Ways To Start App  & Notes as follows.
Mobile Activate App:
driver = new IOSDriver(remote, mobileCapabilities);  //session without app capability and automationName:Flutter
((SupportsContextSwitching) driver).context("NATIVE_APP");
((IOSDriver) driver).installApp("/usr/local/automation/MobileApps/ios/corbita.ipa"); //App installed
((IOSDriver) driver).activateApp("com.xyz.abcenterprise"); //App launched.

After these steps also no observatory URL was written in logs.

Logs :  Mobile_Activate_App.log
Flutter_AppLaunch:
driver = new IOSDriver(remote, mobileCapabilities);  //session without app capability and automationName:Flutter
((SupportsContextSwitching) driver).context("NATIVE_APP");
((IOSDriver) driver).installApp("/usr/local/automation/MobileApps/ios/corbita.ipa"); //App installed
((SupportsContextSwitching) driver).context("FLUTTER");
driver.executeScript("flutter:launchApp", "253cb28df38fb7a0d7c97decac32071907735310","com.xyz.abcenterprise"); //App launched.

After these steps also no observatory URL was written in logs.

Logs : Flutter_AppLaunch.log
In the second approach,  please let me knowis it the correct way of passing the parameters ?
Thanks!

What I know of was just build as a profile build, and launch the app with https://github.com/appium/appium-flutter-driver#several-ways-to-start-an-application . If not available on your environment case, maybe something is needed.
Possibly https://github.com/appium/appium-flutter-driver/issues/393#issuecomment-1692686293 would help, especially ios-deploy to the flutter's issue.

Hi @KazuCocoa , I used go-ios to install and launch the flutter ios app as follows
ios install --path=/usr/local/automation/MobileApps/ios/xyz.ipa && ios launch com.xyz.abcenterprise
After launching the app Error: Cannot determine the Dart Observatory URL after 10 retries. is not seen and the execution continued further as follows.

Switch to NATIVE_APP context.
Click the element as per the logs  {"using":"accessibility id","value":"Allow"} is clicked.
Assert element as per the logs  (//XCUIElementTypeImage[contains(@name,'Welcome to xyz 2.0')] is displayed.
Switch to FLUTTER context.
Click the flutter element ?

After 5th step flutter element is on screen and it's not clicked and got the below error.
2023-10-28 13:59:03:314 [FlutterDriver] Executing Flutter driver command 'click' 2023-10-28 13:59:03:314 [FlutterDriver] >>> {"command":"tap","isRegExp":"false","label":"Next","finderType":"BySemanticsLabel"} 2023-10-28 13:59:03:359 [FlutterDriver@907d (c5251ec9)] Encountered internal error running command: TypeError: Cannot read properties of null (reading 'executeSocketCommand') 2023-10-28 13:59:03:359 [FlutterDriver@907d (c5251ec9)]     at FlutterDriver.executeElementCommand (/Users/tharunpothuraj/.appium/node_modules/appium-flutter-driver/lib/sessions/observatory.ts:194:35) 2023-10-28 13:59:03:359 [FlutterDriver@907d (c5251ec9)]     at FlutterDriver.tapEl (/Users/tharunpothuraj/.appium/node_modules/appium-flutter-driver/lib/commands/gesture.ts:17:21) 2023-10-28 13:59:03:359 [FlutterDriver@907d (c5251ec9)]     at FlutterDriver.click (/Users/tharunpothuraj/.appium/node_modules/appium-flutter-driver/lib/commands/gesture.ts:5:29) 2023-10-28 13:59:03:359 [FlutterDriver@907d (c5251ec9)]     at commandExecutor (/Users/tharunpothuraj/node_modules/@appium/base-driver/lib/basedriver/driver.ts:107:18) 2023-10-28 13:59:03:359 [FlutterDriver@907d (c5251ec9)]     at /Users/tharunpothuraj/node_modules/async-lock/lib/index.js:171:12 2023-10-28 13:59:03:359 [FlutterDriver@907d (c5251ec9)]     at AsyncLock._promiseTry (/Users/tharunpothuraj/node_modules/async-lock/lib/index.js:304:31) 2023-10-28 13:59:03:359 [FlutterDriver@907d (c5251ec9)]     at exec (/Users/tharunpothuraj/node_modules/async-lock/lib/index.js:170:9) 2023-10-28 13:59:03:360 [FlutterDriver@907d (c5251ec9)]     at AsyncLock.acquire (/Users/tharunpothuraj/node_modules/async-lock/lib/index.js:187:3) 2023-10-28 13:59:03:360 [FlutterDriver@907d (c5251ec9)]     at FlutterDriver.executeCommand (/Users/tharunpothuraj/node_modules/@appium/base-driver/lib/basedriver/driver.ts:123:39) 2023-10-28 13:59:03:360 [FlutterDriver@907d (c5251ec9)]     at processTicksAndRejections (node:internal/process/task_queues:95:5) 2023-10-28 13:59:03:360 [FlutterDriver@907d (c5251ec9)]     at FlutterDriver.executeCommand (/Users/tharunpothuraj/.appium/node_modules/appium-flutter-driver/lib/driver.ts:184:16) 2023-10-28 13:59:03:360 [FlutterDriver@907d (c5251ec9)]     at defaultBehavior (/usr/local/lib/node_modules/appium/lib/appium.js:722:14) 2023-10-28 13:59:03:360 [FlutterDriver@907d (c5251ec9)]     at AppiumDriver.executeWrappedCommand (/usr/local/lib/node_modules/appium/lib/appium.js:828:16) 2023-10-28 13:59:03:360 [FlutterDriver@907d (c5251ec9)]     at AppiumDriver.executeCommand (/usr/local/lib/node_modules/appium/lib/appium.js:734:17) 2023-10-28 13:59:03:360 [FlutterDriver@907d (c5251ec9)]     at asyncHandler (/usr/local/lib/node_modules/appium/node_modules/@appium/base-driver/lib/protocol/protocol.js:393:19) 2023-10-28 13:59:03:367 [HTTP] <-- POST /session/c5251ec9-fa02-447d-89cb-632ac2edbf9a/element/eyJpc1JlZ0V4cCI6ImZhbHNlIiwibGFiZWwiOiJOZXh0IiwiZmluZGVyVHlwZSI6IkJ5U2VtYW50aWNzTGFiZWwifQ%3D%3D/click 500 53 ms - 626 2023-10-28 13:59:03:367 [HTTP]  2023-10-28 13:59:03:378 [HTTP] --> GET /session/c5251ec9-fa02-447d-89cb-632ac2edbf9a/screenshot 2023-10-28 13:59:03:378 [HTTP] {}
Attaching the full appium log
appium-port-4779.log
Thanks!

What's about using ios-deploy as https://github.com/flutter/flutter/blob/888b7b9b19642e18e001e3edfa9438c2624d8773/packages/flutter_tools/lib/src/ios/ios_deploy.dart#L121-L165 ? That was the Flutter team's command to launch an ios according to the https://github.com/appium/appium-flutter-driver/issues/393#issuecomment-1692686293 's link.

@KazuCocoa , I tried with the following ios-deploy command.
ios-deploy --debug --justlaunch --bundle /usr/local/automation/MobileApps/ios/Payload/Runner.app
The app is launched successfully and performed the steps as mentioned above and got the same error
2023-10-30 05:52:44:988 [FlutterDriver] Executing Flutter driver command 'click'
2023-10-30 05:52:44:988 [FlutterDriver] >>> {"command":"tap","isRegExp":"false","label":"Next","finderType":"BySemanticsLabel"}
2023-10-30 05:52:44:991 [FlutterDriver@a0ef (976b29a3)] Encountered internal error running command: TypeError: Cannot read properties of null (reading 'executeSocketCommand')
2023-10-30 05:52:44:991 [FlutterDriver@a0ef (976b29a3)]     at FlutterDriver.executeElementCommand (/Users/tharunpothuraj/.appium/node_modules/appium-flutter-driver/lib/sessions/observatory.ts:194:35)
2023-10-30 05:52:44:991 [FlutterDriver@a0ef (976b29a3)]     at FlutterDriver.tapEl (/Users/tharunpothuraj/.appium/node_modules/appium-flutter-driver/lib/commands/gesture.ts:17:21)
2023-10-30 05:52:44:991 [FlutterDriver@a0ef (976b29a3)]     at FlutterDriver.click (/Users/tharunpothuraj/.appium/node_modules/appium-flutter-driver/lib/commands/gesture.ts:5:29)
2023-10-30 05:52:44:991 [FlutterDriver@a0ef (976b29a3)]     at commandExecutor (/Users/tharunpothuraj/node_modules/@appium/base-driver/lib/basedriver/driver.ts:107:18)
2023-10-30 05:52:44:991 [FlutterDriver@a0ef (976b29a3)]     at /Users/tharunpothuraj/node_modules/async-lock/lib/index.js:171:12
2023-10-30 05:52:44:991 [FlutterDriver@a0ef (976b29a3)]     at AsyncLock._promiseTry (/Users/tharunpothuraj/node_modules/async-lock/lib/index.js:304:31)
2023-10-30 05:52:44:991 [FlutterDriver@a0ef (976b29a3)]     at exec (/Users/tharunpothuraj/node_modules/async-lock/lib/index.js:170:9)
2023-10-30 05:52:44:991 [FlutterDriver@a0ef (976b29a3)]     at AsyncLock.acquire (/Users/tharunpothuraj/node_modules/async-lock/lib/index.js:187:3)
2023-10-30 05:52:44:991 [FlutterDriver@a0ef (976b29a3)]     at FlutterDriver.executeCommand (/Users/tharunpothuraj/node_modules/@appium/base-driver/lib/basedriver/driver.ts:123:39)
2023-10-30 05:52:44:991 [FlutterDriver@a0ef (976b29a3)]     at processTicksAndRejections (node:internal/process/task_queues:95:5)
2023-10-30 05:52:44:991 [FlutterDriver@a0ef (976b29a3)]     at FlutterDriver.executeCommand (/Users/tharunpothuraj/.appium/node_modules/appium-flutter-driver/lib/driver.ts:184:16)
2023-10-30 05:52:44:991 [FlutterDriver@a0ef (976b29a3)]     at defaultBehavior (/usr/local/lib/node_modules/appium/lib/appium.js:722:14)
2023-10-30 05:52:44:991 [FlutterDriver@a0ef (976b29a3)]     at AppiumDriver.executeWrappedCommand (/usr/local/lib/node_modules/appium/lib/appium.js:828:16)
2023-10-30 05:52:44:991 [FlutterDriver@a0ef (976b29a3)]     at AppiumDriver.executeCommand (/usr/local/lib/node_modules/appium/lib/appium.js:734:17)
2023-10-30 05:52:44:991 [FlutterDriver@a0ef (976b29a3)]     at asyncHandler (/usr/local/lib/node_modules/appium/node_modules/@appium/base-driver/lib/protocol/protocol.js:393:19)
2023-10-30 05:52:44:992 [HTTP] <-- POST /session/976b29a3-b1b6-4b8a-acd5-fa137272b335/element/eyJpc1JlZ0V4cCI6ImZhbHNlIiwibGFiZWwiOiJOZXh0IiwiZmluZGVyVHlwZSI6IkJ5U2VtYW50aWNzTGFiZWwifQ%3D%3D/click 500 4 ms - 626
2023-10-30 05:52:44:992 [HTTP]
2023-10-30 05:52:45:020 [HTTP] --> GET /session/976b29a3-b1b6-4b8a-acd5-fa137272b335/screenshot

Attaching the full appium log: appium-ios-deploy-justlaunch.log
Please take a look once.
Thanks!

Have you run flutter:connectObservatoryWsUrl in the ios-deploy method case?

Launch the app outside the driver: for users who want to manage the application under test by yourselves

https://github.com/appium/appium-flutter-driver?tab=readme-ov-file#several-ways-to-start-an-application

I didn't ran flutter:connectObservatoryWsUrl that. Do i need to use like this ?
processBuilder.command("ios-deploy", "--debug","--justlaunch", "--bundle","/usr/local/automation/MobileApps/ios/Payload/Runner.app");
driver.executeScript("flutter:connectObservatoryWsUrl"); ```

I didn't ran this flutter:connectObservatoryWsUrl before.
Right after the app is launched i ran the above script as follows
processBuilder.command("ios-deploy", "--debug","--justlaunch", "--bundle","/usr/local/automation/MobileApps/ios/Payload/Runner.app");
driver.executeScript("flutter:connectObservatoryWsUrl");

The appium logs also shows that Connecting to Dart Observatory: ws://<IP_ADDRESS>:51488/DS60QhnPzSw=/ws and able to identify the flutter based elements.
2023-10-30 10:34:24:837 [FlutterDriver] Attempt #1 of 10
2023-10-30 10:34:24:843 [FlutterDriver] No observatory URL matching to '/(Observatory listening on |An Observatory debugger and profiler on\s.+\sis available at: |The Dart VM service is listening on )((http|\/\/)[a-zA-Z0-9:/=_\-.\[\]]+)/' was found in the device log. Please make sure the application under test is configured properly according to https://github.com/appium-userland/appium-flutter-driver#usage and that it does not crash on startup.
2023-10-30 10:34:24:843 [FlutterDriver] Waiting 3000ms before retrying
2023-10-30 10:34:27:846 [FlutterDriver] Attempt #2 of 10
2023-10-30 10:34:27:848 [FlutterDriver] Running on iOS real device
2023-10-30 10:34:27:851 [FlutterDriver] Forwarding the remote port 51488 to the local port 51488
2023-10-30 10:34:27:873 [FlutterDriver] Connecting to Dart Observatory: ws://<IP_ADDRESS>:51488/DS60QhnPzSw=/ws
2023-10-30 10:34:27:879 [FlutterDriver] Listing all isolates: [{"type":"@Isolate","id":"isolates/1003585828608283","name":"main","number":"1003585828608283","isSystemIsolate":false,"isolateGroupId":"isolateGroups/212154136458189460"}]
2023-10-30 10:34:27:894 [FlutterDriver@c9d0 (a52f7134)] Responding to client with driver.execute() result: null
2023-10-30 10:34:27:895 [HTTP] <-- POST /session/a52f7134-8100-44b0-b9c5-030ca98bb97a/execute/sync 200 3072 ms - 14
2023-10-30 10:34:27:895 [HTTP]
2023-10-30 10:34:27:901 [HTTP] --> POST /session/a52f7134-8100-44b0-b9c5-030ca98bb97a/timeouts
2023-10-30 10:34:27:901 [HTTP] {"implicit":5000}
2023-10-30 10:34:27:901 [FlutterDriver@c9d0 (a52f7134)] Calling AppiumDriver.timeouts() with args: [null,null,null,null,5000,"a52f7134-8100-44b0-b9c5-030ca98bb97a"]
2023-10-30 10:34:27:902 [FlutterDriver] Executing Flutter driver command 'timeouts'
2023-10-30 10:34:27:902 [FlutterDriver@c9d0 (a52f7134)] W3C timeout argument: {"implicit":5000}}
2023-10-30 10:34:27:902 [FlutterDriver@c9d0 (a52f7134)] Set implicit wait to 5000ms
2023-10-30 10:34:27:903 [FlutterDriver@c9d0 (a52f7134)] Responding to client with driver.timeouts() result: null
2023-10-30 10:34:27:903 [HTTP] <-- POST /session/a52f7134-8100-44b0-b9c5-030ca98bb97a/timeouts 200 2 ms - 14
2023-10-30 10:34:27:903 [HTTP]
2023-10-30 10:34:28:308 [HTTP] --> POST /session/a52f7134-8100-44b0-b9c5-030ca98bb97a/context
2023-10-30 10:34:28:308 [HTTP] {"name":"NATIVE_APP"}
2023-10-30 10:34:28:311 [FlutterDriver@c9d0 (a52f7134)] Calling AppiumDriver.setContext() with args: ["NATIVE_APP","a52f7134-8100-44b0-b9c5-030ca98bb97a"]
2023-10-30 10:34:28:311 [FlutterDriver] Executing Flutter driver command 'setContext'
2023-10-30 10:34:28:312 [XCUITestDriver@927d (14b29ea8)] Attempting to set context to 'NATIVE_APP' from 'NATIVE_APP'
2023-10-30 10:34:28:312 [XCUITestDriver@927d (14b29ea8)] Already in 'NATIVE_APP' context. Doing nothing.
2023-10-30 10:34:28:312 [FlutterDriver@c9d0 (a52f7134)] Responding to client with driver.setContext() result: null
2023-10-30 10:34:28:313 [HTTP] <-- POST /session/a52f7134-8100-44b0-b9c5-030ca98bb97a/context 200 5 ms - 14

But my bad luck is that only some times(2/10) times the observatory URL was written to iPhone system logs. I have to look into the ways how to print the observatory URL to iPhone system logs on every app launch.
Thanks @KazuCocoa. My issue is resolved with your comments. We can close this ticket.

Have you run flutter:connectObservatoryWsUrl in the ios-deploy method case?

Launch the app outside the driver: for users who want to manage the application under test by yourselves

https://github.com/appium/appium-flutter-driver?tab=readme-ov-file#several-ways-to-start-an-application

@KazuCocoa  how can I implement this method in flutter?

For example, with subprocess lib in Python, it calls the ios-deploy command and handles the process outside Appium but in your code. This is how to run a command in Python.

@KazuCocoa
I have an iOS project written in Native. I integrated Flutter into this project with "add to app". I added enableFlutterDriverExtension(); to the main function in the Flutter main.dart file. I get build in profile mode using the method in the Photo1. I also run WebDriverAgentRunner before starting. The Python code and log are as follows. I still get the error "Cannot determine the Dart Observatory URL after 10 retries."

Photo1
Log File:
log.txt
Test Environment:
Python 3.12.1
Appium: 2.5.4

<EMAIL_ADDRESS>[installed (npm)]
<EMAIL_ADDRESS>[installed (npm)]
<EMAIL_ADDRESS>[installed (npm)]
iPhone 12 (17.5.1)

import os
from appium.webdriver import Remote
from appium.options.ios.xcuitest.base import XCUITestOptions
from appium_flutter_finder.flutter_finder import FlutterElement, FlutterFinder

options = XCUITestOptions()
options.automation_name = 'flutter'
options.platform_name = 'ios'
options.set_capability('platformVersion', '17.5.1')
options.set_capability('deviceName', 'iPhone 12')
options.set_capability('udid', 'xxxxxxx-xxxxxx')
options.set_capability('bundleId', 'com.xxxx.xxx')
options.set_capability('xcodeSigningId', 'iPhone Developer')
options.set_capability('autoAcceptAlerts', True)
options.set_capability('xcodeOrgId', "xxxxxxxxxx")
options.set_capability('language', "en")
options.set_capability('locale', "US")
options.set_capability('app', f'{os.path.dirname(os.path.realpath(__file__))}/../sample2/ios_project_profile.zip')
driver = Remote('http://localhost:4723', options=options)

finder = FlutterFinder()

driver.switch_to.context("FLUTTER")

key_finder = finder.by_value_key(key="pageOneKey")
driver.execute_script('flutter:waitFor', key_finder, 7000)
goto_next_route_element = FlutterElement(driver, key_finder)
print(goto_next_route_element.text)

key_finder2 = finder.by_value_key(key="pageTwoKey")
goto_next_route_element2 = FlutterElement(driver, key_finder2)
goto_next_route_element2.click()

Could you try out the latest flutter driver?
Then, what about adding showIOSLog: true as well?

Current Test Environment:
Python 3.12.1
Appium: 2.11.2
<EMAIL_ADDRESS>[installed (npm)]
iPhone 12 (17.5.1)
I am currently using the latest version of flutter driver. The error has changed as follows.
Traceback (most recent call last):
  File "/Users/nemo.user/StudioProjects/appium-flutter-driver/example/python/example_old_ios.py", line 36, in <module>
    driver = Remote('http://localhost:4723', options=options)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nemo.user/Desktop/automated_test_project/venv/lib/python3.12/site-packages/appium/webdriver/webdriver.py", line 229, in __init__
    super().__init__(
  File "/Users/nemo.user/Desktop/automated_test_project/venv/lib/python3.12/site-packages/selenium/webdriver/remote/webdriver.py", line 208, in __init__
    self.start_session(capabilities)
  File "/Users/nemo.user/Desktop/automated_test_project/venv/lib/python3.12/site-packages/appium/webdriver/webdriver.py", line 321, in start_session
    response = self.execute(RemoteCommand.NEW_SESSION, w3c_caps)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nemo.user/Desktop/automated_test_project/venv/lib/python3.12/site-packages/selenium/webdriver/remote/webdriver.py", line 347, in execute
    self.error_handler.check_response(response)
  File "/Users/nemo.user/Desktop/automated_test_project/venv/lib/python3.12/site-packages/selenium/webdriver/remote/errorhandler.py", line 229, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: No observatory URL matching to '/(Observatory listening on |An Observatory debugger and profiler on\s.+\sis available at: |The Dart VM service is listening on )((http|\/\/)[a-zA-Z0-9:/=_\-.\[\]]+)/' was found in the device log. Please make sure the application under test is configured properly according to https://github.com/appium/appium-flutter-driver#usage and that it does not crash on startup.
Stacktrace:
UnknownError: An unknown server-side error occurred while processing the command. Original error: No observatory URL matching to '/(Observatory listening on |An Observatory debugger and profiler on\s.+\sis available at: |The Dart VM service is listening on )((http|\/\/)[a-zA-Z0-9:/=_\-.\[\]]+)/' was found in the device log. Please make sure the application under test is configured properly according to https://github.com/appium/appium-flutter-driver#usage and that it does not crash on startup.
    at getResponseForW3CError (/opt/homebrew/lib/node_modules/appium/node_modules/@appium/base-driver/lib/protocol/errors.js:1145:9)
    at asyncHandler (/opt/homebrew/lib/node_modules/appium/node_modules/@appium/base-driver/lib/protocol/protocol.js:485:57)

I want to say that I cannot share the IOS log because there may be a security problem in sharing it. There are tens of thousands of lines in the log. My personal data may be in it.
Is there a log you could ask me to research or something you could ask me to try that would be really helpful.

You could search if the syslog has one of matched string below.
https://github.com/appium/appium-flutter-driver/blob/bb32e367a516ea44a1967b69c066a47caf380c15/driver/lib/sessions/observatory.ts#L13-L18
If iOS app could expose Dart VM (for Flutter debug usage and for this driver usage), the syslog should have this matched string in the log. If no, this driver cannot attach to the DartVM to achieve automation.

@KazuCocoa
Unfortunately, it doesn't appear in the logs either. I'm trying to get a profile mode build from a Native iOS app with Flutter embedded in it. I'm emphasizing this part because I may need to do something extra, but I don't know what to do.


TESTS: add test of decoding of invalid zero length ASN.1 INTEGER zero

Confirms #7134

In the spirit of test driven development, this is expected to fail in CIs.
Fix in #7144

Merged as part of #7145

Merged by #7144