Segmentation fault by switching screens by using timer in pthread

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Segmentation fault by switching screens by using timer in pthread

1,746件の閲覧回数
vandana
Contributor I

Hi ,  I am using i.MX93 in my application i want to switch screen in every 3 minutes. I have created 3 screen and used timer API lv_timer_create(switch_screen_timer_cb, 60000, NULL) in pthread but when I used only one label in screen it is working fine ,but once i increased the widgets in on screens i am getting segmentation fault, below is error message i am getting when simulate the project. 

[4071:1108/164957.408810:ERROR:platform_shared_memory_region_posix.cc(217)] Creating shared memory in /dev/shm/.org.chromium.Chromium.kAPwS0 failed: Too many open files (24)
[4071:1108/164957.409471:ERROR:platform_shared_memory_region_posix.cc(217)] Creating shared memory in /dev/shm/.org.chromium.Chromium.U1cb7Z failed: Too many open files (24)
[4071:1108/164957.410060:ERROR:platform_shared_memory_region_posix.cc(217)] Creating shared memory in /dev/shm/.org.chromium.Chromium.TVn703 failed: Too many open files (24)
[4071:1108/164957.411169:ERROR:platform_shared_memory_region_posix.cc(217)] Creating shared memory in /dev/shm/.org.chromium.Chromium.p0xOFZ failed: Too many open files (24)
[4071:1108/164957.411656:ERROR:platform_shared_memory_region_posix.cc(217)] Creating shared memory in /dev/shm/.org.chromium.Chromium.PXUfX0 failed: Too many open files (24)

How to resolve this plz help 

__PRESENT

0 件の賞賛
返信
3 返答(返信)

1,719件の閲覧回数
jimmychan
NXP TechSupport
NXP TechSupport

Which version of BSP are you using?

Could you tell me the steps of reproducing this issue? So, I could try it on my side.

 

0 件の賞賛
返信

1,672件の閲覧回数
vandana
Contributor I

Hi ,

       Sorry for very late response, I am using  6.1.1 version. first you need to create 2 thread thread A & thread B. where I am using thread A to receive data from ZMQ dealer. by thread B used for display data on screen and switch between screens. for switching between screen I am using timer and in timer i load next screen. once I reach timer handler it working fine but after 4 - 5 switching I got segmentation fault. 

 

 

__PRESENT

0 件の賞賛
返信

1,668件の閲覧回数
jimmychan
NXP TechSupport
NXP TechSupport

Seems after 4-5 switching, the memory is not enough. You may check if the allocated memory is not used and then need to 'free' the memory.

0 件の賞賛
返信