Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 28-05-2018, 00:34   #1
Registered User

Join Date: Feb 2017
Posts: 69
Crash when rebuilding texture cache

I just installed 3.84 on a windows 10 computer. After loading the NOAA RNC charts for California via "add directory", I turned on open GL and checked the box for "texture compression caching". Then I click on "rebuild texture cache" to speed the charts up and the program crashed with the error "opencpn.exe has stop working". Any idea why this is happening?


Thanks
Attached Thumbnails
Click image for larger version

Name:	IMG-2760.jpg
Views:	62
Size:	395.2 KB
ID:	170648  
__________________

J805 is offline   Reply With Quote
Old 28-05-2018, 06:48   #2
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 4,424
Re: Crash when rebuilding texture cache

Did you really install version 3.84? Or is that a typo.
__________________

transmitterdan is offline   Reply With Quote
Old 28-05-2018, 08:06   #3
Registered User

Join Date: Jan 2011
Location: UK/France
Boat: Gib'Sea 402
Posts: 288
Re: Crash when rebuilding texture cache

According to his screenshot, it is 4.8.4

To the OP, have you enabled OpenGL?
hoolie is offline   Reply With Quote
Old 28-05-2018, 08:11   #4
Registered User

Join Date: Feb 2017
Posts: 69
Re: Crash when rebuilding texture cache

Quote:
Originally Posted by transmitterdan View Post
Did you really install version 3.84? Or is that a typo.
Sorry, typo. I installed 4.84
J805 is offline   Reply With Quote
Old 28-05-2018, 09:10   #5
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 4,424
Re: Crash when rebuilding texture cache

Is it the RNC State of California chart alone? No other charts installed? Is it the latest chart from NOAA web site?
transmitterdan is offline   Reply With Quote
Old 28-05-2018, 09:10   #6
Registered User

Join Date: Feb 2017
Posts: 69
Re: Crash when rebuilding texture cache

Quote:
Originally Posted by hoolie View Post
According to his screenshot, it is 4.8.4

To the OP, have you enabled OpenGL?
Yes i did
J805 is offline   Reply With Quote
Old 28-05-2018, 10:26   #7
Registered User

Join Date: Jun 2015
Posts: 285
Re: Crash when rebuilding texture cache

Quote:
Originally Posted by J805 View Post
Yes i did

Could you try the following:
1) move to a point with no RNC charts visible
2) restart OpenCPN

3) build the cache.



It's something I've seen too. I have some patches but I'm not sure they fully solve this issue.
did-g is offline   Reply With Quote
Old 28-05-2018, 21:29   #8
Registered User

Join Date: Feb 2017
Posts: 69
Re: Crash when rebuilding texture cache

Quote:
Originally Posted by transmitterdan View Post
Is it the RNC State of California chart alone? No other charts installed? Is it the latest chart from NOAA web site?
Yes. Just the RNC for California, freshly downloaded via the chart downloader within Opencpn on another computer, copied the folder to usb drive and loaded on a different computer which has no internet access. No other charts loaded.
J805 is offline   Reply With Quote
Old 30-05-2018, 10:34   #9
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: chesapeake bay
Boat: bristol 27
Posts: 3,238
Re: Crash when rebuilding texture cache

To know why it crashed we need a backtrace from a debugger.. unfortunately difficult.

If you start opencpn again, and again rebuild the cache does it eventually complete and become usable?
boat_alexandra is offline   Reply With Quote
Old 30-05-2018, 10:36   #10
Registered User

Join Date: Feb 2017
Posts: 69
Re: Crash when rebuilding texture cache

Quote:
Originally Posted by did-g View Post
Could you try the following:
1) move to a point with no RNC charts visible
2) restart OpenCPN

3) build the cache.



It's something I've seen too. I have some patches but I'm not sure they fully solve this issue.



I will give this a shot the next time I am down at the boat, thanks.
J805 is offline   Reply With Quote
Old 30-05-2018, 10:38   #11
Registered User

Join Date: Feb 2017
Posts: 69
Re: Crash when rebuilding texture cache

Quote:
Originally Posted by boat_alexandra View Post
To know why it crashed we need a backtrace from a debugger.. unfortunately difficult.

If you start opencpn again, and again rebuild the cache does it eventually complete and become usable?



No, it crashes every single time I have tried to rebuild the cache. Ive deleted the charts, reinstalled them, uninstalled the program, reinstalled it, rebooted, etc. The crash happens consistently.
J805 is offline   Reply With Quote
Old 30-05-2018, 13:49   #12
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: chesapeake bay
Boat: bristol 27
Posts: 3,238
Re: Crash when rebuilding texture cache

Can you narrow the crash down to a single chart file? Does it show the name of the chart it processes when it crashes?

Can you post your log file?
boat_alexandra is offline   Reply With Quote
Old 30-05-2018, 13:52   #13
Registered User

Join Date: Feb 2017
Posts: 69
Re: Crash when rebuilding texture cache

Quote:
Originally Posted by boat_alexandra View Post
Can you narrow the crash down to a single chart file? Does it show the name of the chart it processes when it crashes?

Can you post your log file?



As soon as I click the rebuild cache button, it crashes. It does not even start processing through the charts as far as I can tell. I will grab the log file the next time I'm down on the boat.
J805 is offline   Reply With Quote
Old 30-05-2018, 16:12   #14
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 4,424
Re: Crash when rebuilding texture cache

I believe I have narrowed the crash down to a simple double delete of a pointer.

The gltexCache code is loaded with dangling pointers. There are many megabytes left dangling on the heap when the program exits. It needs some serious pointer cleanup.
transmitterdan is offline   Reply With Quote
Old 30-05-2018, 16:30   #15
Registered User

Join Date: Feb 2017
Posts: 69
Re: Crash when rebuilding texture cache

Quote:
Originally Posted by transmitterdan View Post
I believe I have narrowed the crash down to a simple double delete of a pointer.

The gltexCache code is loaded with dangling pointers. There are many megabytes left dangling on the heap when the program exits. It needs some serious pointer cleanup.

With that said, is there something I should do within my install to fix this? Or does this require programming that will be fixed on a future build?


Thanks
__________________

J805 is offline   Reply With Quote
Reply

Tags
rebuild

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Texture Compression with Caching greyed out J805 OpenCPN 10 22-05-2018 01:55
Rebuild Texture Cache causes crash in OpenCPN 4.0 jim326 OpenCPN 12 04-04-2015 04:00
How To Cover up Texture of Fiberglass Jon Neely Construction, Maintenance & Refit 9 15-05-2011 10:45



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 22:04.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.