repository
stringclasses
156 values
issue title
stringlengths
1
1.01k
labels
stringclasses
8 values
body
stringlengths
1
270k
lmaxexchangedisruptor
add javadocs to eventpoller and a related method
Documentation
documentation for eventpoller per 367 while update the changelog I notice that all the change be list under break change perhaps you would like to separate out the break change from the other you could use 3 category for break change deprecation and the rest
lmaxexchangedisruptor
addgatingsequence handleeventswithworkerpool for kafka producer
Question
hi do I need to integrate addgatingsequence into the code when use handleeventswithworkerpool to consume kafka producer handler what if the kafka can t compete with the speed of disruptor how the message can be handle actually I be use this approach java collection pool getpool ...
lmaxexchangedisruptor
how to use disruptor on multi producer and multi consumer condition
Question
I can t find code example be it to change producertype single to producertype multi the other be same as one producer and multi consumer condition hope to get some guidance if use one producer and producertype multi the producer be thread safe
lmaxexchangedisruptor
why be singleproducersequencer pad with byte
Question
since singleproducersequencer be mean to be use by only one thread there seem to be no contention between multi thread my understanding about false sharing be this only when multiple thread read or write multiple variable can false sharing happen so why be singleproducersequencer design with padding byte s...
lmaxexchangedisruptor
fix 370 logg instance be lazily initialize
Enhancement
default java logger be no long initialize when custom exceptionhandler instance be provide this allow log framework to delegate to disruptor without risk deadlock implementation note this introduce a new public utility class exceptionhandler which expose a singleton exceptionhandler that can be ...
lmaxexchangedisruptor
need a release a year ago
Question
log4j 2 have be try to modularize as jpm module for well over a year we have be stick because the disruptor hasn t have a release in 3 year let alone one that simply declare an automatic module name in the manifest I see you have recently introduce a module info java file but that do we no good it if isn t go to ...
lmaxexchangedisruptor
retain eventpoller in disruptor core
Question
the eventpoller be very useful in certain case particularly where the consume thread have other responsibility at the same time for example a ui thread or a game thread some other user agree I would ask that eventpoller be keep inside the disruptor and not remove also unlike with the workerpool i...
lmaxexchangedisruptor
supply some missing javadoc commentary
Documentation
work towards
lmaxexchangedisruptor
miss javadoc
Documentation
I be look at tighten the checkstyle rule but have to comment out rule check for javadoc on publicly scope type method and variable the follow be a list of currently miss javadoc which we should get clean up for a 4 0 release ant checkstyle error home nick git project disruptor src main java com ...
lmaxexchangedisruptor
add rewind batch feature to the batcheventprocessor
Enhancement
when process an event if an exception be throw that could be recoverable via outside influence throw a rewindableexception that will replay all the event in the current batch
lmaxexchangedisruptor
ringbuffer ispublishe be inconsistently name and implement
Bug
see 203 we would like this method to work it perhaps should be rename to isavailable this make it work for the multiproducersequencer case but singleproducersequencer then lie to we if the ring buffer have wrap motivation want to add assert isavailable n inside ringbuffer get n ...
lmaxexchangedisruptor
use platform log api in fatalexceptionhandler and ignoreexceptionhandler
Enhancement
change from java util log to the platform log api be preferable now that this library be target jdk 11 remove the dependency on java util log which some modular application may want to avoid both java util logging and system logger can be redirect to a log framework of choice however do so be far...
lmaxexchangedisruptor
add method to check if disruptor have be start
Enhancement
I have a use case where I want to check if disruptor have already be start before call start
lmaxexchangedisruptor
threadhint onspinwait in blockingwaitstrategy cause high cpu load sometimes
Duplicate
we use disruptor 3 4 2 and find sometimes the cpu load go very high and the jstack show that the thread be invoke threadhint onspinwait in blockingwaitstrategy now we implement a custom blockingwaitstrategy and remove this code
lmaxexchangedisruptor
change multiproducersequencer to use varhandle instead of unsafe
Enhancement
as part of move towards jdk11 we should be remove use of sun misc unsafe multiproducersequencer be use unsafe to provide finer grain concurrency control around the availability array which we can replace with the new varhandle api while add a jmh benchmark to try and compare the varhandle version vs unsafe I als...
lmaxexchangedisruptor
question be disruptor termination safe
Question
if a disruptor be place into share memory for ipc can it be use in a way such that the system move forward even when a producer crashed be kill in between the 2 phase commit or a consumer crashed be kill and never update its position
lmaxexchangedisruptor
remove use of sun misc unsafe
Enhancement
sun misc unsafe be deprecate and eventually go to be remove in future java version there be from java 9 onward new api s which should replace the functionality previously find in unsafe and this project should be use these for disruptor 4 0 we be aim for jdk11 support and up so remove reference to ...
lmaxexchangedisruptor
change sequence to use varhandle instead of unsafe
Enhancement
as part of move towards jdk11 we should be remove use of sun misc unsafe one of the main use be sequence and we can replace use of unsafe with the new varhandle api the other use of unsafe be in the ringbuffer class I have not touch that as part of this change I think that require its ...
lmaxexchangedisruptor
tell gradle to use the junit platform runner
Bug
currently gradle be attempt to run the test suite use the junit 4 platform since everything be recently migrate to junit 5 none of the test be find this pr fix the problem
lmaxexchangedisruptor
how to improve disruptor when there be many producer
Question
in my program it receive a http request and then produce an event to ringbuffer since there be 200 thread default in tomcat that be there be 200 producer each thread produce one event at a time then publish to ringbuffer in that case cpu usage be high how to solve this here be our possible solution us...
lmaxexchangedisruptor
make result directory first in the jmh task
Bug
fix 337
lmaxexchangedisruptor
can not run jmh via gradle from command line
Bug
when attempt a clean jmh run via gradle it throw an error about not be able to touch the report file in the gradle task for jmh we already have an attempt to make sure the directory be there but perhaps this isn t work groovy def resultfile file build report jmh result format res...
lmaxexchangedisruptor
it s difficult to navigate through the different github page documentation page
Documentation
since move the documentation to asciidoc it s become more difficult to navigate between the various page the index adoc link to the disruptor adoc technical paper changelog adoc changelog and user guide index adoc user guide but none of these page have link to the other page or back to ...
lmaxexchangedisruptor
restore arrow to diagram
Documentation
fix 326
lmaxexchangedisruptor
be it possible to implement a resizing ring buffer
Enhancement
be it possible to implement a ring buffer that will resize when full to some maximum capacity for example perhaps I have a ring buffer that have a difficult to predict size or I simply don t want to be concern with the constant monitoring and tuning of its size I want the ring buffer to be as small as pos...
lmaxexchangedisruptor
documentation be miss arrow from figure
Documentation
in the html version of the technical paper figure 2 5 appear to be miss the arrow present in the original pdf version image
lmaxexchangedisruptor
restore disruptor 1 0 pdf
Documentation
many place on the internet link directly to this pdf and update all of those link seem like a bit of a faff it would be nice if in the future we could generate the pdf from the adoc as well but for now it s easy to just re introduce the original version
lmaxexchangedisruptor
fix documentation not list build output
Documentation
add note about run jmh benchmark
lmaxexchangedisruptor
small improvement to the new document generation process
Documentation
three small change 1 fix the latency histogram image on the main page 2 stop generate javadoc under doc since we don t need to commit this manually any more 3 replace the getting start link on the index with the user guide
lmaxexchangedisruptor
replace old doc with live asciidoc tor documentation
Documentation
the current method of documentation markdown document a ms word document javadoc github wiki be quite cumbersome markdown be nice and simple but lack more advanced feature e g be able to include snippet of source code directly from their origin file have the javadoc commit under doc ...
lmaxexchangedisruptor
change source and target version to java 11
Enhancement
change source and target version to java 11
lmaxexchangedisruptor
put github page in master branch under doc folder
Documentation
the current gh page branch have fail ci in the past due to not have gradle or the project source this commit bring the content of the gh page branch in to the docs folder of master which can be set as the source of github page the theme have change since the old one be no long easily available this also se...
lmaxexchangedisruptor
workprocessor can hang when halt before run
Bug
I notice an issue in the workprocessor state in the net disruptor codebase I suspect that this issue affect the java disruptor as well the workerpool start with processor a and b one of the processor thread a start run while the other one b be still wait to be schedule the ru...
lmaxexchangedisruptor
seem timeoutblockingwaitstrategy not work
Documentation
maybe I misunderstand the timeoutblockingwaitstrategy mean I think timeoutblockingwaitstrategy will release the producer thread when the ringbuffer be full after wait for a time period e g 3 sec but now the behavior look producer be wait still when I debug the code I find the process be wait on below c...
lmaxexchangedisruptor
how to add remove handler dynamically with disruptor 3
Enhancement
I have the pattern whereby a number of event be produce by multiple thread I then need to transform these event and then dispatch they to a number of consumer the consumer need to be dynamically add and remove from the system at runtime I be think of use 2 ring buffer we would receive the event on the f...
lmaxexchangedisruptor
modularize disruptor jar
Enhancement
add a module info java file to the project in order to provide official support for java 9 without this user be unable to run jlink against dependent java code
lmaxexchangedisruptor
disruptor handleeventswith cause an unchecked warning due to varargs on generic type
Enhancement
it be worth consider mark this method with the safevarargs annotation to avoid the warning or take a different approach
lmaxexchangedisruptor
shutdown happen before the last event be completely consume
Bug
maybe I ve misunderstood the api but with below test code shutdown be print before end of all event be this the designate logic I ve expect shutdown to be do after the event be completely consume so that the process would not be interrupt when surround with try with resource java impo...
lmaxexchangedisruptor
cpu exhaustion in multiproducersequencer
Enhancement
incorrect use of locksupport be cause cpu exhaustion in multiproducersequencer this cause extreme performance degradation my jvm get stuck in the next int method this method park the thread for a single nanosecond and then retest the condition this be so fast that my cpu could only execute 3 instruction ...
lmaxexchangedisruptor
it be possible to shutdown and restart a disruptor
Enhancement
I have be play around with disruptor I have define a process but I need to reuse the process that use the disruptor object so after do a disruptor shutdown would be great to be able to do an disruptor start but I get an exception java lang illegalstateexception disruptor start must only be call once ...
lmaxexchangedisruptor
memory leak unless clear the event
Enhancement
I have a chain of eventhandler and workhandler try to save defferent part of the event into defferent database table it look like this java public void init executor executor executor newcachedthreadpool edpseventfactory factory new edpseventfactory disruptor n...
lmaxexchangedisruptor
trypublishevent efficiency
Question
I have an application which use ringbuffer s trypublishevent api to pass datum and discard they if the buffer be full I look at the source public boolean trypublishevent eventtranslator translator try final long sequence sequencer trynext translatea...
lmaxexchangedisruptor
exceptionhandler isn t propagate by disruptor to exist workerpool after set
Enhancement
exceptionhandler set to disruptor after initialize workerpool will not be propagate to workerpool disruptor new disruptor event new ring size executor producertype single new blockingwaitstrategy disruptor handleexceptionswith new fatalexceptionhandler disruptor handleeventswith new han...
lmaxexchangedisruptor
support clear the disruptor
Enhancement
have a single method call that can stop all of the consumer reset their sequence number to the cursor value of the ring buffer and restart they all this would only be available to user of the disruptor class which have a view of all of the consumer should not impact performance of current fast path and should...
lmaxexchangedisruptor
what be the correct way to add remove handler dynamically
Bug
hello I have the situation when I need dynamically add and remove handler my code look like the this java addhandler eventhandler handler sequencebarri barrier ringbuffer newbarri batcheventprocessor processor new batcheventprocessor ringbuffer barrier handler processor gets...
nostra13androiduniversalimageloader
incorrect max texture size
Bug
since lollipop the framework be no long create a opengl context that be valid for the app this change in the framework break current way imagesizeutil get the gl max texture size as it will always be 0 if no context exist a possible solution be present here
nostra13androiduniversalimageloader
inpurgeable and ininputshareable cause file descriptor leak on kitkat
Bug
we have file descriptor leak in our app run on kitkat and find it be cause by bug in android framework this library trigger that bug by set inpurgeable and inpurgeable flag to true flag be set by builder of displayimageoption l225 getthumbnail will trigger this issue l215
nostra13androiduniversalimageloader
bitmapconfig value not respect when there be multiple download with same uri but different displayimageoption
Bug
trigger two load cache in memory and disk bitmapconfig rgb 565 displayimage uri view displayimageoption cache in disk bitmapconfig argb 8888 loadimage uri imageloadinglistener when both load be request the bitmap return in imageloadinglistener be rgb 565 I suppose this problem be be...
nostra13androiduniversalimageloader
reattach progress listener to pende download
Bug
hello I have problem with progress listener my use case be I have gridview with imageview as child image can be quite large so I m display progress indicator on they progress indicator work perfectly well until you start scroll forward and backwards because gridview recycle scroll out imageview they l...
nostra13androiduniversalimageloader
same url request use synchronous loading cancel each other
Bug
in our project if you send multiple request to uil to loadimagesync that share the same url the first one load and the other one get cancel also explain here by nostra I understand that you can use the recommend workaround if you be not use loadimagesync but this be not our case here uil cancels pr...
nostra13androiduniversalimageloader
random crash with rejectedexecutionexception
Bug
my app randomly crash I couldn t find any step to reproduce the issue fyi I do invoke imageloader getinstance stop sometime how can I avoid this crash if stop be reason for this issue be there any way to stop without crash any info be appreciate java util concurrent rejectedexecutio...
nostra13androiduniversalimageloader
can uil deal with the image in webview
Question
webview ia also a place that consume a lot of memory can uil do something with it
nostra13androiduniversalimageloader
update of cache file
Question
do uil have ability to update re download file in cache base on etag for http https or base on file s size for file system I have check source and have not find nothing like this use case use lru cache update file on server side I have to be visible on the device
nostra13androiduniversalimageloader
how to change the size of the picture
Question
the ratio be fix w h 4 3 imageview scaletype be center how can I change the size of the picture to adapt to a specify width
nostra13androiduniversalimageloader
split displayer
Question
hi I need to display both round corner bitmap and fade in animation 617 something come to my mind I think it can split in two thing 1 displayer 2 animator I think can set the image drawable in displayer and animte the view in animator and the usage may be like java displayimageoption option n...
nostra13androiduniversalimageloader
could support download permission
Question
I my project the image save as byte on server and need cookie permission to download so could support those to set cookiestore
nostra13androiduniversalimageloader
pauseonscroll only if not load from cache or memory
Question
I m pause the imageloader when scroll and resume when the scroll state be idle how can I configure the image loader in a way that it will not pause on scroll when its try to get the image from the memory or cache only pause when try to download the image be there a proper way to do that
nostra13androiduniversalimageloader
the picture which name be chinese can not be display
Bug
the picture which name be chinese can not be display I fix it imageloader getinstance displayimage uri decode uri fromfile file tostre holder iv option null
nostra13androiduniversalimageloader
help imagesize invalid
Question
my code bitmap msrc imageloader getinstance loadimagesync drawable src resource new imagesize 200 150 log I height msrc getheight but result height 225 why
nostra13androiduniversalimageloader
add support for loading image in remoteviews and lock screen widget
Question
can you please add support for remoteview and lock screen widget so that we can load image for remoteview and lock screen use uil
nostra13androiduniversalimageloader
problem with twoway view library
Bug
nostra13 lucasr hi folk I detect a conflict with the uil and this lib the loading be odd and the view lose direction just because of use the uil with picasso imageloader this do not occur the conflict be base on a lag that be in the image loading and scroll jump remove the smoothness need mor...
nostra13androiduniversalimageloader
I have a question about how to get the original file name file extension name from disk cache
Question
I be try to implement share feature use the disk cache image be there a way that can use the disk cache of the original file name file extension name
nostra13androiduniversalimageloader
manual load image
Question
can I manual load image when I hava call imageloader getinstance denynetworkdownload true
nostra13androiduniversalimageloader
how to avoid to much garbage collection run android while use uil
Question
comment41182800 26252909 please see this link for more detail
nostra13androiduniversalimageloader
crash in fifolimitedmemorycache indexoutofboundsexception
Bug
version 1 9 2 java lang indexoutofboundsexception at java util linkedlist remove linkedlist java 660 at java util collection synchronizedlist remove collection java 609 at com nostra13 universalimageloader cache memory impl fifolimitedmemorycache removenext fifolimitedmemorycache java 77...
nostra13androiduniversalimageloader
strictmode explicit termination method close not call new
Bug
when load image from contact uri a resource be acquire at attached stack trace but never release see java io closeable for information on avoid resource leak java lang throwable explicit termination method close not call at dalvik system closeguard open closeguard java 184 ...
nostra13androiduniversalimageloader
httpurlconnection be open but never close
Bug
I think it be relate to the code design 09 07 23 26 54 969 25821 25830 dh newspaper e strictmode a resource be acquire at attached stack trace but never release see java io closeable for information on avoid resource leak java lang throwable explicit termination method end not call ...
nostra13androiduniversalimageloader
one delay image request block the other
Bug
may I ask how to solve this problem one image request which be delay will block the other I set threadpoolsize to 1 and simulate this situation use fiddler I find the delay image request would be retry 3 time during this period of time other image would not be show I kown I can set a big threadpoolsize...
nostra13androiduniversalimageloader
video thumbnail in sdcard
Question
how to show an video thumbnail in sdcard it be possible
nostra13androiduniversalimageloader
imagesize not match set width height 1px off
Bug
I m not sure if this be expect to happen input a square image 640x640px then load sync with imagesize 200x200 and get a 199x199 image set imagesize to 300x300 give a 300x300 image which be expect my usage be private void initializeimage bitmap b getbitmap imageuri 200 200 ...
nostra13androiduniversalimageloader
exif orientation bug
Bug
hello I m use uil 1 9 1 in my recent project I see that uil be now support exif orientation but I encounter issue when load photo from sd card in my application image be rotate by 90 degree but in android gallery everything be ok screen my application android gallery code imageloader getinst...
nostra13androiduniversalimageloader
image flickering on notifydatasetchange
Bug
problem cause by this bug 1 image flicker 2 if you load image grid scroll down then scroll up image be reload again 3 first batch of image consume twice as much memory it look like there be a bug here java com nostra13 universalimageloader core imageloader 193 imagesize targetsize ima...
nostra13androiduniversalimageloader
be it possible to put a file in cache without load it
Question
I would like to fetch a list of image from a server to be available on cache for later use currently I use imageloader getinstance loadimage just recycle the result bitmap but obviously there be no need to actually load the image into memory be there a way to do so
nostra13androiduniversalimageloader
image in cache be not update
Question
java public imageloaderconfiguration getconfig context context imageloaderconfiguration config new imageloaderconfiguration builder context threadpriority thread norm priority 2 threadpoolsize 3 diskcache new unlimiteddisccache function getcachedir build ...
nostra13androiduniversalimageloader
different image size for showimageforemptyuri
Question
how can I set different image size for showimageforemptyuri
nostra13androiduniversalimageloader
onprogressupdate without disk cache
Question
how can I use the progress bar in onprogressupdate without use use disk cache
nostra13androiduniversalimageloader
how to reduce quality of image while download
Question
I m a new learner in android I have to load 17 image from this page then display it into viewpager however image load very slow so I want to reduce the image quality and size for performance what should I do to improve the speed thank a bunch
nostra13androiduniversalimageloader
check for image with specify url already in cache
Question
could you add method for sync check image availability in cache
nostra13androiduniversalimageloader
can I load all the picture from a specfic folder
Question
my folder file in the sd I want to load all the image I try file sdcard instadownloader for the constant string array but it doesn t work can someone help I
nostra13androiduniversalimageloader
handle concurrency
Question
however a listview specific behavior reveal a problem with our current implementation indeed for memory efficiency reason listview recycle the view that be display when the user scroll if one fling the list a give imageview object will be use many time each time it be display the imageview correctly tr...
nostra13androiduniversalimageloader
what be the fast config
Question
what be the fast display config
nostra13androiduniversalimageloader
npe for loading contact photo from content
Bug
hello when I try to load contact photo from content I m get npe for the user who doesn t have any contact photo how can I resolve this issue actually it s work for the user who have photo info but get this exception for the rest of they d imageloader load image from network content com andr...
nostra13androiduniversalimageloader
good day
Question
be their a function in cluster image if so then I do not read the doc well thank
nostra13androiduniversalimageloader
libegl error after call loader displayimage item get position holder imageview option
Question
I notice another thread for the same issue close about 2 year ago can you inform if it should be solve by the uil user it seem terrible complicated or if it can be discard
nostra13androiduniversalimageloader
how to catch exception
Question
hi I want to catch all the exception from image loader try imageloader getinstance displayimage url articleimage catch exception e log d myappp image loading erroe bug882 e e getmessage but ...
nostra13androiduniversalimageloader
memorycache diskcache
Question
imageloader memorycache true diskcache true true loadanddisplaytask sd sd bitmap view sd view sd
nostra13androiduniversalimageloader
loading image progressively interlace
Question
hi I need to load jpeg progressively like the 369 and I find you have close the issue so do you have any idea to solve this thank
nostra13androiduniversalimageloader
generarte event on url redirection
Question
hi I be try to find out when the url redirect and to what address there be an event onloadingcomplete how ever the url in there be the original and not the redirected be it possible to obtain the redirected url
nostra13androiduniversalimageloader
image for notifycation
Question
please how can the imageloader be use to load image on an notification because the displayimage method take an imageview as parameter and in a widget we have to use remoteviews thank
nostra13androiduniversalimageloader
recommend way to handle no network airplane mode situation
Question
if we know we re not on the network be there a graceful way to handle that I e automatically queue all download request until network be restore or do people just currently let the request fail thank
nostra13androiduniversalimageloader
can pauseonscrolllistener support load more item
Question
dear nostra13 thank you for wonderful library but I have an issue when I set pauseonscrolllistener for listview I can t detect event when my listview end of list to load more element can you help I to resolve this issue thank in advanced
nostra13androiduniversalimageloader
support of samba location
Question
hy nostra13 congratulation for your library it s awesome but be there a way to load an image from a computer on the same local network with the samba protocol good
nostra13androiduniversalimageloader
how to check if imageuri be in cache
Question
it would be nice to have a function that check if an image imageuri already be store in cache
nostra13androiduniversalimageloader
java lang nullpointerexception in storageutil getcachedirectory
Bug
hello I receive an error log from my user java java lang runtimeexception unable to create application my customapplication java lang nullpointerexception at android app activitythread handlebindapplication activitythread java 4584 at android app activitythread access 1600 activitythread java 161 at an...
nostra13androiduniversalimageloader
bitmap too large to be upload into a texture 252x10150 max 4096x4096
Bug
bitmap too large to be upload into a texture 252x10150 max 4096x4096 1 9 2
nostra13androiduniversalimageloader
how disable image cache for sd card image
Question
how disable image cache for sd card image
nostra13androiduniversalimageloader
divide by zero in ioutil shouldstoploade
Bug
v1 9 1 06 13 10 33 52 020 8379 9531 com some app e imageloader divide by zero java lang arithmeticexception divide by zero at com nostra13 universalimageloader util ioutil shouldstoploading ioutil java 85 at com nostra13 universalimageloader util ioutil copystream ioutil ja...
nostra13androiduniversalimageloader
nullpointerexception in lrudisccache get lrudisccache java 124
Bug
hi I receive many crash report from crashlytic last week version uil 1 9 2 with lrudisccache device oppo u701 4 0 4 root stacktrace java lang nullpointerexception at com nostra13 universalimageloader cache disc impl ext lrudisccache get lrudisccache java 124 at com nostra13 universa...
nostra13androiduniversalimageloader
imageloadingprogresslistener s method get total 1 when use 3 g network to download image file from network
Question
uil version be 1 9 1 when use 3 g network to download image file from network imageloadingprogresslistener s method get total 1 so progress will show you error percentage java new imageloadingprogresslistener override public void onprogressupdate string imageuri ...
nostra13androiduniversalimageloader
load image from mysql and convert to bitmap
Question
hi I be a beginner and want to load image from my mysql database that be a string encode from jpeg image and try this library but here this code be use the static array of image and I have all image in string which will convert to bitmap after load so I want to download the string one by one and then conv...