Ticket #149 (closed Defect: fixed)

Opened 13 years ago

Last modified 13 years ago

initialization of webclient through topicmap-level permalinks with background image

Reported by: Malte Owned by:
Priority: Major Milestone:
Component: DeepaMehta Standard Distribution Version: 4.0.6
Keywords: Cc:
Complexity: 3 Area: GUI
Module: deepamehta-webclient


intialization of webclient trough permalink on topicmap level where topicmap has background image, does sometimes work but sometimes does lead to the following error messages:

in chromium it's

"Uncaught Type Error: Cannot call method 'draw_background' of undefined at <topicmapid>:line 277

and in firefox it's

topicmap is undefined: line 276

and in both cases the interface is not loaded any further so that the result is: a visitor send directly to a topicmap with a backgruond image has a 50:50 chance to see a correctly loaded interface.

the same is the case if the user is send to a topic-level permalink where the topicmap has set a background image..

as of writing i realize that this is issue is not just dependent on topicmaps which have backgruond-images assigned, it also happens once in a while when just calling the http://localhost:8080/ default entry point for the webclient or a permalink for a map which does not have a topicmap-backgruond image assigned.

hope this helps.

tested with a 2 days old 4.0.6-SNAPSHOT in chromium and firefox

Change History

comment:1 Changed 13 years ago by jri

Thanks for pointing out that!
Yes, I see this issue in case of a plugin is initiating a canvas refresh (e.g. displaying topics) at a time the Topicmaps plugin is instantiated but not yet initialized.
However, I can't produce this with the DM standard distribution. I'm just curious: Do you have any custom plugins installed?

I consider a quick fix.

comment:2 Changed 13 years ago by Jörg Richter

  • Status changed from new to closed
  • Resolution set to fixed

Topicmaps fix: catch undefined topicmap (#149).

Happens if canvas draw() is performed before the Topicmaps plugin is initialized.

Close ticket 149.

comment:3 Changed 13 years ago by Malte

Great Jri! Thank you so much for this quick solution!!

Note: See TracTickets for help on using tickets.