|
|
28-05-2018, 01:34
|
#1
|
Registered User
Join Date: Feb 2017
Location: Southern California
Posts: 109
|
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
|
|
|
28-05-2018, 07:48
|
#2
|
Registered User
Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
|
Re: Crash when rebuilding texture cache
Did you really install version 3.84? Or is that a typo.
|
|
|
28-05-2018, 09:06
|
#3
|
Registered User
Join Date: Jan 2011
Location: France/UK
Boat: Gib'Sea 402
Posts: 551
|
Re: Crash when rebuilding texture cache
According to his screenshot, it is 4.8.4
To the OP, have you enabled OpenGL?
|
|
|
28-05-2018, 09:11
|
#4
|
Registered User
Join Date: Feb 2017
Location: Southern California
Posts: 109
|
Re: Crash when rebuilding texture cache
Quote:
Originally Posted by transmitterdan
Did you really install version 3.84? Or is that a typo.
|
Sorry, typo. I installed 4.84
|
|
|
28-05-2018, 10:10
|
#5
|
Registered User
Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
|
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?
|
|
|
28-05-2018, 10:10
|
#6
|
Registered User
Join Date: Feb 2017
Location: Southern California
Posts: 109
|
Re: Crash when rebuilding texture cache
Quote:
Originally Posted by hoolie
According to his screenshot, it is 4.8.4
To the OP, have you enabled OpenGL?
|
Yes i did
|
|
|
28-05-2018, 11:26
|
#7
|
Registered User
Join Date: Jun 2015
Posts: 379
|
Re: Crash when rebuilding texture cache
Quote:
Originally Posted by J805
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.
|
|
|
28-05-2018, 22:29
|
#8
|
Registered User
Join Date: Feb 2017
Location: Southern California
Posts: 109
|
Re: Crash when rebuilding texture cache
Quote:
Originally Posted by transmitterdan
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.
|
|
|
30-05-2018, 11:34
|
#9
|
Registered User
Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,451
|
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?
|
|
|
30-05-2018, 11:36
|
#10
|
Registered User
Join Date: Feb 2017
Location: Southern California
Posts: 109
|
Re: Crash when rebuilding texture cache
Quote:
Originally Posted by did-g
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.
|
|
|
30-05-2018, 11:38
|
#11
|
Registered User
Join Date: Feb 2017
Location: Southern California
Posts: 109
|
Re: Crash when rebuilding texture cache
Quote:
Originally Posted by boat_alexandra
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.
|
|
|
30-05-2018, 14:49
|
#12
|
Registered User
Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,451
|
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?
|
|
|
30-05-2018, 14:52
|
#13
|
Registered User
Join Date: Feb 2017
Location: Southern California
Posts: 109
|
Re: Crash when rebuilding texture cache
Quote:
Originally Posted by boat_alexandra
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.
|
|
|
30-05-2018, 17:12
|
#14
|
Registered User
Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
|
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.
|
|
|
30-05-2018, 17:30
|
#15
|
Registered User
Join Date: Feb 2017
Location: Southern California
Posts: 109
|
Re: Crash when rebuilding texture cache
Quote:
Originally Posted by transmitterdan
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
|
|
|
|
|
Thread Tools |
Search this Thread |
|
|
Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
Advertise Here
Recent Discussions |
|
|
|
|
|
|
|
|
|
|
|
|
Vendor Spotlight |
|
|
|
|