import/path: go microservice is crashing in runtime during garbage collection running.

Go version
go 1.20
What operating system and processor architecture are you using (go env)?
go env
GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='.cache/go-build'
GOENV='.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='off'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.21.4'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build4248553971=/tmp/go-build -gno-record-gcc-switches'

What did you do?
system was in idle state for 48 hours. observed this crash
What did you expect to see?
no crash
What did you see instead?
0  0x000055925bb1e532 in runtime.readgstatus
at runtime/proc.go:977
1  0x000055925bb1e532 in runtime.tracebackothers.func1
at runtime/traceback.go:1231
2  0x000055925baf8969 in runtime.forEachGRace
at runtime/proc.go:621
3  0x000055925bb1e4db in runtime.tracebackothers
at runtime/traceback.go:1230
4  0x000055925bb0b9ab in runtime.sighandler
at runtime/signal_unix.go:748
5  0x000055925bb0b0d0 in runtime.sigtrampgo
at runtime/signal_unix.go:490
6  0x000055925bb1e532 in runtime.tracebackothers.func1
at runtime/traceback.go:1231
7  0x000055925baf8969 in runtime.forEachGRace
at runtime/proc.go:621
8  0x000055925bb1e4db in runtime.tracebackothers
at runtime/traceback.go:1230
9  0x000055925baf59c6 in runtime.dopanic_m
at runtime/panic.go:1316
10  0x000055925baf53ed in runtime.fatalthrow.func1
at runtime/panic.go:1170
11  0x000055925baf5345 in runtime.fatalthrow
at runtime/panic.go:1163
12  0x000055925baf503e in runtime.throw
at runtime/panic.go:1077
13  0x000055925bad16a5 in runtime.badPointer
at runtime/mbitmap.go:321
14  0x000055925bad1826 in runtime.findObject
at runtime/mbitmap.go:364
15  0x000055925badd40c in runtime.scanobject
at runtime/mgcmark.go:1335
16  0x000055925badccda in runtime.gcDrain
at runtime/mgcmark.go:1103
17  0x000055925bad95cf in runtime.gcBgMarkWorker.func2
at runtime/mgc.go:1385
18  0x000055925bb29327 in runtime.systemstack
at runtime/asm_amd64.s:509
19  0x000055925bb292c8 in runtime.systemstack_switch
at runtime/asm_amd64.s:474
20  0x000055925bad9296 in runtime.gcBgMarkWorker
at runtime/mgc.go:1353
21  0x000055925bb2b2c1 in runtime.goexit
at runtime/asm_amd64.s:1650
(dlv)

