Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 28-12-2015, 18:25   #91
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Re: OpenCPN on Raspberry Pi2

@JM...

Sounds like it is blowing up on out-of-memory situation.

Try this..

Reduce the allocated GPU texture size in OCPN config file.

GPUTextureMemSize=64

Try smaller numbers, like 64 or 32.

Good Luck
Dave
bdbcat is offline   Reply With Quote
Old 28-12-2015, 21:08   #92
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: Nova Scotia Canada
Boat: Wharram Tiki 46
Posts: 1,321
Re: OpenCPN on Raspberry Pi2

Quote:
Originally Posted by bdbcat View Post
@JM...

Sounds like it is blowing up on out-of-memory situation.

Try this..

Reduce the allocated GPU texture size in OCPN config file.

GPUTextureMemSize=64

Try smaller numbers, like 64 or 32.

Good Luck
Dave
Tried 32, no difference.
NahanniV is offline   Reply With Quote
Old 28-12-2015, 21:33   #93
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Re: OpenCPN on Raspberry Pi2

@JM...

Try single chart mode (F9).

Dave
bdbcat is offline   Reply With Quote
Old 28-12-2015, 21:59   #94
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: Nova Scotia Canada
Boat: Wharram Tiki 46
Posts: 1,321
Re: OpenCPN on Raspberry Pi2

Quote:
Originally Posted by bdbcat View Post
@JM...

Try single chart mode (F9).

Dave
Same SIGKILL.

I am using WxWidgets 3.0.0 on this system, I was not able to get 3.0.2 to build. Could that be a problem? What version are you using?

No problems in other modes, just OpenGL=on, caching=off, RNC charts.
It's not really a mode I would use, but should work.

Cheers,
JM.
NahanniV is offline   Reply With Quote
Old 29-12-2015, 07:06   #95
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Re: OpenCPN on Raspberry Pi2

@JM...

Faced with your issue, I would try ddd, run the simplest configuration until a crash, and look at the backtrace.

Dave
bdbcat is offline   Reply With Quote
Old 29-12-2015, 07:42   #96
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: Nova Scotia Canada
Boat: Wharram Tiki 46
Posts: 1,321
Re: OpenCPN on Raspberry Pi2

Quote:
Originally Posted by bdbcat View Post
@JM...

Faced with your issue, I would try ddd, run the simplest configuration until a crash, and look at the backtrace.

Dave
I can do that, but isn't ddd just a frontend for GDB?

I already tried GDB.

What am I missing here?

Thanks,
JM.
NahanniV is offline   Reply With Quote
Old 29-12-2015, 12:36   #97
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Re: OpenCPN on Raspberry Pi2

NahanniV...

Does gdb break cleanly on a crash (SIGKILL)? What does a backtrace look like at that point?

Dave
bdbcat is offline   Reply With Quote
Old 29-12-2015, 13:01   #98
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: Nova Scotia Canada
Boat: Wharram Tiki 46
Posts: 1,321
Re: OpenCPN on Raspberry Pi2

Quote:
Originally Posted by bdbcat View Post
NahanniV...

Does gdb break cleanly on a crash (SIGKILL)? What does a backtrace look like at that point?

Dave
See post #86 this thread.

No backtrace is available.

I'm not sure how to debug it.
NahanniV is offline   Reply With Quote
Old 29-12-2015, 15:04   #99
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: Nova Scotia Canada
Boat: Wharram Tiki 46
Posts: 1,321
Re: OpenCPN on Raspberry Pi2

Quote:
Originally Posted by boat_alexandra View Post
....
Anyway, I have reproduced the problems on my cubie truck. No doubt it is doing something wrong with mipmaps, but also maybe something with the FBO. The old version works fine, so I have only to git-bisect. I am waiting for the first of 10 builds to complete...
Hi Sean,

I see you have pushed a lot of fixes for ARM Linux.

Are all your fixes in now ? Let me know and I'll give it a try.

Thanks,
JM.
NahanniV is offline   Reply With Quote
Old 29-12-2015, 17:10   #100
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Re: OpenCPN on Raspberry Pi2

@JM....

I still think it is a memory problem.

Please edit glTexCache.cpp, Line 1322, and enable OCPN memory inventory printf reports.

Code:
#if 1
    if((m_ticks % 4/*120*/) == 0){
    
    // inventory
    int mem_total, mem_used;
    GetMemoryStatus(&mem_total, &mem_used);
    
    size_t map_size = 0;
    size_t comp_size = 0;
    size_t compcomp_size = 0;
    for(int i=0 ; i < m_ntex ; i++){
        glTextureDescriptor *ptd = m_td_array[i];
        if(ptd){
            map_size += ptd->GetMapArrayAlloc();
            comp_size += ptd->GetCompArrayAlloc();
            compcomp_size += ptd->GetCompCompArrayAlloc();
        }
    }

    size_t m1 = 1024 * 1024;
    printf("%6d %6ld Map: %6d  Comp:%6d  CompComp: %10d  %s\n", mem_used/1024, g_tex_mem_used/m1, map_size/m1, comp_size/m1, compcomp_size, m_ChartPath.mb_str().data());
  
///    qDebug() << "inv" << map_size/m1 << comp_size/m1 << compcomp_size/m1 << g_tex_mem_used/m1 << mem_used/1024;
    }
