markstraw's Forum Posts

  • 9 posts
  • Ask Claude..

    After running command line memory test >> On your 8 GB Pi, 6.7 GiB is still available, and the 5.1 GiB of swap hasn’t been touched.

    Pasted webGL chromium error >> That error is the real symptom: the WebGL context was lost, and Construct 3 then failed to create any textures because there was no context left. It means Chromium’s GPU process crashed or was reset, or the driver dropped the context. It does not mean the Pi ran out of system RAM, which fits your earlier output. So the video-to-GPU frame path is broken in this setup, and it’s the likely cause of both the choppiness and the lost context. It also fits the earlier finding that system RAM and CMA were healthy.

    The line at the very top, InitializeSandbox() called with multiple threads in process gpu-process, is logged when the GPU process starts. That suggests the GPU process had just (re)started before these errors. I can’t tell what killed the previous one from this snippet. chrome://crashes and dmesg right after a failure would show it.

    Your command line has two flags that look responsible, and I’d test them one at a time:

    Add --disable-accelerated-video-decode. I suggested this earlier for Pi 5, and your first chrome://gpu screenshot still showed Video Decode as hardware accelerated, so it wasn’t applied. It forces decoding down a simpler, more predictable path.

    Remove --enable-zero-copy. It appears in your renderer command lines. It makes Chromium use GPU-memory-buffer-backed images, and this log shows that backing failing for video frames. I can’t be certain it’s the trigger, but it’s the first thing I’d remove.

    nano ~/.config/chromium-flags.conf << this was blank

    Added flags which Claude suggested:

    --disable-gpu-memory-buffer-video-frames --disable-accelerated-video-decode --use-angle=gles --ignore-gpu-blocklist --ozone-platform=x11

    Running again - Video plays - no WebGL context lost error.

  • Issues when loading a video on a Raspberry Pi 5 with Chromium browser.

    All text and some images disappear from the screen when loading a video.

    I have 3 images, a text object and a button on the layout -

    Image1. Background image - loaded from URL (from file system).

    Image2. on/off toggle1 - circles in sprite sheet - on/off animation - in construct.

    image3. on/off toggle2* - circle sprite sheet - on/off animation - images loaded from URL (from file system).

    *I created toggle loaded from file system to see if it might stop it from getting destroyed when context is lost.

    On button click > load video.

    Error message when loading video -

    [Construct] WebGL context lost

    c3runtime.js:1213 [Construct] Suspending

    main.js:48 WebGL context restored

    Background image remains visible.

    Both toggle images, and all text disappears from the screen.

    If I press F12, to show dev tools, the toggle images become visible, but the text remains hidden/destroyed.

    On computer using Chrome browser - all text and images remain visible on screen - no WebGL context lost issues when loading a video.

  • I am loading a video. It plays fine on my computer, but causes other images on the screen to disappear on a Raspberry Pi 5.

    When video gets loaded on the Pi, I get the following errors:

    Video_mp4 is playing!

    c3runtime.js:1208 [Construct] WebGL context lost

    c3runtime.js:1213 [Construct] Suspending

    main.js:48 WebGL context restored

    c3runtime.js:1213 [Construct] Resuming

    c3runtime.js:1208 [Construct] WebGL context restored

    The video plays but any images that were on the screen disappears - only a grey screen remains.

    Buttons that were on the screen remain visible.

    Since all the images got destroyed when the video loads, I thought to create the images again after the context got restored, but it is now so screwed up - nothing new seems to be created.

    Video_mp4 is playing! << console message from Video_mp4 Is playing

    In Video Is playing, I create new image objects.

    When running on Raspberry Pi 5, new images are not created.

    Other notes:

    From what I've read, Raspberry Pi 5 can play MP4 H.265 video, but MP4 H.265 does not even load in Pi 4 or 5.

    I have this same context lost issue with Webm AV1, VP8 and VP9 in the Pi 5.

    Webm AV1, VP8 and VP9 loads fine the Pi 4.

    When running on my computer browser or on Raspberry Pi 4, new images are created as expected.

    MP4 H.264 video is 1MB. Same issues if I load a 250kb video.

  • I have a file - pointValuesArray.json, which can be edited with the array editor.

    AJAX on "PointValuesArray" completed -

    Returned pointValuesArrayJsonObj json data from debug:

    {"c2array":true,"size":[2,13,1],"data":[[["A"],[2],[3],[4],[5],[6],[7],[8],[9],[10],["J"],["Q"],["K"]],[[1],[2],[3],[4],[5],[6],[7],[8],[9],[0],[0],[0],[0]]]}

    When I double click pointValuesArray.json, I get an editable table like this table -

    construct.net/en/make-games/manuals/construct-3/interface/file-editors/array-editor

    but unable to retrieve values.

    "PointValues A: " & pointValuesArrayJsonObj.Get(".A")

    returns 0

    I can see this JSON data in the debug, but unable to show this data in the consol and thus anywhere else - thus reluctant to delete it

    I also have a PointValues array object - but have no idea how to populate it with data - unable to figure out how to insert data into the array object.

  • > set PointsValue json from parse AJAX.LastData

    > Consol log PointValues.Get(".Value1")) - returns value of 0 - which is incorrect.

    Looks like your PointsValue object is a JSON object. It needs to be an Array object.

    You use "Array Load" (not "Parse") action to load the data, and Array.At() expression (not Array.Get()) to access it.

    Is a table created with this thing - construct.net/en/make-games/manuals/construct-3/interface/file-editors/array-editor <-- an array object?

    When I try write to consol: "PointValues value A: " & PointValuesArray.At(0,1)

    'PointValuesArray' is red - error message - PointValuesArray is not an object name.

    How do I make PointValuesArray.json an object?

  • If you mean the built in array file loaded into an array object then you use the array actions such as array.at(0,0). Also you can check in debug view if the array object is populated with the values as expected.

    Under file, I have PointValuesArray.json - an array table thing - is this an array object? - it can be edited in the Array Editor. It is populated with a few lines of data.

    I can't work out how to call array.at(0,0) on this data to use it in real life.

    I'm staring blankly at the manual -

    construct.net/en/make-games/manuals/construct-3/interface/file-editors/array-editor

    Am I missing a part 2 or is what I need to know somewhere on this page?

  • I have an Array object - pointValuesArray.json - an array created with built in array table and populate with some values.

    On start of layout, I request file pointValues.json and on completed, set PointsValue json from parse AJAX.LastData

    Consol log PointValues.Get(".Value1")) - returns value of 0 - which is incorrect.

    If I put same values in a flat json text file, calling this returns value as expected.

    What is wrong with my syntax for getting values from an Array or Dictionary table object?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I realised after researching a bit more, that Construct Animate is another programme.

    I had chanced upon Exporting image sequences with Construct Animate page through a internet search.

    I am already subscribed to Construct 3, and couldn't manage to batch export all the frames from a sprite animation using Construct 3 - original files deleted unfortunately. I saved a few of the images by selecting sprite frame in the sprite animater, ctrl + s > save frame to save individual frame image - but would have been too time consuming as it is 188 frames.

    The free version didn't allow export of an image sequence but did allows for 5 second video, which was perfect to retrieve the sprite animation.

  • Hello,

    I am on page: construct.net/en/tutorials/exporting-image-sequences-2888

    Page title: Exporting image sequences with Construct Animate

    Construct Animate provides an Image sequence export option that lets you export an animation frame-by-frame, with each frame in a separate image file.

    This is exactly what I need. However, the info is so vague to me that I can't work out how to do this.

    Is "Construct Animate" the sprite sequence in the sprite editor, or is it what is on a timeline? Or is it something else?

    I have a an image sequence in the sprite editor which I need to export as an image sequence.

  • 9 posts