in frame 14 i dumped p and s value.
looks p is set at value of s.limit, so it is crashing.
(dlv) print p
824644280320
(dlv) print s
(*runtime.mspan)(0x7f3b40cba868)
*runtime.mspan {
_: runtime/internal/sys.NotInHeap {
_: runtime/internal/sys.nih {},},
next: *runtime.mspan nil,
prev: *runtime.mspan nil,
list: *runtime.mSpanList nil,
startAddr:<PHONE_NUMBER>28,
npages: 1,
manualFreeList: 0,
freeindex: 0,
nelems: 256,
allocCache:<PHONE_NUMBER>3709551615,
allocBits: runtime.gcBits {
_: ("runtime/internal/sys.NotInHeap")(0x7f3b40a208e0),
x: 0,},
gcmarkBits: runtime.gcBits {
_: ("runtime/internal/sys.NotInHeap")(0x7f3b40fbc270),
x: 0,},
pinnerBits: runtime.gcBits nil,
sweepgen: 7992,
divMul: 134217728,
allocCount: 0,
spanclass: 8,
state: runtime.mSpanStateBox {
s: ("runtime/internal/atomic.Uint8")(0x7f3b40cba8d3),},
needzero: 1,
isUserArenaChunk: false,
allocCountBeforeCache: 0,
elemsize: 32,
limit:<PHONE_NUMBER>20,
speciallock: runtime.mutex {
lockRankStruct: runtime.lockRankStruct {},
key: 0,},
specials: *runtime.special nil,
userArenaChunkFree: runtime.addrRange {
base: (*runtime.offAddr)(0x7f3b40cba8f8),
limit: (*runtime.offAddr)(0x7f3b40cba900),},
freeIndexForScan: 0,}
(dlv)
in find object it is failing at this condition
if state := s.state.get(); state != mSpanInUse || p < s.base() || p >= s.limit {
here p is<PHONE_NUMBER>20
and s.limit is also<PHONE_NUMBER>20 so it is entering in this condition and calling badPointer().
what could be reason it set to s.limit ?
it is some issue with runtime GC code or it can happen due to some wrong/invalid memory access in my code ?

Verstuurd vanaf mijn iPad
Op 12 dec. 2023 om 18:51 heeft harsh8118 @.***> het volgende geschreven:

Go version
go 1.20
What operating system and processor architecture are you using (go env)?
go env
GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='.cache/go-build'
GOENV='.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='off'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.21.4'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build4248553971=/tmp/go-build -gno-record-gcc-switches'
What did you do?
system was in idle state for 48 hours. observed this crash
What did you expect to see?
no crash
What did you see instead?
0 0x000055925bb1e532 in runtime.readgstatus
at runtime/proc.go:977
1 0x000055925bb1e532 in runtime.tracebackothers.func1
at runtime/traceback.go:1231
2 0x000055925baf8969 in runtime.forEachGRace
at runtime/proc.go:621
3 0x000055925bb1e4db in runtime.tracebackothers
at runtime/traceback.go:1230
4 0x000055925bb0b9ab in runtime.sighandler
at runtime/signal_unix.go:748
5 0x000055925bb0b0d0 in runtime.sigtrampgo
at runtime/signal_unix.go:490
6 0x000055925bb1e532 in runtime.tracebackothers.func1
at runtime/traceback.go:1231
7 0x000055925baf8969 in runtime.forEachGRace
at runtime/proc.go:621
8 0x000055925bb1e4db in runtime.tracebackothers
at runtime/traceback.go:1230
9 0x000055925baf59c6 in runtime.dopanic_m
at runtime/panic.go:1316
10 0x000055925baf53ed in runtime.fatalthrow.func1
at runtime/panic.go:1170
11 0x000055925baf5345 in runtime.fatalthrow
at runtime/panic.go:1163
12 0x000055925baf503e in runtime.throw
at runtime/panic.go:1077
13 0x000055925bad16a5 in runtime.badPointer
at runtime/mbitmap.go:321
14 0x000055925bad1826 in runtime.findObject
at runtime/mbitmap.go:364
15 0x000055925badd40c in runtime.scanobject
at runtime/mgcmark.go:1335
16 0x000055925badccda in runtime.gcDrain
at runtime/mgcmark.go:1103
17 0x000055925bad95cf in runtime.gcBgMarkWorker.func2
at runtime/mgc.go:1385
18 0x000055925bb29327 in runtime.systemstack
at runtime/asm_amd64.s:509
19 0x000055925bb292c8 in runtime.systemstack_switch
at runtime/asm_amd64.s:474
20 0x000055925bad9296 in runtime.gcBgMarkWorker
at runtime/mgc.go:1353
21 0x000055925bb2b2c1 in runtime.goexit
at runtime/asm_amd64.s:1650
(dlv)
—
Reply to this email directly, view it on GitHubhttps://github.com/golang/go/issues/64682, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A3RUO3MRTMOOOZVZ76NDIY3YJCKSPAVCNFSM6AAAAABAR3XNTOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAZTQMRXGYZTMNY.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

It could be a problem with your code, if you have a data race or have incorrect uses of unsafe.Pointer.
Run your program with the race detector (-race) and see if it reports anything.

it's a very large application. this crash is seen very randomly in idle state. i tried running my program with race detector multiple times but i am not hitting the issue when -race is enabled.

Thanks for that. The race detector will often catch problems well before they become a crash, so there's likely information in its lack of report even if you didn't reach the crash point with it on.
Unfortunately, there's not a lot to go on here. The garbage collector is clearly finding a bad pointer, but that doesn't give us much information about where it found that pointer. If you could provide more of the bad pointer report, that would help. That report would be the lines starting with a phrase like "runtime: pointer 0xXXX to unused region of span" and ending with "fatal error: found bad pointer in Go heap".

Hi, Unfortunately i was not able to collect the report logs when crash happen. but i have access to core file. i can dump all the values captured in logs using core files.
here  state is mSpanDead
(dlv) print s.state
runtime.mSpanStateBox {
s: runtime/internal/atomic.Uint8 {
noCopy: runtime/internal/atomic.noCopy {},
value: 0,},}
p =<PHONE_NUMBER>20
refBase =<PHONE_NUMBER>60
refOff = 16
previously i added complete dump for s also. so from there we can get s.limit, s.base and other related parameters.
s.base is startAddr:<PHONE_NUMBER>28
s.limit is limit:<PHONE_NUMBER>20
is there a way i can simulate the output of gcDumpObject() using dlv ?

I am also confused about these traces in stack trace. in frame 5  runtime.sigtrampgo() is called is it due to badPointer call in same flow or some other signal handler ?
2 0x000055925baf8969 in runtime.forEachGRace
at runtime/proc.go:621
3 0x000055925bb1e4db in runtime.tracebackothers
at runtime/traceback.go:1230
4 0x000055925bb0b9ab in runtime.sighandler
at runtime/signal_unix.go:748
5 0x000055925bb0b0d0 in runtime.sigtrampgo
at runtime/signal_unix.go:490
6 0x000055925bb1e532 in runtime.tracebackothers.func1
at runtime/traceback.go:1231
7 0x000055925baf8969 in runtime.forEachGRace
at runtime/proc.go:621
8 0x000055925bb1e4db in runtime.tracebackothers
at runtime/traceback.go:1230
9 0x000055925baf59c6 in runtime.dopanic_m
at runtime/panic.go:1316
10 0x000055925baf53ed in runtime.fatalthrow.func1
at runtime/panic.go:1170
11 0x000055925baf5345 in runtime.fatalthrow
at runtime/panic.go:1163
12 0x000055925baf503e in runtime.throw
at runtime/panic.go:1077
13 0x000055925bad16a5 in runtime.badPointer
at runtime/mbitmap.go:321

is there a way i can simulate the output of gcDumpObject() using dlv ?

I don't think there's any easy way to do that, no. Other than simulating it by hand.

I am also confused about these traces in stack trace. in frame 5 runtime.sigtrampgo() is called is it due to badPointer call in same flow or some other signal handler ?

The signal handler during the backtrace does look odd. The runtime is trying to print the backtrace of a goroutine and it is failing. If I had to guess I'd say there was a nil *g reported by forEachGRace. That sounds like a heap-has-been-corrupted problem, which would also explain the OG problem that a bad pointer was found.
I'm having a bit of trouble making sense of your line numbers. The traceback.go line numbers should be 1240 and 1241, not 1230 and 1231, I think. Your environment variables say go1.21.4, but the line numbers look like they are from an earlier point release, maybe 1.21.1?

go version is 1.20, looks my go env was wrong.

Those line numbers look completely wrong for 1.20. Can you double-check? You should be able to run go version <binary> to double-check the version of the binary you are using (using any version of go for the go version command).
It would be worth trying 1.21.5 or tip, just to see if it is a problem that has been fixed.

yeah sorry it is  go1.21.1

yeah sorry it is go1.21.1
it will be big change for us to move to 1.21.5, we may plan it in sometime. do you suspect any issue with runtime code in 1.21.1 ?

I don't see anything obviously related in the 1.21.1 -> 1.21.5 changes.
Was there a Go version under which this code didn't crash? If so, or if we could find one, then we could do binary search to find the change that is likely responsible.
I don't have any other ideas to figure out what the problem is here, sorry.

we were hitting this crash on previous version of go also.
i need some info regarding this code part in runtime.
in findObject() api below condition is failing because is p's address value is same as s.limit
p =<PHONE_NUMBER>20
s.limit is limit:<PHONE_NUMBER>20
scanobject() api calculates p and pass it as parameter to findObject(). there can be any issue in scanobject while calculating p or since heap is corrupted it causes some issue in calculating p ?
if state := s.state.get(); state != mSpanInUse || p < s.base() || p >= s.limit {

If the heap is corrupted, arbitrarily bad things can happen. s.limit could be overwritten with junk, for example.
That said, in scanobject the p argument to findObject comes directly from a load from memory, so scanobject can't "miscalculate" p, as it does no calculation to construct p. It can, of course, load it from the wrong location if the heap is corrupted.

i hit another crash when system was in idle state, this time BT is different, it is crashing in pprof. we have pprof enabled for all profiles and keep collecting data every 15 mins. I there a chance pprof causes race race condition when GC is running that can possibly corrupt the heap ?
Sending output to pager...
0  0x0000558343990805 in runtime.(*unwinder).next
at runtime/traceback.go:453
1  0x00005583439920a5 in runtime.traceback2
at runtime/traceback.go:977
2  0x0000558343991e65 in runtime.traceback1.func1
at runtime/traceback.go:913
3  0x0000558343991cd2 in runtime.traceback1
at runtime/traceback.go:936
4  0x00005583439935e5 in runtime.traceback
at runtime/traceback.go:813
5  0x00005583439935e5 in runtime.tracebackothers.func1
at runtime/traceback.go:1244
6  0x000055834396d969 in runtime.forEachGRace
at runtime/proc.go:621
7  0x00005583439934db in runtime.tracebackothers
at runtime/traceback.go:1230
8  0x00005583439809ab in runtime.sighandler
at runtime/signal_unix.go:748
9  0x00005583439800d0 in runtime.sigtrampgo
at runtime/signal_unix.go:490
10  0x0000558343990805 in runtime.(*unwinder).next
at runtime/traceback.go:453
11  0x00005583439920a5 in runtime.traceback2
at runtime/traceback.go:977
12  0x0000558343991e65 in runtime.traceback1.func1
at runtime/traceback.go:913
13  0x0000558343991cd2 in runtime.traceback1
at runtime/traceback.go:936
14  0x00005583439935e5 in runtime.traceback
at runtime/traceback.go:813
15  0x00005583439935e5 in runtime.tracebackothers.func1
at runtime/traceback.go:1244
16  0x000055834396d969 in runtime.forEachGRace
at runtime/proc.go:621
17  0x00005583439934db in runtime.tracebackothers
at runtime/traceback.go:1230
18  0x000055834396a9c6 in runtime.dopanic_m
at runtime/panic.go:1316
19  0x000055834396a3ed in runtime.fatalthrow.func1
at runtime/panic.go:1170
20  0x000055834399e3a7 in runtime.systemstack
at runtime/asm_amd64.s:509
21  0x000055834399e348 in runtime.systemstack_switch
at runtime/asm_amd64.s:474
22  0x000055834396a345 in runtime.fatalthrow
at runtime/panic.go:1163
23  0x000055834396a03e in runtime.throw
at runtime/panic.go:1077
24  0x0000558343981125 in runtime.sigpanic
at runtime/signal_unix.go:875
25  0x0000558343943e3a in runtime.mapaccess2_fast64
at runtime/map_fast64.go:84
26  0x0000558343e7a070 in runtime/pprof.(*profileBuilder).appendLocsForStack
at runtime/pprof/proto.go:411
27  0x0000558343e7f9dc in runtime/pprof.writeHeapProto
at runtime/pprof/protomem.go:46
28  0x0000558343e73325 in runtime/pprof.writeHeapInternal
at runtime/pprof/pprof.go:572
29  0x0000558343e72fe9 in runtime/pprof.writeAlloc
at runtime/pprof/pprof.go:538
30  0x0000558343e70fc6 in runtime/pprof.(*Profile).WriteTo
at runtime/pprof/pprof.go:329


[INLONG-9781][Manager] add offline sync task type definition

Fixes #9781

Motivation
add offline sync task type definition
Modifications
add offline sync task type definition
Verifying this change
(Please pick either of the following options)

[x] This change is a trivial rework/code cleanup without any test coverage.

Documentation
not need

this pr should merge to dev-offline-sync branch first


added Login pop up

Related Issue
Added Login pop As original flipkart
Description
closes #1263
Added Login pop As original flipkart
Type of PR

[ ] Bug fix
[x ] Feature enhancement
[ ] Documentation update
[ ] Other (specify): _______________

Screenshots / videos (if applicable)

Checklist:

[x ] I have performed a self-review of my code
[x ] I have read and followed the Contribution Guidelines.
[x ] I have tested the changes thoroughly before submitting this pull request.
[x ] I have provided relevant issue numbers, screenshots, and videos after making the changes.
[ x] I have commented my code, particularly in hard-to-understand areas.

Additional context:
[Include any additional information or context that might be helpful for reviewers.]

@arghadipmanna101  can you please review the pull request soon so that i can work on another pull requests

@arghadipmanna101  please review it soon

This is the reason for those lines ,its display is not blocked that should be hidden

now you can see there are no buttons.

@arghadipmanna101 Please Review the pull Request i have updated the requested changes

conflicts issue

Now No conflicts @arghadipmanna101

Error :
Before try to enter mobile no.

After try to enter mobile no.

@arghadipmanna101 There are few conflicts in the files so let me discard and work again


stop using labels for status values

This PR includes a couple of related changes to clean up the way we handle status values that we were storing in labels but that we want to store in the status fields instead.

This PR drops some of the unused status values. I intend to have a separate PR to restore those after talking with @jtomasek


Unable to locate package software-properties-common

=> ERROR [genai-stack_loader 3/9] RUN apt-get update && apt-get install -y     build-essential     curl     software-properties-common     && rm -rf /var/lib/apt/lists/*       37.7s
------
 > [genai-stack_loader 3/9] RUN apt-get update && apt-get install -y     build-essential     curl     software-properties-common     && rm -rf /var/lib/apt/lists/*:
#0 30.55 Ign:1 http://deb.debian.org/debian bookworm InRelease
#0 30.55 Ign:2 http://deb.debian.org/debian bookworm-updates InRelease
#0 30.55 Ign:3 http://deb.debian.org/debian-security bookworm-security InRelease
#0 31.55 Ign:1 http://deb.debian.org/debian bookworm InRelease
#0 31.55 Ign:2 http://deb.debian.org/debian bookworm-updates InRelease
#0 31.55 Ign:3 http://deb.debian.org/debian-security bookworm-security InRelease
#0 33.55 Ign:1 http://deb.debian.org/debian bookworm InRelease
#0 33.55 Ign:2 http://deb.debian.org/debian bookworm-updates InRelease
#0 33.55 Ign:3 http://deb.debian.org/debian-security bookworm-security InRelease
#0 37.56 Err:1 http://deb.debian.org/debian bookworm InRelease
#0 37.56   Could not connect to debian.map.fastlydns.net:80 (<IP_ADDRESS>), connection timed out Unable to connect to deb.debian.org:http:
#0 37.56 Err:2 http://deb.debian.org/debian bookworm-updates InRelease
#0 37.56   Unable to connect to deb.debian.org:http:
#0 37.56 Err:3 http://deb.debian.org/debian-security bookworm-security InRelease
#0 37.56   Unable to connect to deb.debian.org:http:
#0 37.56 Reading package lists...
#0 37.57 W: Failed to fetch http://deb.debian.org/debian/dists/bookworm/InRelease  Could not connect to debian.map.fastlydns.net:80 (<IP_ADDRESS>), connection timed out Unable to connect to deb.debian.org:http:
#0 37.57 W: Failed to fetch http://deb.debian.org/debian/dists/bookworm-updates/InRelease  Unable to connect to deb.debian.org:http:
#0 37.57 W: Failed to fetch http://deb.debian.org/debian-security/dists/bookworm-security/InRelease  Unable to connect to deb.debian.org:http:
#0 37.57 W: Some index files failed to download. They have been ignored, or old ones used instead.
#0 37.58 Reading package lists...
#0 37.59 Building dependency tree...
#0 37.59 Reading state information...
#0 37.59 Package build-essential is not available, but is referred to by another package.
#0 37.59 This may mean that the package is missing, has been obsoleted, or
#0 37.59 is only available from another source
#0 37.59
#0 37.59 E: Package 'build-essential' has no installation candidate
#0 37.59 E: Unable to locate package software-properties-common
------
failed to solve: executor failed running [/bin/sh -c apt-get update && apt-get install -y     build-essential     curl     software-properties-common     && rm -rf /var/lib/apt/lists/*]: exit code: 100

I am getting this error. What is the problem?
I tried to set proxy ENV at beginning of Dockerfile, but it didn't help.
I tried to run official ubuntu image and install tools from RUN command and it worked.
CentOS 7
Docker version 20.10.17, build 100c701
docker-compose version 1.18.0, build 8dd22a9

=> ERROR [genai-stack_loader 3/9] RUN apt-get update && apt-get install -y     build-essential     curl     software-properties-common     && rm -rf /var/lib/apt/lists/*       37.7s
------
 > [genai-stack_loader 3/9] RUN apt-get update && apt-get install -y     build-essential     curl     software-properties-common     && rm -rf /var/lib/apt/lists/*:
#0 30.55 Ign:1 http://deb.debian.org/debian bookworm InRelease
#0 30.55 Ign:2 http://deb.debian.org/debian bookworm-updates InRelease
#0 30.55 Ign:3 http://deb.debian.org/debian-security bookworm-security InRelease
#0 31.55 Ign:1 http://deb.debian.org/debian bookworm InRelease
#0 31.55 Ign:2 http://deb.debian.org/debian bookworm-updates InRelease
#0 31.55 Ign:3 http://deb.debian.org/debian-security bookworm-security InRelease
#0 33.55 Ign:1 http://deb.debian.org/debian bookworm InRelease
#0 33.55 Ign:2 http://deb.debian.org/debian bookworm-updates InRelease
#0 33.55 Ign:3 http://deb.debian.org/debian-security bookworm-security InRelease
#0 37.56 Err:1 http://deb.debian.org/debian bookworm InRelease
#0 37.56   Could not connect to debian.map.fastlydns.net:80 (<IP_ADDRESS>), connection timed out Unable to connect to deb.debian.org:http:
#0 37.56 Err:2 http://deb.debian.org/debian bookworm-updates InRelease
#0 37.56   Unable to connect to deb.debian.org:http:
#0 37.56 Err:3 http://deb.debian.org/debian-security bookworm-security InRelease
#0 37.56   Unable to connect to deb.debian.org:http:
#0 37.56 Reading package lists...
#0 37.57 W: Failed to fetch http://deb.debian.org/debian/dists/bookworm/InRelease  Could not connect to debian.map.fastlydns.net:80 (<IP_ADDRESS>), connection timed out Unable to connect to deb.debian.org:http:
#0 37.57 W: Failed to fetch http://deb.debian.org/debian/dists/bookworm-updates/InRelease  Unable to connect to deb.debian.org:http:
#0 37.57 W: Failed to fetch http://deb.debian.org/debian-security/dists/bookworm-security/InRelease  Unable to connect to deb.debian.org:http:
#0 37.57 W: Some index files failed to download. They have been ignored, or old ones used instead.
#0 37.58 Reading package lists...
#0 37.59 Building dependency tree...
#0 37.59 Reading state information...
#0 37.59 Package build-essential is not available, but is referred to by another package.
#0 37.59 This may mean that the package is missing, has been obsoleted, or
#0 37.59 is only available from another source
#0 37.59
#0 37.59 E: Package 'build-essential' has no installation candidate
#0 37.59 E: Unable to locate package software-properties-common
------
failed to solve: executor failed running [/bin/sh -c apt-get update && apt-get install -y     build-essential     curl     software-properties-common     && rm -rf /var/lib/apt/lists/*]: exit code: 100

I am getting this error. What is the problem?
I tried to set proxy ENV at beginning of Dockerfile, but it didn't help. I tried to run official ubuntu image and install tools from RUN command and it worked.
CentOS 7 Docker version 20.10.17, build 100c701 docker-compose version 1.18.0, build 8dd22a9

Hello this is a package repository issue and is not related to the genai stack.
update and cleaning of the package cache should solve it.

Did that help @hesh44 ?

Yes it did. I ran apt-get update && apt-get clean && apt-get install -y build-essential \ and it worked. Thank you @zooninja

The fix above didn't work for me, unfortunately.

it worked for me but what i did was comment out everything in the /etc/sources.list the run apt-get update && apt-get clean && apt-get install -y build-essential


Feature/ran

I have 2 more comments:

Wouldn't it be better to define the target function in the RAN class, as another method or even part of the forward?
The fit method is not compatible with the superclass. It is missing the debias_criterion_name parameter. It is probably also missing its functionality (give a name to the new embedding).


Wrong encoding of sl-card.js

There is an encoding problem in sl-card.js, AvgÃ¥ng should be Avgång.

Ok. Confirmed under some conditions, will solve this in next release.

This is now fixed in version 0.0.8


[WC-2512]: Add loading state to datagrid-web

Pull request type
New feature (non-breaking change which adds functionality)

Description
Add a loading state to datagrid-web, to run every time datasource is changing, it can be: When paginating, when filtering, on first datagrid load.
Add the property loading type where can be selected option "Skeleton" or "Spinner" loader.
By default, "Spinner" will be selected.
The loading state will use the loading type to show a component to indicate the user that the content is loading, or changing.

Screenshots
Spinner loader

Skeleton loader

I'll approve after rebase.


remove Pocco81/AbbrevMan.nvim

url 404

Thanks for the PR! The changes you've made don't adhere to the checklist.


It always has different hashcode even though everything is same

    test('should be same', () {
      final x = Left('test');
      final z = Left('test');
      expect(x, z);
    });

Result:
Expected: <Instance of 'Left<String, dynamic>'>
Actual: <Instance of 'Left<String, dynamic>'>

@memishood
You're right. This is really a problem. I published release 0.3.0 with a fix

It's working nicely anymore, thanks!


update spinning sc and fabric qc report

Coverage remained the same at 64.701% when pulling b05f732255a6c5b44f095bd0d81d7b58229a44c9 on leslieaula:dev into 1fa4b45dd351092b9ffb8f10dcc611edc1eef531 on danliris:dev.


mod_ssl: Switch to using SSL_OP_NO_RENEGOTIATION

mod_ssl: Switch to using SSL_OP_NO_RENEGOTIATION (where available) to
block client-initiated renegotiation with TLSv1.2 and earlier.

* modules/ssl/ssl_private.h: Define modssl_reneg_state enum, modssl_set_reneg_state function.

* modules/ssl/ssl_engine_io.c (bio_filter_out_write, bio_filter_in_read): #ifdef-out reneg protection if SSL_OP_NO_RENEGOTIATION is defined.

* modules/ssl/ssl_engine_init.c (ssl_init_ctx_protocol): Enable SSL_OP_NO_RENEGOTIATION. (ssl_init_ctx_callbacks): Only enable the "info" callback if debug-level logging *or* OpenSSL doesn't support SSL_OP_NO_RENEGOTIATION.

* modules/ssl/ssl_engine_kernel.c (ssl_hook_Access_classic): Use modssl_set_reneg_state to set the reneg protection mode. (ssl_hook_Access_modern): Drop manipulation of the reneg mode which does nothing for TLSv1.3 already. (ssl_callback_Info): Only enable reneg protection if SSL_OP_NO_RENEGOTIATION is *not* defined.

* modules/ssl/ssl_util_ssl.c (modssl_set_reneg_state): New function.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1877397 13f79535-47bb-0310-9956-ffa450edef68 (cherry picked from commit b8155f30da21c8c9dd3efd3d44d81af9e87e4ef3)

Merged as 644fcf5fdb3d49d7d4594dc23e7cd5d65ee3edad


How do we logout from facebook and clear access tokens as well as cookies?

When I login to the facebook app on the windows phone 7 emulator, it grants an access token, and then I can post to wall and stuff..but I cant logout then..
Is there any help for this available??
I am using the graph API

You have to make the logout url manually using access key. Normally you should know the access key of the currently logged in user to logout. But without access key you will get logout url using simple steps. Here it is http://bit.ly/1UiD49I


Question: How to password protect the admin page?

Hello @magedhelmy1, you can find documentation on how to secure your admin interface at https://jowilf.github.io/starlette-admin/tutorial/authentication/.


Update to new REST API from Openfire

Could you please update your userservice client which is based on userservice v1 API to userservice v2?
The user service v2 is also build in REST API from openfire.
See here: http://www.igniterealtime.org/projects/openfire/plugins/restapi/readme.html

Ok, thanks for the info. I will work on that

I have changed form userservice to the REST API

Looks great, thy


Title: Enhancement in the project CALENDER.

Is your proposal related to a problem? Please describe.
I would like to work in the quality of the code of project CALENDER. https://github.com/Kushal997-das/Project-Guidance/tree/main/Desktop Application/Basic/C%2B%2B/Calender
Add any other context or screenshots about the proposal request here.
No response

@Satyam26-09 Please mention what exactly you want to change be specific .

@Kushal997-das I'll modify it as:

program will end when user input is negative in year as the program not work for negative years.
I can restrict the upper bound in years too...as you specify.
program will re-prompt for month again if user input is not between 1-12.

@Kushal997-das  can you assign me this??

@Kushal997-das need your comment on this...

@Satyam26-09


[settings] support extends config

Is it possible to support extends a super config in telescope. just like tsconfig
{
  "extends": "../../tsconfig.json",
  "compilerOptions": {
        ...
  }
}

Solved in<EMAIL_ADDRESS>Please have a try. Thank you very much!


custom token magic effect is cummulative on token

Describe the bug
When you create a custom effect with a token magic effect this one is additiv in a way, that each time you enable/disable the effect you get another tokenmagic entry in DAE.
To Reproduce
Steps to reproduce the behavior:

Go to your app and create a new effect
Add any effect to it
Add a token magic effect as 2nd effect.
Save
Apply effect on token (everything is fine)
Disable effect (everything is still fine, effect gets removed)
Apply effect again (now you can see two lines of token magic effects, there will be a new one everytime you do disable/enable)

Expected behavior
Only the configured effects should be present.
Screenshots

(...a few more times disable/enable later...)

Additional context
a reload/F5 fixes this temporarily.

Great find. I was handling custom effects by setting them in memory, which caused an issue when I appended the token magic changes to the custom effects.
Now, custom effects are fetched on demand from the custom effects item, so there shouldn't be any side effects of changing something set in memory.
This is fixed in v1.14.5


Svgmobject update with basic processing of 'text' tag

Motivation
Currently,, SVGMobject doesn't support <text> tag in SVG format. The support of this tag is good for plotting diagrams, graphs, and other structures from SVG. I've faced it when trying to plot graphs rendered by graphviz.
Implementation
I've added text processing to SVGMobject using Text mobject with the following features:

scaling text using text_scale for better drawing (original font size is incorrectly small;
support of font-family translated into font parameter of Text mobject;
additional shifting up to the half of 'o' height to adjust centered placement.

Testing
Tested by drawing SVG file with a graph built by graphviz. The used file is available here.
from manimlib.imports import *

class SvgGraphScene(Scene):
    def construct(self):
        g = SVGMobject(file_name=r'd:\g.svg', stroke_width=1.0,
            fill_opacity=0.0, text_scale=2.0)
        g.scale(3)
        self.add(g)
        self.wait(5)

The result is shown below: left - before, right - after.

Additional notes

There are parameters in <text> tag which are not supported yet (further work): text-anchor, centering and rotation in font-family etc.
It will be good to extend the logic of SVGMobject to support different stroke/fill styles for different objects. E.g. to fill the text instead of stroking. Currently, it can be done using submobjects.
It seems that SVGMobject doesn't support stroke-dasharray in <path>. Could be useful. Again, currently, it seems to be available using submobjects.

I think we have to use cairo directly to do this.
M Trying.

Look at the text background which is black colored rectangle
and the position of text is the mid point of that background rectangle which is pink colored circle
for now i don't know how to get that center for different-different fonts

Yes, currently, the arrangement is naturally done with whole text along the center of the rectangle (see red dots below).

The desired behavior is to arrange vertically along with the small characters of text ('o' position). To count that I propose counting extra space for each character using the original cairo function text_extents and comparing height and vertical bearing for the whole text and separate characters. So the text can be arranged as follows. Green dots - new vertical "center".

This need more improvements but for now this is a good base.
Merge this.

I think if we store all Text elements from svg files in a list and after that just replace Text elements in svg file with cairo rendered Texts at appropriate locations according to font and style.
This seems a better approach because we don't need to rebuild text render.

But svg file is still showing in wrong way.
Reset text_mobject.py
Left side is normal
Right side is in manim

@NavpreetDevpuri, yes, I see. The problem was in the interpretation of vertical alignment in SVG. The vertical anchor in SVG is along the baseline, not in center. Now the text placement seems to be correct:

Good job!
Now implement text-anchor shift text right or left by the half of width according to 'text-anchor' and set default value for text stroke to 0 and fill the text with color.

@NavpreetDevpuri

The horizontal alignment was updated. See below. NB The text-anchor tag was modified manually in SVG file for "A" (text-anchor="start") and "B b" (text-anchor="end") nodes, so they are shifted. With the original file, everything is placed fine.

Stroke and fill is updated for all submobjects in base VMobject. So, new update_text_stroke_and_fill() called in __init__ was added. The default stroke is used for text color. Stroke in the text is disabled by default.

I think if we store all Text elements from svg files in a list and after that just replace Text elements in svg file with cairo rendered Texts at appropriate locations according to font and style. Save this new generated svg file may be in new media folder media/svg
This seems a better approach because we don't need to rebuild text render.
But for a base your method is just fine.
We can improve it later.

as i said
a better way to use inkscape to convert svg's text to paths automatically according to font, size ..etc it handles everything.
You can try as follow
install inkscape then add C:\Program Files\Inkscape\bin; to environment variable path.
open terminal or cmd at 'g.svg' file's directory
then run following command
inkscape g.svg --export-text-to-path --export-plain-svg --export-filename=output.svg

this will create output.svg containing path instead of text tags

Yes, that possibly works. But as I see there are two issues.

This requires additional external software to be used. As a general solution, that looks not so good. So I believe adding the functions proposed in this PR will be better.

In my particular case, SVGMobject fails in the processing of <path>  tag both in my branch and in master with the following error: TypeError: add_cubic_bezier_curve_to() missing 2 required positional arguments: 'handle2' and 'anchor'. Here is the input SVG file. And I think it should be another issue independent of this PR. (I can create an issue here for that)

All in all, for my purpose, my update seems to be working well. See an example from my current work (sorry for text in Cyrillic):

It looks like this pull request is out of date, as SVGobject has been refactored in #1731 and support for text is also in the works.
Thanks for this, but I'm closing this pull request.


[Feature Request]: Add i18n support

Relevant Scope
angular application
Description
Please add i18n support to have geo localization transaltion for the new angular hub
Describe the solution you'd like
No response
Describe alternatives you've considered
No response

@geromegrignon  I will be working on this feature.

Thanks Giovanni, assigned!

By uncommenting code from the navigation.component.html (https://github.com/angular-sanctuary/angular-hub/blob/main/angular-hub/src/app/components/navigation/navigation.component.html), you'll get a panel for user preferences.
It's displayed by default on medium to larger screens.
It's toggled with an icon button on a smaller screen (button is part of the commented code).

Hello @geromegrignon  I am interested in continuing this feature

sure @ManuelPauloAfonso, I assigned you the task.
Keep in mind the project is using SSR so the idea would be to retrieve the proper language on server side to prerender in the right language.


added paging for assets and contacts, remove deprecated call get-states

added paging for assets and contacts, remove deprecated call get-states

Currently get-people is not working, probably due to a backend problem, internal issue is created.

This is fixed internally,


Use off/warn/error in rule configurations

Changing all rule configurations from using 0/1/2 to using off/warn/error in rule configurations.
This would be consistent with ESLint's own core config, and is easier to understood for beginners.

Good ide! This is so much clearer. Especially 'ava/max-asserts': [0, 5], was super confusing.


MaxListenersExceededWarning: Possible EventEmitter memory leak detected

Steps to Reproduce
const sharp = require('sharp')

const main = async () => {
  const image = sharp('test.jpg')

  for (let i = 0; i < 25; i++) {
    await image
      .clone()
      .resize(800)
      .toFormat('jpeg')
      .toBuffer()
  }
}

main()

Error Message
(node:93880) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 finish listeners added. Use emitter.setMaxListeners() to increase limit

It always shows up after processing the ninth image.

I can also reproduce this using old-fashioned callbacks:
const image = require('sharp')('test.jpg')

const runTask = () => {
  image
    .clone()
    .resize(800)
    .toFormat('jpeg')
    .toBuffer((err, buff) => {
      console.log('done', counter++)
      if (counter < 25) {
        setImmediate(runTask)
      }
    })
}

runTask()

Hello, the use of clone is unnecessary here as Stream-based input is not being used.
The reason you see a warning is because Node has an internal default of 10 and this code is creating 25 instances.

Thank you for the response.  Knowing what function is causing the problem helps a lot!
If clone() can only be used for streaming inputs, what am I supposed to do when I need to create two independent outputs from the same input?
const image = require('sharp')('test.jpg')

// create a jpeg version that's 800px wide
image.resize(800).jpeg().toBuffer()

// create a webp version without changing the resolution
// This doesn't work because the previous output already set the width to 800px
image.webp().toBuffer()

Of course I could just output the webp image first, but that's missing the point.  In a large complex app I need a way to pass a "clean" source object to many different functions without worrying about how they interact.
Thanks!

Could you just add a check to the clone function that doesn't register the listener if streaming mode is disabled?
input.js:149
if (this._isStreamInput()) {
    // Pass 'finish' event to clone for Stream-based input
    this.on('finish', function () {
      // Clone inherits input data
      that._flattenBufferIn();
      clone.options.bufferIn = that.options.bufferIn;
      clone.emit('finish');
    });
  }```

pass a "clean" source object to many different functions

The input is not mutated so you can do the following:
const sharp = require('sharp');

// create a jpeg version that's 800px wide
sharp('test.jpg').resize(800).jpeg().toBuffer()

// create a webp version without changing the resolution
sharp('test.jpg').webp().toBuffer()

If you would prefer to pass a sharp instance then perhaps try:
const sharp = require('sharp');

const image = () => sharp('test.jpg');

// create a jpeg version that's 800px wide
image().resize(800).jpeg().toBuffer()

// create a webp version without changing the resolution
image().webp().toBuffer()

Both of these approaches have the benefit of input caching within libvips.

Thank you.  That is a reasonable workaround.
Are you opposed to also patching clone() to allow it to be used for this?

Perhaps clone() should throw an Error when _isStreamInput() is false?

That sounds reasonable to me.

PR welcome for this - please target at the suit branch as this would be a breaking API change.

I'm using a stream-based input and .clone() and have 16 instances. I get the same EventEmitter warning. Is there a way to silence this warning anyway?
Thanks!

@Razinsky see https://nodejs.org/docs/latest/api/events.html#events_emitter_setmaxlisteners_n
sharp()
  .setMaxListeners(0)
  .clone()
  ...

Oh ... yeah well I didn't saw that method was exposed :) So easy.
Thanks for the quick answer!

Commit 9fa04a0 adds a check before attaching the event listener. This will be in v0.19.0. Thanks for reporting this.


I am facing issue with My views are not sticks

After a week all views are decresing can you please provide me details for that.
Here i provide random proxy with the code, but still it will be decresing ..

If you're using free proxy then that's common but if you are using premium problem then try to practice the proper way.

If you're using free proxy then that's common but if you are using premium problem then try to practice the proper way.

What do you mean about the proper way??
Can you give me example?

https://github.com/MShawon/YouTube-Viewer#best-practices

@MShawon i run into the same issue and figured out that the Proxys are not being used for some reason. can u check that ?

proxies are being used just fine.. what's your proxy configuration in config.json? and how you are checking proxy uses?

proxies are being used just fine.. what's your proxy configuration in config.json? and how you are checking proxy uses?

My views are decreasing too pleae find my config file below , thank you
{
"http_api": {
"enabled": true,
"host": "<IP_ADDRESS>",
"port": 5000
},
"database": true,
"views": 2000,
"minimum": 85,
"maximum": 97.2,
"proxy": {
"category": "p",
"proxy_type": "http",
"filename": "proxy.txt",
"authentication": true,
"proxy_api": false,
"refresh": 0.0
},
"background": false,
"bandwidth": false,
"playback_speed": 1,
"max_threads": 15,
"min_threads": 10
}


Timeout errors in E2E test pipelines while waiting for Pod to be ready

Bug Report
There have many pipeline failures in the recent weeks with different kinds of errors. One of the errors was -
...
error: timed out waiting for the condition on pods/tanzu-addons-controller-manager-5456cb5c6b-fqqdp
...

Where tanzu-addons-controller-manager pods were not ready as part of this check / wait -
https://github.com/vmware-tanzu/community-edition/blob/1fe383fffceca58f5cb5c5f45f57887ae723d2b9/test/check-tce-cluster-creation.sh#L26-L29
Expected Behavior
To have lesser pod wait timeout errors if possible
Steps to Reproduce the Bug
Run standalone cluster using TCE. See the pipelines for data on the errors
Screenshots or additional information and context
Below are a list of pipelines that failed with the same pod wait timeout error while waiting for tanzu-addons-controller-manager pod to be ready
https://github.com/vmware-tanzu/community-edition/runs/4116641712?check_suite_focus=true
https://github.com/vmware-tanzu/community-edition/runs/4134768598?check_suite_focus=true
https://github.com/vmware-tanzu/community-edition/runs/4150992921?check_suite_focus=true
https://github.com/vmware-tanzu/community-edition/runs/4028966829?check_suite_focus=true
https://github.com/vmware-tanzu/community-edition/runs/4092381575?check_suite_focus=true
https://github.com/vmware-tanzu/community-edition/runs/4068997386?check_suite_focus=true
https://github.com/vmware-tanzu/community-edition/runs/4025985931?check_suite_focus=true
https://github.com/vmware-tanzu/community-edition/runs/4018009279?check_suite_focus=true
https://github.com/vmware-tanzu/community-edition/runs/4018185884?check_suite_focus=true
https://github.com/vmware-tanzu/community-edition/runs/3994233006?check_suite_focus=true
https://github.com/vmware-tanzu/community-edition/runs/3993139108?check_suite_focus=true
Environment Details

Build version (tanzu version): -
Deployment (Managed/Standalone cluster): Standalone cluster
Infrastructure Provider (Docker/AWS/Azure/vSphere): Azure, vSphere
Operating System (client): Linux

Diagnostics and log bundle
It wasn't collected as part of the pipeline

Not sure what the root cause of the timeout is. It could be multiple things, like -

Pod is slow to get ready

Container image is big, so download is taking a moment
Container image download errors due to registry issues
Container image pull is slow due to registry issues / Internet speed of the GitHub Action Runner

Pod is in error state, and/ is in an error loop, due to some reason

Since I don't have the diagnostics data, I can't say for sure. Maybe I could add diagnostics data to the pipeline and then see the data to figure out the root cause, rather than simply doing things like - increasing timeout time which is one idea I had, seeing so many timeout errors. Also, this has happened quite a few times, but it does not happen always, which makes it a bit hard to understand without and extremely harder without diagnostics data 😅

One more example is - https://github.com/vmware-tanzu/community-edition/actions/runs/1786387924 , but in this case, the antrea pods did come up and were running, just that it took sometime for them to be up. This can be noticed from the diagnostics data

For now I have increased the timeout for waiting for pods to 15 minutes as I noticed cases where the pod does come up and runs. If we still notice timeout errors after this, we can dig into them with the diagnostics data and then debug

Another similar error is - https://github.com/vmware-tanzu/community-edition/runs/5064119308?check_suite_focus=true
There are lot of places where we have timeouts defined 😅 Gotta refactor the code. For now I think we can start with fixing (increasing) the timeout value alone. I'll raise a PR for the fix

One more error - https://github.com/vmware-tanzu/community-edition/actions/runs/1841910225/attempts/1 , diagnostics data - diagnostics-data.zip


Duplicate function name on line 303 and 182

'test_count_vector_featurizer' on line 303 renamed to 'test_count_vector_featurizer_ab_words'
Proposed changes:

Duplicate function name on line 303 and 182
'test_count_vector_featurizer' on line 303 renamed to 'test_count_vector_featurizer_ab_words'

Status (please check what you already did):

[x] made PR ready for code review
[ ] added some tests for the functionality
[ ] updated the documentation
[ ] updated the changelog
[x] reformat files using black (please check Readme for instructions)

thanks for submitting this PR, we'll give it a review as soon as possible

updated thanks @Ghostvv

Hey @Ghostvv can you merge this pull request now.


Add RackBuilder and support middleware setup in Faraday

Faraday supports Middleware, which allows developers to inject arbitrary behavior for request/response.
With this pull request, steep check will pass with the following code:
conn = Faraday.new do |f|
  f.request :json
  f.response :logger
  f.response :json
  f.adapter :net_http
end

/merge


wip: sequence-based ibc transfer detection

Description

Pull Request Type

[ ] :bug: Bug fix (Non-breaking Change: Fixes an issue)
[ ] :hammer_and_wrench: Chore (Non-breaking Change: Doc updates, pkg upgrades, typos, etc..)
[ ] :nail_care: New Feature (Breaking/Non-breaking Change)

Issue (if applicable)

closes #
Risk

Testing

Engineering

Operations

Screenshots (if applicable)

Current dependencies on/for this PR:

develop

PR #4922   👈

This comment was auto-generated by Graphite.

draft until osmo is healthy


pov: Consider making tests insensitive to child ordering

In the pov tests, given a tree that must be reparented on node x, the tests ensure that the former parent of x comes after the former children of x.
Example: The graphs:
let kids = mkGraph "root" [mkGraph x [mkGraph "kid-0" []; mkGraph "kid-1" []]]
let kids' = mkGraph x [mkGraph "kid-0" []; mkGraph "kid-1" []; mkGraph "root" []]

However, you could imagine that the following ordering is equally valid - it doesn't matter whether the root becomes the last child or the first child!
let kids'' = mkGraph x [mkGraph "root" []; mkGraph "kid-0" []; mkGraph "kid-1" []]

I think it would be beneficial if the tests did not care about the ordering of the children, since trees probably don't care about the ordering of their children, and it almost certainly is valid to allow either order in the POV problem.
Yes, I did copy a lot of this text from https://github.com/exercism/xhaskell/issues/92, sorry. But it is definitely still relevant to this track. If you care to see how I did in Haskell, I test sorted edge list + root, so that child ordering does not matter: https://github.com/exercism/xhaskell/pull/108

I just realized a difficulty with this. mkGraph is in control of the student.
So that means, perhaps it's the student's responsibility to ensure that mkGraph creates graphs insensitive to child ordering... as well as having the fromPOV function ensure that it puts children in the same order as mkGraph would.
In general, this means that because the student is free to use whatever implementation of mkGraph, the graph could have any internal representation, and therefore the tests can't assume anything about it (they can't examine the sorted edges and root at will) unless the test adds more required functions to burden the student more.

The reason we use mkGraph is indeed to have the student choose his/her own implementation of the tree structure. We used to do exercises where the tree structure was already defined, but people did not really like being forced into using a specific structure.
So either we add more tests, pre-define the tree implementation or leave it as is. I don't really like the first option, but the second option is definitely one we could be using. We could be specifying a default tree implementation, which the user thus would not have to specify itself. What do you think @robkeim and @balazsbotond?

Here is another option that I didn't like when I was thinking about it for Haskell, but I have saved at https://github.com/exercism/xhaskell/pull/107
The idea is, expect that there are two common orderings that students will use:

former parent before former children
former parent after former children

This assumes the student will not use "former parent in the middle of former children", as that would be odd.
Then, the tests could be made to consider trees made with either of these orderings as correct.
However, this makes the test more complex. I'm not sure I like this solution, myself.
It may be that the desire to let the student choose the internal representation will trump the minor inconvenience of having to use a specific ordering.
Note that the specific ordering hurts slightly more in F# because we are forced to append a one-element list, O(n) in the existing list's length, whereas prepending would be much cheaper. In C# I don't think there is the same disparity in cost, so the answer in C# will is more likely to be to leave it as-is.

I haven't yet solved this exercise, and I've just quickly skimmed the README. But I really liked that I could define my own data structures in previous ones. You can learn a lot more from implementing both the data structure and the algorithm.
As far as I can see, because the implementation is fully encapsulated, the student is free to override Equals to make node equality independent of child order. Maybe we could add a new test case to ensure that, but that isn't strictly necessary.

I also haven't implemented this exercise yet, but here's my $0.02...
I think that either approach is valid but it's worth making it explicit whichever direction we decide to go. For this exercise, the focus isn't about keep the order of the children, so I would say moving to have an order independent comparison seems logical.
@petertseng said:

I think it would be beneficial if the tests did not care about the ordering of the children, since trees probably don't care about the ordering of their children

While I agree that's probably the case for this exercise, the ordering of the children is critical for all sorted trees, so that doesn't hold in the general case.

For now, I'm slightly in favor of just leaving the exercise as it is. Yes it is an inconvenience that the order matters, but the student is given more freedom on the data structure implementation.

@ErikSchierboom if I understand the tests correctly, they don't necessarily enforce a specific order - if you override Equals, you can make them pass even if the children are ordered differently in your data structure.
And if you use a Set in F# to represent the set of children, you get this Equals implementation for free. In C#, you need to implement Equals to use HashSet.SetEquals for comaparing the children.
So I also vote for not modifying the tests.

@petertseng I think I'll close this issue and leave the exercise as is. Would that be okay with you?

Given the factors discussed:

It's important to give the student freedom in implementation
The student can override Equals to make the order not matter
The proposed change would increase test complexity

It seems the best way is to leave the exercise as is.
The issue stated to "consider", and it's been considered, so from my point of view, the mission is accomplished! =D

In case any wonders, I updated my F# implementation such that ordering of children does not matter in the trees, and everything is well.


Deflake program admin browser test

Description
My current theory is that the selector is too generic that when the page loads, before styles are applied (we've seen this happened elsewhere), the selector selects the hidden template (wrong element) and thus fails the assertion. Using a more specific selector appears to work. Tested in staging with 10 successful runs.
Checklist

[ ] Created tests which fail without the change (if possible)
[ ] Extended the README / documentation, if necessary

Issue(s)
Fixes #<issue_number>; Fixes #<issue_number>; Fixes #<issue_number>...

Thank you!


Fixed a bug that the height of the column is broken when displayed in IE11

What
I found a bug that shrinks the height of the TimeColumn when viewed in IE11.
Added height: 100%; as well as other parts, so that it won't collapse on IE11.
↓ Before

↓ After

thanks!

I just updated my project to 0.28.2 and now I'm experiencing the same bug on Chrome.

Also noticed this broke day view for us as well in DAY and WEEK view the absolute position gets messed up by the change to height.
Is there a planned fix?


Added support for inputs to be defined explicitly

Closes https://github.com/EnsembleUI/ensemble/issues/356

regarding allowing inputs - @hemish11 @vusters @snehmehta  I think we must have an "optional default value" for each input. As we create re-usable widgets and templates, they simply won't work without the default values and default values should not be in the code with checks for null but should be explicitly defined in the input section.
this will allow people to view the template and then configure it.

Also, it would be good to define whether an input is required or not, and if it is required, then it can throw an error if that parameter is not provided.

Also, it would be good to define whether an input is required or not, and if it is required, then it can throw an error if that parameter is not provided.

I agree.
Please come up with the YAML proposal for this.

We can do something like:
View:
  input:
    - parameter: # Not sure about the name parameter, maybe can change it to something else
        name: first_name # The name of the parameter
        isRequired: true # Defaults to false
    - parameter:
        name: last_name
    - parameter:
        name: words[] # Maybe we can add [] to define it as an array

What should be the exact word instead of the parameter? Also wanted suggestions on adding [] in the postfix of a name to make it an array and thereby allow some preliminary validations or so.

suggest the following variation on what you proposed. I think we should define the type as well even if we don't enforce it for now. There are just a few types - string, number, object (could be js or json), array, date, boolean, any
any -> its the default. Allows us to be backward compatible. Also useful in places where the screen accepts different types for the same input. For example, can accept names as a string if there is one or as an array if more than one.
View:
  inputs:
    - input:
        name: first_name # The name of the parameter
        isRequired: true # Defaults to false
        default: John
    - input:
        name: last_name
       default: Doe
       type: string
    - input:
        name: words
        type: array
        default: ['hello']

@vusters @snehmehta what do you think? I think we should just do this properly instead of having to go back another dozen times adding things we know we will need for sure

Make it backward compatible:
View:
  inputs:
     # short-hand for just name only. This is how it works today
     - occupation

     # more details
     - name: age
        type: integer
        default: 20

This can be the same for API/Custom Widget's inputs.

this PR only defines inputs as array in the schema? @hemish11 is it still being developed?

Yes @kmahmood74, It's still under development

@hemish11 so we are not doing this? this was closed without any merge?


not escaping '' when installing a linter through pip on bash

Environment data
VS Code version:  1.20.0
Python Extension version:  2018.1.0
Python Version: 3.6.4 and 2.7.14
OS and version:  Windows 10 Pro
Actual behavior
$ C:\Python\Python36\python.exe -m pip install -U pylint --user
bash: C:PythonPython36python.exe: command not found

Expected  behavior
$ C:\\Python\\Python36\\python.exe -m pip install -U pylint --user
Steps to reproduce:

Download VS Code.
Download Bash. (I'm using Git Bash.)
Download any version of Python.
Open up VS Code.
Press F1, type Terminal: Select Default Shell, press enter, select Bash.
Download the Python extension.
Press F1, type Python: Select Interpreter, press enter, select your version of Python.
The popup shows up that pylint isn't installed. Click Install.

Looks like #732 may fix this. Just close if so.

Duplicate of #700


pre-commit hook fails with an error

When attempting to commit using git commit, the pre-commit hook fails with the following error:
error: required option '-t, --type <type>' not specified
To reproduce run the following commands (requires docker to be installed):

docker run -it --rm node:22 /bin/bash
git config --global user.name "My Name" && git config --global user.email<EMAIL_ADDRESS>git clone https://github.com/Escape-Technologies/graphql-armor.git && cd graphql-armor
./install-dev.sh
touch file.md && git add file.md && git commit -m "add file.md"

@LMaxence could that be related to a mookme breaking change?

The first attempt to fix that should be going for: gookme
Otherwise, we would prefer to leverage pre-commit


Send session status back to Browserstack

Similar to karma-sauce-reporter, it would be nice if Browserstack sessions with test errors appear red in the Browserstack web UI. At the moment all sessions appear green.
The Browserstack session API could be used to send the session status to Browserstack.
I've attempted to do this, but it seems that the Browserstack session URL (required to send the status back via the API) in not exposed to the reporter:
{
  "id": "703600...",
  "fullName": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.82 Safari/537.36",
  "name": "Chrome 52.0.2743 (Mac OS X 10.11.4)",
  "state": 1,
  "lastResult": {
    "success": 0,
    "failed": 0,
    "skipped": 0,
    "total": 0,
    "totalTime": 249808,
    "netTime": 0,
    "error": true,
    "disconnected": false
  },
  "disconnectsCount": 1
}

Worked it out, please take a look at the linked PR


Large backlog of workflows in announced state (microservices restarting)

Impact of the bug
MSOutput and MSRuleCleaner
Describe the bug
Given that it's the second time that it happens within ~10 days, I am creating this issue to have this and the actions taken tracked here.
We have been piling up workflows in the announced state and it has reached 11.7k workflows at this very moment. Looking at the "Kube eagle k8s metrics" dashboard [1], we can see that it directly impacts the resources required by MSOutput and MSRuleCleaner services, which eventually run out of hardware resources and start either crashing or getting restarted by one of the k8s mechanisms put in place (k8s resource management, liveness probe, etc).
When I checked the kubernetes pods a few minutes ago, only the ms-output pod was having apparent restarts [2]. But if one inspect their log, it's possible to see that the service is getting restarted multiple times every minute [3]. The same applies to MSRuleCleaner [4]
How to reproduce it
Exhaust the resources defined in the service yaml file, e.g.: https://github.com/dmwm/CMSKubernetes/blob/master/kubernetes/cmsweb/services/reqmgr2ms-output.yaml#L98-L104
Expected behavior
This ticket is meant to keep track of actions to recover both MSOutput and MSRuleCleaner to a stable state and to get over the backlog of announced workflows.
A possible long-term and permanent solution - perhaps to be addressed in another ticket - to this would be to either stream data from CouchDB, or implement a way to slice data to be retrieved from the database backend, such that memory footprint can have a more predictable and controlled pattern.
Additional context and error message
[1]
https://monit-grafana.cern.ch/d/M2U6T6uGk/kube-eagle-k8s-metrics?orgId=11&from=1668442898738&to=1668486098738&refresh=30m
[2]
amaltaro@lxplus8s14:~ $ kubepods dmwm
NAME                                       READY   STATUS      RESTARTS       AGE
ms-output-67c6755866-r6xtx                 2/2     Running     22 (42m ago)   6d15h
ms-output-mongo-686dc4b9f-vp8bj            1/1     Running     2 (27d ago)    27d
ms-rulecleaner-8684b896b9-8kxrd            2/2     Running     0              6d15h

[3]
amaltaro@vocms0750:/cephfs/product/dmwm-logs $ grep WATCHDOG ms-output-20221115-ms-output-67c6755866-r6xtx.log | tail -n5
[15/Nov/2022:05:01:31]  WATCHDOG: server exited with exit code signal 9... restarting
[15/Nov/2022:05:02:17]  WATCHDOG: server exited with exit code signal 9... restarting
[15/Nov/2022:05:02:55]  WATCHDOG: server exited with exit code signal 9... restarting
[15/Nov/2022:05:03:27]  WATCHDOG: server exited with exit code signal 9... restarting
[15/Nov/2022:05:03:58]  WATCHDOG: server exited with exit code signal 9... restarting

[4]
amaltaro@vocms0750:/cephfs/product/dmwm-logs $ grep WATCHDOG ms-rulecleaner-20221115-ms-rulecleaner-8684b896b9-8kxrd.log | tail -n5
[15/Nov/2022:05:03:00]  WATCHDOG: server exited with exit code signal 9... restarting
[15/Nov/2022:05:03:22]  WATCHDOG: server exited with exit code signal 9... restarting
[15/Nov/2022:05:03:43]  WATCHDOG: server exited with exit code signal 9... restarting
[15/Nov/2022:05:04:09]  WATCHDOG: server exited with exit code signal 9... restarting
[15/Nov/2022:05:04:38]  WATCHDOG: server exited with exit code signal 9... restarting

For the record, I edited both MSOutput and MSRuleCleaner resource requirements, such that the service becomes stable again and start going through the backlog.
Changes have been made locally in the cluster, so whenever a new service configuration is pushed in, it will overwrite my changes. It was just a matter of running the following command and adapting memory requested and limit to 500MiB and 1500MiB (compared to the original 250MiB and 750MiB):
amaltaro@lxplus8s14:~ $ kubectl edit deploy ms-rulecleaner -n dmwm
deployment.apps/ms-rulecleaner edited

and the same for MSOutput:
amaltaro@lxplus8s14:~ $ kubectl edit deploy ms-output -n dmwm
deployment.apps/ms-output edited

both services seem to be stable now and I can start seeing workflows getting archived in MSRuleCleaner.
We might consider updating the CMSKubernetes yaml files to limit these resources at 1GiB (or maybe 1.25GiB), until we can have a better control of memory footprint in these services.

@amaltaro I doubt your statement that after editing resources of MSOutput it became stable again is correct. At best, it is misleading. If you increase threshold and we did not fix the actual issue the service is quasi stable until next time it will hit the current threshold. This is similar to a "fix" we had for DBS for many years and yet we experienced that more and more resources are required to keep service stable. I rather want to see concrete set of actions required to fix the issue. For that we need to know the following information:

how service receive the data
how much data it is currently receive and how it reflects into python memory usage, in other words we need to know the growth rate of python memory for every MB of the data we recieve
can data be requested in chunks , if so how
what is baseline for RAM usage of the service itself, in other words how much RAM service need without fetching upstream data
if data streaming is possible can you determine a chunk size to allow service stay within its limit, e.g. 1GB RAM limit

Hi @vkuznet  @amaltaro. My two cents here. They both get restarted with signal 9 as reported by the WATCHDOG (sent by who ever is monitoring the Pod's resource limits), but what I also notice is that those signals are always received while fetching workflows in status announced: [1]. So we have obviously reached a saturation point. We should also maybe ask P&R if there was a recent change/event in the system's load that may have caused more rapid announcement of workflows, or are we just still digesting an old backlogs, or are we facing a totally separate bug.
What is also worth mentioning here. Is I also notice the through out the month (every month not only the current one) We do tend  to build up on memory usage for all micro services, until we get to the monthly upgrade. When the cycle repeats [2]. This indeed may be a separate story, but still seems a strange pattern.
[1]
2022-11-14 01:40:51,093:DEBUG:Service: getData:
        url: request?status=announced&detail=True
        verb: GET
        incoming_headers: {}
        data: {}
[14/Nov/2022:01:41:00] ms-rulecleaner-8684b896b9-8kxrd <IP_ADDRESS> "GET /ms-rulecleaner/data/status HTTP/1.1" 200 OK [data: 305 in 367 out 972 us ] [auth: OK "" "" ] [ref: "" "Go-http-client/1
.1" ]
[14/Nov/2022:01:41:13]  WATCHDOG: server exited with exit code signal 9... restarting

2022-11-15 01:00:00,788:INFO:MSOutput: Fetching requests in status: announced
2022-11-15 01:00:00,810:DEBUG:Service: getData:
        url: request?status=announced&detail=True
        verb: GET
        incoming_headers: {}
        data: {}
[15/Nov/2022:01:00:20] ms-output-67c6755866-r6xtx <IP_ADDRESS> "GET /ms-output/data/status HTTP/1.1" 200 OK [data: 300 in 242 out 1222 us ] [auth: OK "" "" ] [ref: "" "Go-http-client/1.1" ]
2022-11-15 01:00:20,742:INFO:Main: [15/Nov/2022:01:00:20] ms-output-67c6755866-r6xtx <IP_ADDRESS> "GET /ms-output/data/status HTTP/1.1" 200 OK [data: 300 in 242 out 1222 us ] [auth: OK "" "" ] [ref: "" "Go-http-client/1.1" ]
[15/Nov/2022:01:00:22]  WATCHDOG: server exited with exit code signal 9... restarting

[2]
https://monit-grafana.cern.ch/d/M2U6T6uGk/kube-eagle-k8s-metrics?orgId=11&from=1665925548233&to=1668521148233&refresh=30m&viewPanel=46
https://monit-grafana.cern.ch/d/M2U6T6uGk/kube-eagle-k8s-metrics?orgId=11&from=1665925548233&to=1668521148233&refresh=30m&viewPanel=216
https://monit-grafana.cern.ch/d/M2U6T6uGk/kube-eagle-k8s-metrics?orgId=11&from=1665925583737&to=1668521183737&refresh=30m&viewPanel=218
https://monit-grafana.cern.ch/d/M2U6T6uGk/kube-eagle-k8s-metrics?orgId=11&from=1665925583737&to=1668521183737&refresh=30m&viewPanel=220

A possible long-term and permanent solution - perhaps to be addressed in another ticket - to this would be to either stream data from CouchDB, or implement a way to slice data to be retrieved from the database backend, such that memory footprint can have a more predictable and controlled pattern. ...

@vkuznet I do not understand what makes you say this. I did not say the underlying problem with the services have been fixed, I just said it's stable again. If you read the original issue description, this is what have been said:
"""
A possible long-term and permanent solution - perhaps to be addressed in another ticket - to this would be to either stream data from CouchDB, or implement a way to slice data to be retrieved from the database backend, such that memory footprint can have a more predictable and controlled pattern.
"""
so, yes, I am aware that we will hit this problem again.

@amaltaro , when you say stable again, please define stability, e.g. is it stable at 1GB RAM level, if so, does the increase of number of workflows by N percent will keep service stable? At which level it will break again? What I'm saying is that without clear picture about what influence service restart and clear understand conditions which will keep it from crashing saying that service is stable is misleading. What we may say that we do not know how current service will stay, it may be running fine for next 24h or not, we may say that until load in a system is below certain threshold service will run fine but above this level we do not know.
What I'm asking is to provide concrete metrics, limits, thresholds based on either monitoring data or stress tests which we can use to define stability of the service. So far I simply do not know if it is stable or not, that's it.

@todor-ivanov , do we know what request?status=announced&detail=True return? If so, can we measure RAM/CPU utilization if the returned data will increase by some factor. For instance, measure RAM/CPU if we have 10, 100, 1K, 10K workflows in announced state? If your observation is correct, i.e. the request to announced status lead to crashes, then we need to know what is a threshold in number of returned documents which cause the crash. This will at least tell us what is this threshold, which we also can reflect back to RAM/CPU usage. And, measuring with different number of docs can give us a clue how to properly adjust system k8s limits to avoid potential crashes in a future.

After making further noise this week, I decided to actually re-assess this situation.
It turns out Rucio seems to be doing just fine and the problem reported with tape transfers was a mistake from my side - I am deeply sorry for that - where a bug was inserted by the following PR in the last production deployment:
https://github.com/dmwm/WMCore/pull/11357
A bug-fix has been provided (and already applied to the production service) in this PR:
https://github.com/dmwm/WMCore/pull/11384


How to use the file manager in ASP.NET MVC 5

Hi,
In the readme one of the future plans to integrate with ASP.NET MVC.
Any work have been done in this regards?
Thanks
Bilal

Hi @bhaidar you will need to create your own bridge/connector following the API docs
Then you will need to change the endpoint urls to request to your back


User: View full details of existing submission.

Design similar to visitor, however,  a user can delete, view submission ratings, reply to comments, and edit their submission
https://www.figma.com/file/bnJw1TntsQCzGDeDWsg0V5/Moringa-Library?node-id=292-3939&t=ZdW6MTaQmOdYEryK-0

Hello @Kalunge Check the comments below

[ ] Kindly create a new full-page that has the features

Hello @Kalunge
This design has not yet been worked on. You are dragging multiple people behind with this design task not being completed.
What is the status of this?
cc @Albert-Byrone @mutuajoseph  @Roseoketch @otsembo


Scales plotly option

Add an option to toggle between semilogy plots and loglog with plotly (cc @mathurinm). It presents iself as a dropdown menu and the active element is showed. Default is loglog (current plots). (Of course after clicking it shrinks back to a normal menu, the image below is to show how options are displayed)
Comments in CSS added for clarity.

Thanks @tanglef it rocks. I tested it locally and it works as expected :tada:
really really small comment, the box seems to overlap a bit with the title of the plot

Because the spacing for  the title is very "figure-dependant" I rather put the options on the side to avoid having to make ugly fixes for now.


About generalization of model

The models are trained based on dataset that has mostly dynamic motions. I guess the models will not generalize well if I want to predict motions that are almost static ?

Actually, 100Style has static motion sequences. Additionally, predicting static motion is simpler for in-between motion tasks. This implies that even if we were to remove the static sequences from the training set, generating static motion wouldn't be an issue. On the other hand, maintaining dynamic motion is quite complex, which is why previous methods have struggled to generate it.
Take a look at the video below for an example (static motion occurs at 6:35 and 7:15)
video

Thanks for your patiently reply !


Borrowing from self in routes

I was reading the yew-router guide yesterday, which has this code: https://github.com/yewstack/yew_router/blob/master/examples/guide/chapters/02_router_component.md#example
html! {
    <Router>
        <Route matcher=route!("/b")>
            <BModel/>
        </Route>
...

Presumably, state passed as attributes to BModel could borrow from self at the time the guide was written (like <BModel foo=&self.bar />). But this example (and others from the guide) don't compile anymore..
I'd really like to have this back, because currently it's very inconvenient.
Also with functions mapped over iterators that should be rendered (like
{ for self.foos.iter().map(render_foo) }), currently they can't borrow from self anymore either..

I think I've hit this. I have a stateful top-level component that tracks, among other things, the current user. The login sub-component needs a callback so that the top-level can update its user on login. However, I can't find any way to implement this because it introduces a reference to self in the render property.
let on_login = self.on_login.clone();

html! {
<Router<AppRoute>
  render = Router::render(|switch: AppRoute| {
    match switch {
       AppRoute::Login => html! { <login_form::LoginForm on_login=on_login /> },
...

It complains that render needs an Fn but the value I've given it is an FnOnce because it captures on_login from the environment. I can't find any variant on this that works. Moving self in causes a clash with the static lifetime requirement.
Unless I've completely misunderstood, the lifetime of the vdom made by rendering self should be no longer than the lifetime of self itself. So 'static seems overly cautions. But perhaps I've misunderstood.

FYI I found a combination that appears to work:
let on_login = self.on_login.clone();
html! {
<Router
render = Router::render(move |switch: AppRoute| {
match switch {
AppRoute::Login => html! { <login_form::LoginForm on_login=on_login.clone() /> },
...
We must clone the on_login callback into a local var. Just holding it by reference or value doesn't work. We must use move for the closure to move on_login in. We must then clone it again when assigning to the property. That ensures that the copy moved into the closure is not "used up", so the closure can be called repeatedly.

That seems to do the trick!


Cpptrace verification failed

When I print a stacktrace it does not resolve to any filenames or line numbers.
Stack trace (most recent call first):
#0  0x000055c9914ba04b in  at ./debug/crow
#1  0x000055c9914fdc15 in  at ./debug/crow
#2  0x000055c9914fe03f in  at ./debug/crow
#3  0x000055c9914c2e0a in  at ./debug/crow
#4  0x000055c9914cb1c2 in  at ./debug/crow
#5  0x000055c9914cafc9 in  at ./debug/crow
#6  0x000055c9914d6dcc in  at ./debug/crow
#7  0x000055c9914cb1c2 in  at ./debug/crow
#8  0x000055c9914fe6e7 in  at ./debug/crow
#9  0x000055c9914c3df8 in  at ./debug/crow
#10 0x000055c9914cb1c2 in  at ./debug/crow
#11 0x000055c9914cafc9 in  at ./debug/crow
#12 0x000055c9914d6dcc in  at ./debug/crow
#13 0x000055c9914cb1c2 in  at ./debug/crow
#14 0x000055c99145db87 in  at ./debug/crow
#15 0x000055c99145deb7 in  at ./debug/crow
#16 0x000055c99145e071 in  at ./debug/crow
#17 0x00007fc35bb426c9 in  at /lib/x86_64-linux-gnu/libc.so.6
#18 0x00007fc35bb42784 in __libc_start_main at /lib/x86_64-linux-gnu/libc.so.6
#19 0x000055c99145ce40 in  at ./debug/crow

When I set:
cpptrace::absorb_trace_exceptions(false);

When I try to use:
cpptrace::stacktrace::current()

The following exception is emitted.
Cpptrace verification failed at /home/hackerman/crow/debug/_deps/cpptrace-src/src/symbols/symbols_with_libdwarf.cpp:267: void cpptrace::detail::libdwarf::die_object::dwarf5_ranges(F) const [with F = cpptrace::detail::libdwarf::die_object::get_rangelist_entries(int) const::<lambda(Dwarf_Addr, Dwarf_Addr)>]
    VERIFY(wrap(dwarf_attr, die, DW_AT_ranges, &attr) == DW_DLV_OK);

No matter which backend I select I get this exception.
I am not familiar with the libraries internals but I assume libdwarf is always used in some way regardless of the backend selected?
I know that the macros are being defined correctly, as when I define a different backend to use the compiler recognizes it.
Cmake cpptrace configuration:
FetchContent_Declare(
  cpptrace
  GIT_REPOSITORY https://github.com/jeremy-rifkin/cpptrace.git
  GIT_TAG        v0.2.0-beta2
	SYSTEM
)

add_compile_definitions(
  CPPTRACE_UNWIND_WITH_UNWIND
  CPPTRACE_GET_SYMBOLS_WITH_LIBDL
)

set(CMAKE_CXX_FLAGS_DEBUG
	"-g3 -gdwarf"
)

add_link_options(
	"-ldl"
	"-rdynamic"
)

# On windows copy cpptrace.dll to the same directory as the executable for your_target
if(WIN32)
  add_custom_command(
    TARGET ${PROJECT_NAME} POST_BUILD
    COMMAND ${CMAKE_COMMAND} -E copy_if_different
    $<TARGET_FILE:cpptrace> $<TARGET_FILE_DIR:${PROJECT_NAME}>
  )
endif()

# Make available:
FetchContent_MakeAvailable(rang tabulate cpptrace)

The compiled binary uses dwarf version 5:
$ llvm-dwarfdump-16 -r 1 ./debug/crow | head | grep Compile
0x00000000: Compile Unit: length = 0x0012bfd0, format = DWARF32, version = 0x0005, unit_type = DW_UT_compile, abbr_offset = 0x0000, addr_size = 0x08 (next unit at 0x0012bfd4)

I tried to fix it by changing the version to dwarf 4 but this did not work.
I am compiling a Debug build in CMake.
I am compiling on debian:
$ uname -a
Linux droid 6.1.0-8-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.25-1 (2023-04-22) x86_64 GNU/Linux

Since I am on Debian I suspect that this might have to do with my GCC version langging behind or some other tool being out of date.
$ gcc --version
gcc (Debian 13.2.0-4) 13.2.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I am aware that 6.1 is kind of an old kernel i will try updating to 6.5 and see if that fixes it (I do not think this is a kernel issue though).

Hi thank you so much for the report, I’ll look into this. The libbacktrace and addr2line back-ends should avoid the libdwarf stuff in the meantime.

Looking at the code, I think I removed that assertion in 93dde93. If use the current tag for main it should work and I'm hoping to do a v0.2 release today or in the next few days.

FetchContent_Declare(
  cpptrace
  GIT_REPOSITORY https://github.com/jeremy-rifkin/cpptrace.git
  # GIT_TAG v0.2.0-beta2
  GIT_TAG origin/main
  SYSTEM
)

Pulling from origin/main fixed it.
Thanks for your time!


[BUG] dart run msix:create no longer works with Flutter 3.16

:information_source: Info
Version: v3.16.6
:speech_balloon: Description

With the release of Flutter 3.16, the build output for Windows builds have changed to include the platform architecture in the build output. https://docs.flutter.dev/release/breaking-changes/windows-build-architecture
So, when I run dart run msix:create, it will run flutter build windows and output the  build in build/windows/x64/runner/Release.  However, I then receive an error that the build files are not found at build/Windows/runner/Release because the platform architecture hasn't been appended to the file path yet.
Interestingly enough, if I run dart run msix:create, let it build the files, and then run dart run msix:create again, then it doesn't error and packages the msix correctly. I'm assuming that's a bug as it should work first try.
Here's the full verbose logs from running the command.
dart run msix:create -v
[     0.058s] parsing cli arguments
[     0.332s] validating config values
[     0.339s] pack files in build folder: C:\Users\user\Projects\flutter-app\build\windows\runner\Release
[     0.352s] running "flutter build windows"...
[     0.353s] build windows files with the command: "C:\Users\user\flutter\bin\flutter build windows"
[    22.243s] building msix files...
[    22.244s] validating build files
Unhandled exception:
Build files not found at C:\Users\user\Projects\flutter-app\build\windows\runner\Release, first run "flutter build windows" then try again
#0      Configuration.validateWindowsBuildFiles (package:msix/src/configuration.dart:363:7)
<asynchronous suspension>
#1      Msix._buildMsixFiles (package:msix/msix.dart:111:5)
<asynchronous suspension>
#2      Msix._createMsix (package:msix/msix.dart:102:5)
<asynchronous suspension>
#3      Msix.create (package:msix/msix.dart:59:5)
<asynchronous suspension>
#4      main (file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/msix-3.16.6/bin/create.dart:4:3)
<asynchronous suspension>

:scroll: Pubspec.yaml

name: flutter_app
description: Flutter App
# The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev

# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 0.0.1

environment:
  sdk: '>=3.1.0 <4.0.0'

# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
# consider running `flutter pub upgrade --major-versions`. Alternatively,
# dependencies can be manually updated by changing the version numbers below to
# the latest version available on pub.dev. To see which dependencies have newer
# versions available, run `flutter pub outdated`.
dependencies:
  flutter:
    sdk: flutter

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^1.0.2

dev_dependencies:
  flutter_test:
    sdk: flutter

  # The "flutter_lints" package below contains a set of recommended lints to
  # encourage good coding practices. The lint set provided by the package is
  # activated in the `analysis_options.yaml` file located at the root of your
  # package. See that file for information about deactivating specific lint
  # rules and activating additional ones.
  flutter_lints: ^2.0.0
  msix: ^3.16.6

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

# The following section is specific to Flutter packages.
flutter:

  # The following line ensures that the Material Icons font is
  # included with your application, so that you can use the icons in
  # the material Icons class.
  uses-material-design: true

  # To add assets to your application, add an assets section, like this:
  # assets:
  #   - images/a_dot_burr.jpeg
  #   - images/a_dot_ham.jpeg

  # An image asset can refer to one or more resolution-specific "variants", see
  # https://flutter.dev/assets-and-images/#resolution-aware

  # For details regarding adding assets from package dependencies, see
  # https://flutter.dev/assets-and-images/#from-packages

  # To add custom fonts to your application, add a fonts section here,
  # in this "flutter" section. Each entry in this list should have a
  # "family" key with the font family name, and a "fonts" key with a
  # list giving the asset and other descriptors for the font. For
  # example:
  # fonts:
  #   - family: Schyler
  #     fonts:
  #       - asset: fonts/Schyler-Regular.ttf
  #       - asset: fonts/Schyler-Italic.ttf
  #         style: italic
  #   - family: Trajan Pro
  #     fonts:
  #       - asset: fonts/TrajanPro.ttf
  #       - asset: fonts/TrajanPro_Bold.ttf
  #         weight: 700
  #
  # For details regarding fonts from package dependencies,
  # see https://flutter.dev/custom-fonts/#from-packages

msix_config:
  display_name: Flutter App
  install_certificate: false

@jvanoeveren Thank you so much for this important bug report 🥇
I publish new version (3.16.7) with a fix.

Hello, I ran into the same issue :
when I run dart run msix:create, it will run flutter build windows and output the build in build/windows/x64/runner/Release. However, I then receive an error that the build files are not found at build/Windows/runner/Release because the platform architecture hasn't been appended to the file path yet.
But I am unable to upgrade to msix 3.16.7 due to below error:
Resolving dependencies... (2.1s)
Because msix >=3.16.4 depends on image ^4.0.9 and flutter_esc_pos_utils 0.1.8 depends on image ^3.1.3, msix >=3.16.4 is incompatible with flutter_esc_pos_utils 0.1.8.
And because no versions of flutter_esc_pos_utils match >0.1.8 <0.2.0, msix >=3.16.4 is incompatible with flutter_esc_pos_utils ^0.1.8.
And because flutter_esc_pos_network 1.0.2 depends on flutter_esc_pos_utils ^0.1.8 and no versions of flutter_esc_pos_network match >1.0.2 <2.0.0, msix >=3.16.4 is incompatible with flutter_esc_pos_network ^1.0.2.
So, becauseXXXXXXX depends on both flutter_esc_pos_network ^1.0.2 and msix ^3.16.7, version solving failed.
Basically I am stuck here and am unable to build the msix package. Could you please helo me with an alternate solution how to build the msix package once the windows build command is completed. I really need help with this.

Hello, I ran into the same issue :
when I run dart run msix:create, it will run flutter build windows and output the build in build/windows/x64/runner/Release. However, I then receive an error that the build files are not found at build/Windows/runner/Release because the platform architecture hasn't been appended to the file path yet.
Built msix:create. running "flutter build windows"... 200.6s building msix files... /Unhandled exception: Build files not found at C:\xxxxxx/build/windows/runner/Release, first run "flutter build windows" then try again #0 Configuration.validateWindowsBuildFiles (package:msix/src/configuration.dart:258:7) #1 Msix._buildMsixFiles (package:msix/msix.dart:107:5) #2 Msix._createMsix (package:msix/msix.dart:98:5) #3 Msix.create (package:msix/msix.dart:57:5) #4 main (file:///C:/Users/MYPC/AppData/Local/Pub/Cache/hosted/pub.dev/msix-3.7.0/bin/create.dart:4:3)
But I am unable to upgrade to msix 3.16.7 due to below error:
Resolving dependencies... (2.1s) Because msix >=3.16.4 depends on image ^4.0.9 and flutter_esc_pos_utils 0.1.8 depends on image ^3.1.3, msix >=3.16.4 is incompatible with flutter_esc_pos_utils 0.1.8. And because no versions of flutter_esc_pos_utils match >0.1.8 <0.2.0, msix >=3.16.4 is incompatible with flutter_esc_pos_utils ^0.1.8. And because flutter_esc_pos_network 1.0.2 depends on flutter_esc_pos_utils ^0.1.8 and no versions of flutter_esc_pos_network match >1.0.2 <2.0.0, msix >=3.16.4 is incompatible with flutter_esc_pos_network ^1.0.2. So, because XXXXXXX depends on both flutter_esc_pos_network ^1.0.2 and msix ^3.16.7, version solving failed.
Basically I am stuck here and am unable to build the msix package. Could you please help me with an alternate solution how to build the msix package once the windows build command is completed. I really need help with this.

Did you find any solution for that @Serohq ?

@YehudaKremer some of the dependencies are outdated, which is why many projects can't upgrade msix. Any chance this PR can get merged? Or if some of the dependencies require work before getting updated, can we merge the ones that don't? Especially some that are more commonly used like get_it.
For anyone else reading this, the workaround from this issue works and I suppose you can add any of the other dependencies you need in the override.


You Load code admob from Your SERVER :)

you say you don't load any ads from serveur i'm find this link in your plugin
in Admob.Java  line 728
http://sample-env-1.ydy8pxiph3.us-west-2.elasticbeanstalk.com/
you can explain pleas  ? so this plugin is not free ?

2% of the ads use our ad code, which comes from that server. It says that on our instructions page.

so this is plugin cordova-admob-pro ?? because i see is the same code and same thing 2% sharing ads

No it is not the same. Our code is completely open source. The plugin you mentioned is different.


Flv video is not playing when swf file is on cdn

I'm trying to play flv video from the page located at abc.com. But the swf files used by player are located at other domain e.g. dif.com/mediaelement-flash-video.swf. And I'm facing with errors that "getDuration", etc.. methods are not found. The param "allowScriptAccess=always" is set for embedded swf object. Probably the access is not permitted in the swf file.

The errors related to getDuration should be fixed in this latest version; please download it from GitHub, since the release is not ready yet, so you can test. About the use of CDN SWF files, this is the first time I hear somebody tries to use it like that, honestly. I'll check this since it might be related to a securityDomain property. I'll keep you posted, but my recommendation is to put the files locally for now.

I have added security domain access in the files now; however, this change won't be reflected until I push the next release so the CDN can reflect them. Is there a way you can install them in a different domain and test this with your code, please?

Just download the latest version from GitHub

Fixed! Thank you!


policyAPI returns always "Policy is invalid" for all failure cases

The error message is always having ""Policy is invalid" text irrespective of the error. This must be changed.
{
    "resultType": "Policy Validation Failed",
    "details": [
        "Policy is invalid. Error reasons: I/O error on POST request for \"http://localhost:8090/validate/policies\": Connection refused"
    ],
    "success": false
}

I will fix it.


1622 | Fancy Sequence | C++

Title - Fancy Sequence
What will change - add a solution for the problem Fancy Sequence in C++
Type of Issue -
Please add/delete options that are not relevant.

[x] Adding New Code

Programming Language
Please add/delete options that are not relevant.

[x] C++

Self Check

Ask for issue assignment and wait to get assigned to it before making Pull Request.
Add your file in the proper folder
Clean Code and Documentation for better readability
Add Title and Description of the program in the file

:star2: Star it :fork_and_knife:Fork it :handshake: Contribute to it!
Discord server ✉ - https://discord.gg/CXksGdn
Happy Coding,

Please assign this to me

I want to contribute to this issue, Please assign this to me.

please assign me this issue

I want to work on this. Please assign this to me.

@Gyan843 I assigned you to #1106
I'll assign this to @Nitish-web-nik
@sbindal057 @0ChanAk you may look for other issues.

Please assign this to me.

Please review my PR 1622. Fancy_sequence.cpp

Please assign this to me.


Set up SeqViz styling

Component Description

Change enzyme and annotation colors
Change color of overall circular/linear views to toggle light/dark mode and brand color

Style Variants

[ ] Dark Mode
[ ] Light Mode
[ ] Brand

Time Estimate

@ninjha01

Closing because we're building our own sequence viewer


Can't find the rootViewController?

Has anyone heard of this issue? I'm pushing my ARController from another and I'm using the AKSideMenu?

I'm not sure about this issue as it sounds very generic, but it could be because you forgot setting the rootViewController of your app? See the example
If it doesn't help, it could be interesting if you could provide some more context to try to help.
Regards

Closing as stale. Please reopen if necessary.


Incorrect element name in StoryBook

Tab Element Name Incorrect.
Currently all the Tabs in storybook show Tab as the element name.
https://react.daisyui.com/?path=/story/navigation-tabs--lifted

But Tab is not exported by react-daisyui.

The correct element name is Tabs.Tab like below:

Fix
Update storybook to show Tabs.Tab for Tab elements.
This is probably a good "first-fix" kind of ticket.

Hi @Kye-NG, you can accomplish this with destructuring at the top of your file.
e.g.:
import { Tabs } from 'react-daisyui'

const { Tab } = Tabs

export default (props) => {
  return (
    <Tabs>
      <Tab value="one">Tab 1</Tab>
      <Tab value="two">Tab 2</Tab>
    </Tabs>
  )
}

Thanks @benjitrosch Would it be a good idea to note this in StoryBook?

Good question— it might seem obvious to just include it, but I'm a little conflicted. Would love to hear your thoughts!
The Problem:
At the moment, our stories show a preview of the component's code (local state, return value), but not the surrounding code from the .stories file. You can see that the Tab component gets destructured at the top of the file (https://github.com/daisyui/react-daisyui/blob/main/src/Tabs/Tabs.stories.tsx#L6), which means it would not be included in the code preview.
If we move it into the component's code, that would promote bad practices, and I'm concerned people would take that to be the "correct" way to access subcomponents.
Alternatively, we could rewrite all of the Storybook examples to remove destructuring of subcomponents, aka replace Tab with Tabs.Tab, which might be a little uglier/more verbose but would clear up all ambiguity about the component's origin.

As someone that just started to get familiar with the code base, my opinion is that would be better if it was consistent, so your solution @benjitrosch of rewriting the Storybook examples would be the best.
For example, Stats, Steps and Table are shown in the examples as being accessed without being deconstructed. Select on the other hand is being deconstructed the same way as Tab is.


Storage: avoid duplicate entries in currentOrPreviouslyRunExperiments

As discussed, please avoid duplicate keys in this storage entry. Also, add some code to remove the existing duplicates from the object we already have.

Fixed with
https://github.com/Microsoft/vscode/commit/c1af5ff797c5e3ef195d8f060c59cf9a1b7e2b2a


Added custom email headers #40

This pull request resolve #40

Codecov Report

Merging #41 into master will decrease coverage by -0.14%.
The diff coverage is 75%.

@@             Coverage Diff             @@
##             master     #41      +/-   ##
===========================================
- Coverage     84.74%   84.6%   -0.14%
- Complexity      256     258       +2
===========================================
  Files            27      27
  Lines           839     851      +12
  Branches        110     111       +1
===========================================
+ Hits            711     720       +9
- Misses           53      55       +2
- Partials         75      76       +1

Impacted Files
Coverage Δ
Complexity Δ

...imov/springboot/mail/utils/EmailToMimeMessage.java
73.07% <75%> (+0.57%)
12 <2> (+2)
:white_check_mark:

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 a2f83e5...f721ed7. Read the comment docs.


DeepMimic windows 10 setup

Im currently trying to setup deepmimic on a windows 10 machine and was wondering what were the steps for setting up free glut and glew in visual studio? Do I just use the "additional dependencies" to add the Lin files, "additional include dependencies" to add the header files and then add the dll file in the deepmimic project itself? I'm using visual studio 2022 if that helps.
Also for building bullet, is using build_visual_studio_vr_pybullet_double.bat (per the bullet repo instructions) but removing the - - double argument in the call to premake the correct way to build in single precision? Or do I need to use cmake? I notice that using the build_visual_studio_vr_pybullet_double.bat code doesn't output a lib/src folder.
Thanks for the help. I'm very new to all this so would appreciate any help.

You can check out these instructions for installing freeglut on windows
https://www.cs.uregina.ca/Links/class-info/315/WWW/Lab1/GLUT/windows.html
In general, you'll need to copy the lib, header, and dll files to the appropriate directories for visual studio.
For building bullet, I usually use cmake. When running cmake, there should be an option to disable double precision.

Got it, thank you! I ran across those instructions a while back (https://www.cs.uregina.ca/Links/class-info/315/WWW/Lab1/GLUT/windows.html) but dismissed them since it seems the newer versions of VS have different directories so I couldn't find the corresponding directories. I'll try to figure it out and if I have more issues, I'll ask again, thanks!