#endif
Build, and run the app from a cli box, so that the printf is visible. Lets see what happens here.

Dave
bdbcat is offline   Reply With Quote
Old 29-12-2015, 17:13   #101
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Re: OpenCPN on Raspberry Pi2

@JM....

Sean's fix for the blurring on GLES is in master now. Looking forward to your test report.

Dave
bdbcat is offline   Reply With Quote
Old 29-12-2015, 17:37   #102
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: Nova Scotia Canada
Boat: Wharram Tiki 46
Posts: 1,321
Re: OpenCPN on Raspberry Pi2

Quote:
Originally Posted by bdbcat View Post
@JM....

Sean's fix for the blurring on GLES is in master now. Looking forward to your test report.

Dave
He has a branch with changes to glChartCanvas:rawQuiting()
Removing glPolygonStipple because it is not supported in GLes.

It has not been included yet ? Maybe abandoned ?

Cheers,
JM.
NahanniV is offline   Reply With Quote
Old 29-12-2015, 17:39   #103
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: Nova Scotia Canada
Boat: Wharram Tiki 46
Posts: 1,321
Re: OpenCPN on Raspberry Pi2

Quote:
Originally Posted by NahanniV View Post
He has a branch with changes to glChartCanvas:rawQuiting()
Removing glPolygonStipple because it is not supported in GLes.

It has not been included yet ? Maybe abandoned ?

Cheers,
JM.
I'm not sure what's so funny about DrawQuitting ?

Cheers,
JM.
NahanniV is offline   Reply With Quote
Old 29-12-2015, 17:47   #104
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Re: OpenCPN on Raspberry Pi2

@JM...

Yes, hilarious....

Patch is maybe abandoned. I don't recall seeing this as a Pull Request. Does it have any effect on your GLES system if this code is in or out?

Dave
bdbcat is offline   Reply With Quote
Old 29-12-2015, 19:20   #105
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: Nova Scotia Canada
Boat: Wharram Tiki 46
Posts: 1,321
Re: OpenCPN on Raspberry Pi2

Quote:
Originally Posted by bdbcat View Post
@JM....

I still think it is a memory problem.

Please edit glTexCache.cpp, Line 1322, and enable OCPN memory inventory printf reports.

Code:
#if 1
    if((m_ticks % 4/*120*/) == 0){
    
    // inventory
    int mem_total, mem_used;
    GetMemoryStatus(&mem_total, &mem_used);
    
    size_t map_size = 0;
    size_t comp_size = 0;
    size_t compcomp_size = 0;
    for(int i=0 ; i < m_ntex ; i++){
        glTextureDescriptor *ptd = m_td_array[i];
        if(ptd){
            map_size += ptd->GetMapArrayAlloc();
            comp_size += ptd->GetCompArrayAlloc();
            compcomp_size += ptd->GetCompCompArrayAlloc();
        }
    }

    size_t m1 = 1024 * 1024;
    printf("%6d %6ld Map: %6d  Comp:%6d  CompComp: %10d  %s\n", mem_used/1024, g_tex_mem_used/m1, map_size/m1, comp_size/m1, compcomp_size, m_ChartPath.mb_str().data());
  
///    qDebug() << "inv" << map_size/m1 << comp_size/m1 << compcomp_size/m1 << g_tex_mem_used/m1 << mem_used/1024;
    }
#endif
Build, and run the app from a cli box, so that the printf is visible. Lets see what happens here.

Dave
Here you go:
Code:
ubuntu@tegra-ubuntu:~/OpenCPN/build$ opencpn
ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
ALSA lib pcm_dmix.c:961:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
    81      5 Map:      0  Comp:     0  CompComp:          0  /home/ubuntu/Charts/US_RNC_NY/BSB_ROOT/14810/14810_1.KAP
    82      5 Map:      0  Comp:     0  CompComp:          0  /home/ubuntu/Charts/US_RNC_NY/BSB_ROOT/14810/14810_1.KAP
   194     72 Map:     44  Comp:     0  CompComp:          0  /home/ubuntu/Charts/US_RNC_NY/BSB_ROOT/14810/14810_1.KAP
Killed
ubuntu@tegra-ubuntu:~/OpenCPN/build$
NahanniV is offline   Reply With Quote
Reply

Tags
enc, opencpn


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenCPN on Raspberry PI2 starnakel OpenCPN 284 16-03-2017 13:58
Has anyone gotten any Plugins working on Raspberry Pi2 Uncle Augie OpenCPN 5 27-06-2015 06:19
Has anyone managed to get hardware supported OpenGL on Rasperry Pi2 to work? Gunnar1 OpenCPN 53 16-06-2015 02:10
Raspberry Pi2 ratsea OpenCPN 5 26-02-2015 08:41
The Perfect Platform for OpenCPN ? Raspberry Pi night0wl OpenCPN 10 08-09-2011 19:09

Advertise Here


All times are GMT -7. The time now is 08:32.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.