ARToolKitNFTCore: calling setupAR2() again leaves markers undetected and leaks the AR2 handle
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
Direzione di ricerca
Start in ARToolKitNFTCore.cpp at setupAR2(), where the old ar2Handle is overwritten without being freed, and in addNFTMarkers(), which re-applies refDataSetAll. Read ARToolKitNFTCore.h for the documented limitations. Done means a second setupAR2() frees the old handle without leaking, and maintainers have chosen between re-arming detection inside setupAR2() and a separate rearmDetection(). The issue also asks for a re-initialisation scenario in tools/compare-builds.js, which needs maintainer input first.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
Follow-up to the ARToolKitNFTCore extraction (webarkit/jsartoolkitNFT#683; the core lands in WebARKitLib with the feat/nft-core PR). Two limitations of re-calling setupAR2(), both kept from the original bindings so the refactor stays behaviour-identical, now documented in ARToolKitNFTCore.h:
- No detection until the next
addNFTMarkers().setupAR2()recreates the KPM handle (and drops the detector), so the KPM matcher no longer holds the markers already loaded: they are tracked if already locked, but never re-detected. CallingaddNFTMarkers({})re-arms detection (it re-applies the accumulated reference data set), but it returns{}, the same value as a failure. - AR2 handle leak. A second
setupAR2()without asetCamera()in between overwritesar2Handlewithout deleting it (ARToolKitNFTCore.cpp,setupAR2); with the threaded AR2 variant the old handle's worker threads leak too. The original bindings did the same.
Proposal
- In
setupAR2(), delete an existing AR2 handle before creating the new one (a no-op on the normal flow, wheresetCamera()already freed it). - After recreating the KPM handle, re-apply the accumulated reference data set (
refDataSetAll) and recreate the detector, so loaded markers stay detectable; or add an explicitrearmDetection()with a distinct return value.
Both change observable behaviour of the jsartoolkitNFT bindings on a re-initialisation path, so they belong in a release note, and the jsartoolkitNFT comparison tool (tools/compare-builds.js) should be extended with a re-initialisation scenario first.
- Lingua principale
- C++
- Stelle
- 21
- Fork
- 8
- Merge medio
- 6h 49m
- PR unite (30g)
- 29
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di webarkit/WebARKitLib
-
Sync workflow: handle a conflicting sync branch with no open PR, and PRs the workflow did not openApertaCI enhancement
Difficoltà 3/5 Mezza giornata Idoneità per principianti 45/100
webarkit/WebARKitLib#92 ·
I maintainer di solito rispondono entro 1 giorno
-
Optical tracker: frames without a marker run detection twice since the #53 full-resolution retryApertaC/C++ code enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
webarkit/WebARKitLib#91 ·
I maintainer di solito rispondono entro 1 giorno
-
Real-world pose scale from a physical marker width at init (ArtoolkitX-style), not the _pattern.size/2 pixel centre offsetForse di nuovo libera @kalwalt l’ha presa 108 giorni fa e non c’è nessuna pull request aperta. Apertaenhancement question
webarkit/WebARKitLib#62 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
webarkit/WebARKitLib#48 ·
I maintainer di solito rispondono entro 1 giorno
-
WebARKit developmentForse di nuovo libera @kalwalt l’ha presa 1080 giorni fa e non c’è nessuna pull request aperta. ApertaC/C++ code enhancement
webarkit/WebARKitLib#21 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di webarkit/WebARKitLib
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
qbittorrent/qBittorrent#25121 ·
I maintainer di solito rispondono entro 2 giorni
-
SVT-AV1: Unnecessary size paddingForse già presa @pszemus l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
strukturag/libheif#1945 ·
I maintainer di solito rispondono entro 1 giorno
-
v9.6.0: CMake incorrectly enforces presence of libevdevForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 65/100
mltframework/shotcut#1943 ·
I maintainer di solito rispondono entro 1 giorno
-
Rowan (2017) electron heating gives NaN for beta > beta_max; clip() then sets electrons to kel_minAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
parthenon-hpc-lab/kharma#213 · 1 commento ·
I maintainer di solito rispondono entro 3 giorni