addshore
06/11/2025, 3:45 PM-D jag.wifi=false
while using the run
command.
And just gave it a go while installing a container, however on container restart jag and wifi came back up.
Is there a way to either 1) get a container to tell jag to turn off the wifi?
or 2) have something like -D jag.wifi=false
be more persistent accross container restarts? while keeping jaguar running?addshore
06/12/2025, 10:49 AMsystem:
Kind: snapshot
Id: 2ee8a16f-3df6-a81f-7174-7347ab9a8108
Size: 165638
Flags:
- trigger=boot
- critical
Is removing this essentially the same as building my own fw image without jaguar?
(I'm guessing not, as I removed this, and also added my own container, flashed a device and seemingly it doesnt start up)kaxori
06/12/2025, 7:27 PMkaxori
06/13/2025, 4:46 PMaddshore
06/16/2025, 2:12 PMRouting problem
and tries to reconnect? fails? and backs off?
Then I see my container print udptocsv
after which it tries to emit this over UDP
Then there are logs to do with wifi reconnecting? After which jaguar seems to be back up?
However the container is then stuck?
I guess it is stuck here
socket.send
udp.Datagram row.to-byte-array address
addshore
06/30/2025, 9:32 AM[uart] warning: event queue is full
[uart] warning: event queue is full
[uart] warning: event queue is full
[uart] warning: event queue is full
[uart] warning: event queue is full
[uart] warning: event queue is full
[uart] warning: event queue is full
[uart] warning: event queue is full
[uart] warning: event queue is full
[uart] warning: event queue is full
[uart] warning: event queue is full
Seems to do that until reaching
Potential deadlock detected:
Process: 0
Program: 84bd67cd-f6e7-5359-850b-5709092d5c01
fatal: Potential dead-lock
abort() was called at PC 0x4202f841 on core 0
Or sometimes it breaks out of the loop and works?
Any pointers for debugging / whats going on?RaspPi Parts
07/15/2025, 4:04 PM~~boss~~
07/20/2025, 10:53 AMaddshore
07/30/2025, 3:53 PMwahyudi124
07/31/2025, 5:48 AMaddshore
07/31/2025, 9:00 AMkaxori
08/01/2025, 7:54 PMwahyudi124
08/03/2025, 4:21 AMz3ugma
08/03/2025, 4:34 AMkaxori
08/03/2025, 10:17 AMrunning Jaguar failed due to 'DEADLINE_EXCEEDED'
Did anyone have similar experiences and a solution ?RaspPi Parts
08/04/2025, 3:23 PMpkarsy
08/04/2025, 6:15 PMz3ugma
08/06/2025, 6:26 PMHeap report @ out of memory in primitive 8:2:
┌───────────┬──────────┬─────────────────────────────────────────────────────┐
│ Bytes │ Count │ Type │
├───────────┼──────────┼─────────────────────────────────────────────────────┤
│ 5648 │ 513 │ heap overhead │
│ 173528 │ 467 │ untagged │
└───────────┴──────────┴─────────────────────────────────────────────────────┘
Total: 179176 bytes in 467 allocations (53%), largest free 116k, total free 152k
******************************************************************************
MALLOC_FAILED error.
0: S6d05a1.draw-test-pattern s6d05a1.toit:560:20
1: main.<block> display_new.toit:43:12
2: SmallInteger_.repeat <sdk>/core/numbers.toit:1288:3
3: main display_new.toit:42:5
******************************************************************************
I can reliably make this memory allocation fail by commenting and uncommenting a line in this code:
main:
print "initializing display..."
driver := S6d05a1 bus cs 320 320 --reset=reset
5.repeat:
driver.draw-test-pattern
sleep --ms=600
addshore
08/14/2025, 2:32 PMsh
mkdir my-x-project
cd my-x-project
jag pkg init
jag pkg install github.com/x-io/toit-x
then
sh
cp ./.packages/github.com/x-io/toit-x/v0.1.1/examples/eink.toit ./main.toit
But I dont want to hardcode v0.1.1
Is there already a command I am missing that might say what is installed and being used by the project?addshore
08/21/2025, 11:06 AMsound-type
field is actually an enum
Whats the best way to document that fact?
And or is there already IDE integreation and hinting for such as thing?
/**
Creates a protocol.Data object with all available fields for this message type.
This is a comprehensive helper that accepts all possible fields.
For method-specific usage, consider using the dedicated request/response methods.
Returns: A protocol.Data object with the specified field values
*/
static data --duration/int?=null --sound-type/int?=null --intensity/int?=null --run-count/int?=null --frequency/float?=null --base-data/protocol.Data?=protocol.Data -> protocol.Data:
data := base-data
if duration != null: data.add-data-uint DURATION duration
if sound-type != null: data.add-data-uint SOUND-TYPE sound-type
if intensity != null: data.add-data-uint INTENSITY intensity
if run-count != null: data.add-data-uint RUN-COUNT run-count
if frequency != null: data.add-data-float FREQUENCY frequency
return data
Rikke
08/22/2025, 6:32 AMSalamun Kawlam
08/23/2025, 4:48 PMaddshore
09/05/2025, 4:58 PM[jaguar] WARN: running Jaguar failed due to 'MALLOC_FAILED' (2/3)
[jaguar.http] INFO: running Jaguar device 'long-expert' (id: '736b8804-dcdf-4d96-890a-8785c1bfa31d') on 'http://192.168.68.50:9000'
Heap report @ out of memory in primitive 3:4:
┌───────────┬──────────┬─────────────────────────────────────────────────────┐
│ Bytes │ Count │ Type │
├───────────┼──────────┼─────────────────────────────────────────────────────┤
│ 7400 │ 728 │ heap overhead │
│ 258064 │ 691 │ untagged │
└───────────┴──────────┴─────────────────────────────────────────────────────┘
Total: 265464 bytes in 691 allocations (81%), largest free 44k, total free 62k
[jaguar] WARN: running Jaguar failed due to 'MALLOC_FAILED' (3/3)
[jaguar] INFO: backing off for 5s
~~boss~~
09/08/2025, 4:05 AMtplux
09/10/2025, 5:41 AMaddshore
09/19/2025, 8:50 AMreturn
to exit early in one condition from a lambda,
But of course Can't explicitly return from within a lambda
Is there a way to stop execution of a lambda part way through?addshore
09/23/2025, 4:08 PMfor i := 0; i < 3; i++:
leds[i] = gpio.Pin pins[i] --output=true --value=1
sleep --ms=1000
for i := 0; i < 3; i++:
channels[i] = generator.start leds[i] --duty-factor=1
sleep --ms=1000
sleep --ms=10000
Where we control an RGB LED.
First looping to setup the pins, with value 1 which in this case is LED OFF
We then look through to start the generators, and calling .start seems to cause a small flicker once for each color.
Is there a way to avoid this / a bug that can be fixed?addshore
09/24/2025, 10:06 AMnetwork := net.open
network.address
or sometihng similar.
But this has the side affect of actually opening the network, even if it were nt previously opened.
What is the recommended way to check if the device is connected via WiFi, without calling open
?
I also tried network.name
but this also requires you to get the network first?
Do I need to do something at a lower level? NetworkServiceClient
? etc?addshore
09/26/2025, 8:11 AMError: Firmware is too big to fit in designated partition (1844624 > 1835008)
for example
Is there a command line tool / way that I can get the size of an envelope file? without having to try and flash it?
I thought perhaps jag toit tool firmware -e apps.envelope show | yq '.Containers | .[] as $item ireduce (0; . + $item.Size)'
, but that returns only 396868
(far below the limit)?