apache / apache/nuttx

NuttX Window Manager Demo (nxwm) does not Work on the Simulator

Open
#6,263 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
4k
Forks
1.7k
Avg merge
1d 17h
Merged PRs (30d)
237

Description

Setup:

- Using Ubuntu 20.04.2 LTS on a virtual machine (VirtualBox)
- Using the configuration "tools/configure.sh -l sim:nxwm"
- Using NuttX 10.3.0

Expected output:
Something similar to the output in the article below, but running on the simulator.
https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=139629401

Actual output below:
![image](https://user-images.githubusercontent.com/86652749/168263728-51fa1c26-9fad-47b5-9405-72b69fca8fda.png)

Note/s:
There was a separate window with a black background. Also, no errors were seen in the logs.
Nothing happened when I clicked the green triangular button on the task bar.

I also checked for other issues that might be related to this issue. Most of them were fixed. Based on the time line of these issues, I tried various release versions of NuttX but no luck.
NuttX 10.3.0 (latest)
- with an extra window (black background)
- no response to mouse and keyboard inputs

NuttX 10.2.0
- with an extra window (black background)
- no response to mouse and keyboard inputs

NuttX 10.0.0
- NO extra window
- no response to mouse and keyboard inputs

NuttX 9.1.1
- application crashed

Also, I modified the code to show the start window (it is initially minimized in the original code), and I got the result below:
![image](https://user-images.githubusercontent.com/86652749/168264035-4935a6d2-71aa-42ac-bdb4-3277c16cf848.png)

However, the demo still did not respond to mouse and keyboard inputs.

Since the LVGL simulation demo was working (it was responsive to mouse inputs, using NuttX 10.3.0), I checked the settings in the config file "tools/configure.sh -l sim:lvgl" then compared them to those in ""tools/configure.sh -l sim:nxwm". As a result, I experimented with various parameter settings, specifically in the ff sections:

![image](https://user-images.githubusercontent.com/86652749/168264170-8d9cfcc0-5882-4c3f-accd-5fdb0389bfdd.png)
![image](https://user-images.githubusercontent.com/86652749/168264198-1d6e2aab-ae6c-40ec-9feb-893770fdde53.png)
![image](https://user-images.githubusercontent.com/86652749/168264220-48b40eba-312f-4162-bb65-3b3daa6461c8.png)
![image](https://user-images.githubusercontent.com/86652749/168264239-849fbbeb-8c4e-42c9-89c2-b7bb59a1d0d2.png)

I got the result shown below:
![image](https://user-images.githubusercontent.com/86652749/168264461-288e3992-bf9e-4c23-97f7-c44c3865c0db.png)

The touch calibration window now appeared at the start. However, the application still did not respond to mouse inputs. Actually, pressing anywhere on the window toggled the color of the circle between yellow to white, but the calibration did not proceed.

I think that mouse inputs are not properly handled by the NuttX Window Manager demo (nxwm) when running on the simulator, or that I'm using the wrong menu config settings.

Any ideas on how to fix these issues?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.